mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01: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 anamqp
sink, alsorabbitmq
is 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_size
is reached before the end offlush_delay
, the metrics are sent without further delay (default:1000
)