Proxmox Metrixserver Fehlermeldung

jolu1705

Member
Oct 11, 2020
41
1
13
47
Hi,

ich habe eine InfluxDB auf einem anderen System bei Proxmox unter Metrikserver eingetragen.
Das Problem ist nun das Proxmox die Datenbank nicht anlegt bzw. anlegen darf.
InfluxDB und Proxmox Einträge sind korrekt, aber die InfluxDB ist auf "authentication only" eingestellt d.h.
ich brauche eine Möglichkeit Proxmox einen Usernamen und ein Passwort mitzugeben.

/var/log/daemon.log bestätigt wohl das Problem
Code:
May 11 14:35:45 proxmox pvestatd[1064]: metrics send error 'influxdb': failed to send metrics: Connection refused

Gibt es eine Möglichkeit einen User und ein Passwort für die Verbindung einzutragen?
 
seit pve 6.4 geht das ja, da haben wir support für die http(s) api eingebaut
 
Since InfluxDB’s v2 API is only available with authentication, you have to generate a token that can write into the correct bucket and set it.

What's a bucket and how to generate a token?

Can you give an example please? The documentation is not really helpful or at least missing information.
 
Since InfluxDB’s v2 API is only available with authentication, you have to generate a token that can write into the correct bucket and set it.

What's a bucket and how to generate a token?

Can you give an example please? The documentation is not really helpful or at least missing information.
Had the same problem.

First, set up influxdb2 (see https://portal.influxdata.com/downloads/) and configure it using the web-frontend. E.g. http://10.8.1.172:8086 to set username and pwd of influxdb webfrontend.

Token: In influxdb go to data, tokens, click on the existing one or create new one and hit copy token.
1623950787426.png

Then go to Proxmox Datacenter, "Metric Server", press "Add", and enter IP of influxdb-server, port 8086 + fill field token with the one you copied before.
1623950531682.png

Data should arrive now in bucket "proxmox". Click on it and explore.
1623950943997.png
 

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!