Metrics server - Error 404

mii

New Member
Sep 30, 2024
8
1
3
I am trying to Proxmox to report Metrics via InfluxDB.

I have an LXC container, on the Proxmox machine, running Telegraf acting as an InfluxDB listener on:
Code:
https://influx.domain.com:8186/
. (the V1 API would also be available).

This works fine, as I can send to it from my PC, and can contact it from Proxmox using either the hostname, or the IP address (without certificate verification).

From Proxmox:
Code:
curl -i -XPOST  'https://influx.domain.com:8186/api/v2/write' --data-binary 'cpu_load_short,host=s
erver01,region=us-west value=1.13' --header 'Authorization: Token TokenGoesHereInClearText'
HTTP/1.1 204 No Content
Date: Tue, 22 Oct 2024 11:26:09 GMT

What my configuration looks like:
Code:
root@pma:~# cat /etc/pve/status.cfg
influxdb: Influx
        disable
        port 8186
        server influx.domain.com
        influxdbproto https

Whenever I try to enable it in the GUI, I get this error:
Code:
404 (Not found)
.

It is contacting the server though - I can, on the server, get the following in the Telegraf logs when the host is contacted via IP, but enabled certificate verification:
Code:
2024-10-22T11:46:37Z I! http: TLS handshake error from 10.xx.x.20:39330: local error: tls: bad record MAC

I have tried with various combinations of bucket / organization, which should not be necessary. Other hosts can send to this endpoint without problems. I can disable the certificate verification, but this does not help.

I have put various variations / parts of
Code:
/api/v2/write
in API path prefix, without success - I keep getting a 404.

Where can I get more information on what Proxmox is doing? The Telegraf instance isn't showing anything useful..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!