4 Commits
Author SHA1 Message Date
dualfroz 2564208ca8 fix #5997: metrics: influxdb: fall back to the ready endpoint in connection test
The connection test for InfluxDB over HTTP(S) queries the '/health'
endpoint. The InfluxDB v2 listener of Telegraf only has it since
version 1.36, older versions only provide '/api/v2/ready'. So adding
such a listener as metric server fails with '404 Not Found', although
writing metrics to it would work.

If '/health' is not found, query '/api/v2/ready' instead. Other errors,
like an invalid token, are still reported right away.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-03 03:24:10 +02:00
upstream 6cb3347d96 Upstream proxmox-git/pve-manager state of the touched files before f6a1a98be5 2026-10-03 03:24:10 +02:00
dualfroz 5537758fe8 fix #6560: metrics: influxdb: do not send storage type as field too
The type of a storage is sent as a tag, but it is also part of the
storage status data and so sent as a field with the same name.
InfluxDB 3 does not allow this and rejects the whole write with:

 'type' is used as both a tag and a field

so no storage metrics end up in the database.

Exclude the type from the fields, like it is already done for the
VMID of guests since commit 456be471 ("fix #3440: influxdb: remove
duplicate vmid tag").

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-03 01:09:40 +02:00
upstream c739e509f9 Upstream proxmox-git/pve-manager state of the touched files before ae24f0571f 2026-10-03 01:09:40 +02:00