Hi,
I working on migration Sensu-Classic to Sensu-go and i have a problem with Metrics Format.
I use Sensu-go OSS (i try to 6.3 and 6.4)
The Sensu Metrics Format doesn’t seem to work. (I just followed the docs)
Collect service metrics with Sensu checks - Sensu Docs
Populate metrics in InfluxDB with handlers - Sensu Docs
[sensu@alt-server ~]$ sensuctl check info collect-metrics
=== collect-metrics
Name: collect-metrics
Interval: 60
Command: metrics-disk-usage.rb
Cron:
Timeout: 0
TTL: 0
Subscriptions: linux
Handlers:
Runtime Assets: sensu-plugins/sensu-plugins-disk-checks, sensu-ruby-runtime
Hooks:
Publish?: true
Stdin?: false
Proxy Entity Name:
Namespace: default
Metric Format: influxdb_line
Metric Handlers: influx-db
[sensu@alt-server ~]$ sensuctl handler info influx-db
=== influx-db
Name: influx-db
Type: pipe
Timeout: 0
Filters: has_metrics
Mutator:
Execute: RUN: sensu-influxdb-handler -d sensu
Environment Variables: INFLUXDB_ADDR=http://127.0.0.1:8086
Runtime Assets: influxdb-handler
The output format does not seem to convert to influx format
Jul 1 21:15:39 data sensu-agent: {"check":"metrics-cpu","component":"agent","error":"unable to extract metric from check output","level":"error","line":36,"msg":"metric field set is invalid, must contain a key=value pair","namespace":"default","time":"2021-07-01T21:15:39+02:00"}
Thanks for your help