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