engine-stat

command
v0.0.0-...-8cc84bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2020 License: AGPL-3.0 Imports: 22 Imported by: 0

README

Engine Stat

⚠️ THIS ENGINE IS DEPRECATED (STILL BUILT, BUT NOT ENABLED BY DEFAULT). USE STATSNG (Python, CAT) INSTEAD. ⚠️

The stat engine stores how many OK events and KO events happen on an entity, and logs actions made by users.

Create an Engine_stat queue bound to canopsis.events with routing key # in RabbitMQ:

rabbitmqadmin -u cpsrabbit -p canopsis --vhost canopsis declare queue name=Engine_stat durable=true auto_delete=false
rabbitmqadmin -u cpsrabbit -p canopsis --vhost canopsis declare binding source=canopsis.events destination=Engine_stat routing_key="#"

Launch the engine:

cd cmd/engine-stat

export CPS_MONGO_URL="mongodb://cpsmongo:canopsis@canopsis/canopsis"
export CPS_AMQP_URL="amqp://cpsrabbit:canopsis@canopsis:5672/canopsis"
export CPS_INFLUX_URL="http://cpsinflux:canopsis@canopsis:8086"

go build . && ./engine-stat

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL