-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collect from current node only information about node's VMs/CTs/etc #54
Comments
There are multiple strategies to mitigate this problem. From the top of my head:
In the second case you might want to relabel the collected metrics after scraping and replace the instance label with something which does not change between machines. The simplest relabel config is the following; metric_relabel_configs:
- action: replace
target_label: instance
replacement: mycluster.example.com
- action: labeldrop
regex: exported_instance It will force |
Thank you for recommendations. And, for a second variant, |
It is certainly possible to configure two or more DNS round robin records and then distribute the proxmox IPs into those sets. Then scrape multiple DNS round robin records.
Relabelling is a constant source of confusion for prometheus users. I suggest to start with Life of a Label and then follow as many posts in the robust perception blog as necessary... The ultimate goal of the |
Ok, after couple of tries I've realized, that task cannot be ever done with any label manipulations.
are missing
having the
are include Thus, exporter just does not provide the complete infoset to operate with, and relabel will not help. Over all above, in a cluster dashboard shows quantum temperature of last scattering surface rather than CPU load for nodes (not for CTs/VMs), but it is not exporter's problem, anyway. Possibly I can fix this, but it requires rewriting whole pipeline. |
Do you like to know on which proxmox node a given container/VM is running? |
Maybe you need joins (see this blog)? I suggest the following query to try and see whether this is what you need:
|
Before all the things, I want to separate one node data from others. Also, it will be very nice to separate VM's/CT's Storage from Node Storage, for now they are mixed in
Without data separation by node you cannot calculate CPU/Memory/Disk/Net/any_other_load by node properly, because you cannot sum load by node, because you have no node information in CT/VM, isn't? |
Yes, you can. CPU load per node:
CPU load per VM/CT with
Disk usage per node with
Keep reading the robust perception blog... |
@maelstrom256 @znerol So far it's working well. Here's a sample configuration of HA proxy frontend and backend. frontend proxmox-prometheus backend proxmox-prometheus-back_ipvANY |
#156 landed. |
Currently, it collects data from every cluster node full set of cluster-wide metrics.
If you have twelve nodes in one cluster, you'll get a dozen of identical data.
It's an extremely duping of data and excessive resources waste.
The text was updated successfully, but these errors were encountered: