Skip to content

Files

Latest commit

200af84 · Jan 25, 2022

History

History
20 lines (15 loc) · 639 Bytes

customCmdMetric.md

File metadata and controls

20 lines (15 loc) · 639 Bytes

customcmd collector

  "customcmd": {
    "exclude_metrics": [
      "mymetric"
    ],
    "files" : [
      "/var/run/myapp.metrics"
    ],
    "commands" : [
      "/usr/local/bin/getmetrics.pl"
    ]
  }

The customcmd collector reads data from files and the output of executed commands. The files and commands can output multiple metrics (separated by newline) but the have to be in the InfluxDB line protocol. If a metric is not parsable, it is skipped. If a metric is not required, it can be excluded from forwarding it to the sink.