Metrics does not send information of all LXC/VM

MisterY

Renowned Member
Oct 10, 2016
140
4
83
37
I have InfluxDB and Grafana running and pointed to them in the metrics settings.

Approximately 10-20 % of my LXCs/VMs are missing in Grafana/InfluxDB.

What I did to solve the problem:
- Upgraded from PVE7 to 8.1
- Installed new Grafana and InfluxDB
- Upgraded to InfluxDB 2 (what a pain in the ass)
- installed new LXCs/VMs
- Installed a new server

Everytime the same problem: Some of the LXCs/VMs are missing!

What is the problem?
 
Sadly there was never an answer to this. I have the same issue here. I'm running an InfluxDB2 in a LXC container. It's configured as metric server within the Proxmox datacenter. It works, but when I'm creating a new LXC or VM, there is a certain chance, that it's metrics are not arriving at the InfluxDB2.

Any ideas?
 
Was able to identify and solve the problem - at least for me!


The causes were the Proxmox tags:

  • they are concatenated by Proxmox and passed to InfluxDB separated by semicolons: <tag1>;<tag2>;<tag3>...
  • In the vast majority of cases, InfluxDB interprets this as string.
  • Exception: If only a single tag is defined and this is a number, e.g. 12 - in this case the transferred value is interpreted as float.

  • Depending on which type of tag (string or float) arrives first at InfluxDB, the data type is set in the InfluxDB bucket. As a result, all VMs or LXCs are dropped with the other type of tag because it does not match the data type of 'tag'.

So either add at least one alphanumeric tag to all VMs/LXCs with numeric tags or even better: avoid numeric tags completely!
 
  • Like
Reactions: anderl1969

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!