mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-11-05 02:55:06 +01:00
Sink specific configuration maps (#25)
* Use sink-specific configurations to have more flexibility. Adjust sample sink configuration files * Add documentation * Add links to individual sink readmes * Fix link in README * HTTPS for HttpSink * If no CPU die id available, use the socket id instead
This commit is contained in:
28
sinks/natsSink.md
Normal file
28
sinks/natsSink.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## `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
|
||||
|
||||
```json
|
||||
{
|
||||
"<name>": {
|
||||
"type": "nats",
|
||||
"meta_as_tags" : true,
|
||||
"database" : "mymetrics",
|
||||
"host": "dbhost.example.com",
|
||||
"port": "4222",
|
||||
"user": "exampleuser",
|
||||
"password" : "examplepw"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `type`: makes the sink an `nats` sink
|
||||
- `meta_as_tags`: print all meta information as tags in the output (optional)
|
||||
- `database`: All metrics are published with this subject
|
||||
- `host`: Hostname of the NATS server
|
||||
- `port`: Portnumber (as string) of the NATS server
|
||||
- `user`: Username for basic authentification
|
||||
- `password`: Password for basic authentification
|
||||
Reference in New Issue
Block a user