mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
22 lines
597 B
Markdown
22 lines
597 B
Markdown
|
## `nats` receiver
|
||
|
|
||
|
The `nats` receiver can be used receive metrics from the NATS network. The `nats` receiver subscribes to the topic `database` and listens on `address` and `port` for metrics in the InfluxDB line protocol.
|
||
|
|
||
|
### Configuration structure
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"<name>": {
|
||
|
"type": "nats",
|
||
|
"address" : "nats-server.example.org",
|
||
|
"port" : "4222",
|
||
|
"subject" : "subject"
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
- `type`: makes the receiver a `nats` receiver
|
||
|
- `address`: Address of the NATS control server
|
||
|
- `port`: Port of the NATS control server
|
||
|
- `subject`: Subscribes to this subject and receive metrics
|