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:
22
sinks/stdoutSink.md
Normal file
22
sinks/stdoutSink.md
Normal file
@@ -0,0 +1,22 @@
|
||||
## `stdout` sink
|
||||
|
||||
The `stdout` sink is the most simple sink provided by cc-metric-collector. It writes all metrics in InfluxDB line-procol format to the configurable output file or the common special files `stdout` and `stderr`.
|
||||
|
||||
|
||||
### Configuration structure
|
||||
|
||||
```json
|
||||
{
|
||||
"<name>": {
|
||||
"type": "stdout",
|
||||
"meta_as_tags" : true,
|
||||
"output_file" : "mylogfile.log"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `type`: makes the sink an `stdout` sink
|
||||
- `meta_as_tags`: print all meta information as tags in the output (optional)
|
||||
- `output_file`: Write all data to the selected file (optional). There are two 'special' files: `stdout` and `stderr`. If this option is not provided, the default value is `stdout`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user