mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 15:29:04 +01:00
849 B
849 B
nats
sink
The nats
sink publishes all metrics into a NATS network. The publishing key is the database name provided in the configuration file
Configuration structure
{
"<name>": {
"type": "nats",
"database" : "mymetrics",
"host": "dbhost.example.com",
"port": "4222",
"user": "exampleuser",
"password" : "examplepw",
"nkey_file": "/path/to/nkey_file",
"meta_as_tags" : [],
}
}
type
: makes the sink annats
sinkdatabase
: All metrics are published with this subjecthost
: Hostname of the NATS serverport
: Port number (as string) of the NATS serveruser
: Username for basic authenticationpassword
: Password for basic authenticationmeta_as_tags
: print all meta information as tags in the output (optional)nkey_file
: Path to credentials file with NKEY