I was wondering if Telegraf supports a way of filling a set of predefined metric values even when there’s a connection time-out at the remote end-device.
Once telegraf can’t connect, it basically “skips” the input end-point device and leaves influxdb empty.
Thus, querying this data, for example through Grafana, gives me an empty row/no data.
Instead, I’d like for telegraf to fill in predefined values which could later be used to identify as connection errors at the front-end.
input.exec (this last one with ‘curl’) to send out get-requests to parse JSON-data in return.
The plugin that comes close is Defaults Processor, but sadly it doesn’t seem to handle connection time-outs.
My only solution was to use
input.execd in order to trigger a custom-made console app which would also run a get request, but in turn would handle a connection time-out by returning JSON data with predefined error values to use as troubleshooting.
Any ideas or suggestions are much appreciated.