How to monitor influxdb

Dear community,

is there a plugin available to monitor an influxdb?

When searching for check_mk and influxdb I only get articles that tell me how to integrate check_mk and influxdb, but not HOW to monitor the influxdb with check_mk.

Does someone got a plugin handy?

Write your own plugin. That should be quite easy for the whitespace separated metrics format from the HTTP endpoint /metrics. Start with an agent plugin on the database server that basically pipes the output of this endpoint into a section in the monitoring output:

#!/bin/bash
echo '<<<my_influx>>>'
wget -O - http://127.0.0.1:1234/metrics

Writing a plugin for the Checkmk side is documented here: Writing your own check plug-ins
I wrote a programming example that should be easily adaptable for the metrics you need to pull from the output:
checkmk-snippets/mkp/helloworld at main · mschlenker/checkmk-snippets · GitHub
It uses exactly the same space separated format as input, so just install the Hello world! MKP and start adjusting and extending it for the required Influx parameters.
Checkmk Exchange

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.