mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-10-24 23:05:06 +02:00
1.1 KiB
1.1 KiB
amqp sink
The amqp sink publishes all metrics into a RabbitMQ network. The publishing key is the queue name in the configuration file
Configuration structure
{
"<name>": {
"type": "amqp",
"queue_name" : "myqueue",
"batch_size" : 1000,
"flush_delay": "4s",
"publish_timeout": "1s",
"host": "dbhost.example.com",
"port": 5672,
"username": "exampleuser",
"password" : "examplepw",
"meta_as_tags" : [],
}
}
type: makes the sink anamqpsink, alsorabbitmqis allowed as aliasqueue_name: All metrics are published to this queuehost: Hostname of the RabbitMQ serverport: Port number of the RabbitMQ serverusername: Username for basic authenticationpassword: Password for basic authenticationmeta_as_tags: print all meta information as tags in the output (optional)publish_timeout: Timeout for each publication operation (default1s)flush_delay: Group metrics coming in to a single batch (default4s)batch_size: Maximal batch size. Ifbatch_sizeis reached before the end offlush_delay, the metrics are sent without further delay (default:1000)