gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

Influxdb3 output health-check

Open andrgras opened this issue 2 months ago • 2 comments

Influxdb3 is available for some time, today I tried to use it and getting errors on health check If I remove health-check-period then everything works.

From documentation system token is needed https://docs.influxdata.com/influxdb3/enterprise/admin/tokens/resource/create/#create-a-system-token

Then u can use curl http://localhost:8181/health --header "Authorization: Bearer apiv3_token" OK

outputs:
  influxdb-output:
    type: influxdb
    url: http://10.81.138.10:8181
    bucket: telemetry
    token: apiv3_tokenxxxxxxxxxxxxxxxxxxx
    batch-size: 1000
    flush-timer: 10s
    health-check-period: 60s
    event-processors:
      - sample-processor
      - convert-int-processor

2025/10/23 14:43:29.443828 [gnmic] version=0.42.1, commit=6b35566f, date=2025-10-20T17:04:55Z, gitURL=https://github.com/openconfig/gnmic, docs=https://gnmic.openconfig.net 2025/10/23 14:43:29.444084 [gnmic] using config file "/telemetry/gnmic-influxdb3.yaml" 2025/10/23 14:43:29.445118 [config] validating processor "convert-int-processor" config 2025/10/23 14:43:29.445155 [config] validating processor "sample-processor" config 2025/10/23 14:43:29.445737 [gnmic] starting output type influxdb 2025/10/23 14:43:29.446320 [influxdb_output:influxdb-output] added event processor 'sample-processor' of type=event-strings to output 2025/10/23 14:43:29.446393 [influxdb_output:influxdb-output] added event processor 'convert-int-processor' of type=event-convert to output 2025/10/23 14:43:29.448823 [influxdb_output:influxdb-output] failed health check: invalid character 'O' looking for beginning of value 2025/10/23 14:43:29.448967 [influxdb_output:influxdb-output] failed to check influxdb health: invalid character 'O' looking for beginning of value 2025/10/23 14:43:39.451450 [influxdb_output:influxdb-output] failed health check: invalid character 'O' looking for beginning of value 2025/10/23 14:43:39.451574 [influxdb_output:influxdb-output] failed to check influxdb health: invalid character 'O' looking for beginning of value 2025/10/23 14:43:49.453126 [influxdb_output:influxdb-output] failed health check: invalid character 'O' looking for beginning of value 2025/10/23 14:43:49.453221 [influxdb_output:influxdb-output] failed to check influxdb health: invalid character 'O' looking for beginning of value 2025/10/23 14:43:59.454999 [influxdb_output:influxdb-output] failed health check: invalid character 'O' looking for beginning of value 2025/10/23 14:43:59.455100 [influxdb_output:influxdb-output] failed to check influxdb health: invalid character 'O' looking for beginning of value

andrgras avatar Oct 23 '25 11:10 andrgras

It looks like influxdb3 returns an OK string as a response on the health endpoint instead of a JSON message. Influxdb3 is not supported by the library gNMIc uses (https://github.com/influxdata/influxdb-client-go). There is a separate V3 client lib: https://github.com/InfluxCommunity/influxdb3-go

If you still want to run influxdb3 there might be corner cases where things fail.

karimra avatar Oct 23 '25 17:10 karimra

Plans to add influxdb3 support?

andrgras avatar Oct 24 '25 05:10 andrgras