Comments (10)
@rverchere looking at pyvmomi and vsphere api, I believe there is no simple way to add this label.
But, we should be able to create a new set of metrics with this information, for example:
vmware_vm_dc_cluster{vm_name="vm1",dc_name="dc1",cluster_name="cluster1"} 1
vmware_host_dc_cluster{host_name="host1",dc_name="dc1",cluster_name="cluster2"} 1
vmware_datastore_dc_cluster{ds_name="ds1",dc_name="dc1",cluster_name="cluster3"} 1
Taking some inspiration on how to retrieve this data from here: https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/getvmsbycluster.py
Once we have these metrics in place, we can use the PromQL grouping capability to build queries like so:
(sum(vmware_host_cpu_usage) / sum(vmware_host_cpu_max) * 100) * ON (host_name) group_left(cluster_name) vmware_host_cluster{cluster_name="PROD"}
The above would be very valuebale to us, as it will allow us to aggregate metrics based on the relevant clusters, espeically for alerting since Prod and Staging hosts/vms/datastores are not to be treated the same.
/edit: I think it would also make sense to include the datacenter name as well (examples updated above), also needless to say but these should only be collected from vcenter target(s).
from vmware_exporter.
@rverchere sorry for nagging 😄 just wondering if you had a chance to look into this?
from vmware_exporter.
from vmware_exporter.
Hey! enjoy your time off 😄
from vmware_exporter.
+1 DC and cluster would be really helpful.
Also enjoy your time off.
from vmware_exporter.
ping @rverchere 😄
from vmware_exporter.
@dannyk81 pong : https://github.com/rverchere/vmware_exporter/blob/master/README.md#unmaintained
Sorry but I started new job with new monitoring tools, so I cannot continue maintain this exporter (yet).
from vmware_exporter.
Best of luck @rverchere!
Hope someone is found to continue this work 🙏
from vmware_exporter.
@rverchere I know you're no longer working on this, but perhaps you will consider to include #36
It provides a meta metric with labels that describe the datacenter, cluster and host per VM.
It can be easily used in PromQL to filter other metrics based on these parameters.
from vmware_exporter.
This issue was moved to pryorda/vmware_exporter#4
from vmware_exporter.
Related Issues (20)
- Rename config values
- Send 500 status code when error connecting to host HOT 2
- add host network metrics HOT 1
- Prometheus erro HOT 24
- Metrics gathering blocks if connection is timing out HOT 7
- add exporter runtime metrics HOT 1
- Performance impact of refreshing each datastore info at every scrape HOT 4
- exporter is refreshing vcenter datastore states every one minutes HOT 2
- The response time is too long HOT 5
- Need /healthz endpoint(s) HOT 1
- [Feature Request] Add Host Hardware Information HOT 1
- Limit metrics to be collected HOT 1
- Unclear values for vmware_vm_cpu_usage_average metric HOT 3
- vmware_vm_cpu_ready_summation is not very useful without the number of vCPUs on the VM HOT 2
- Python 3 support HOT 1
- Getting Alarm Info HOT 1
- exceptions.TypeError: a float is required HOT 1
- Transfer ownership HOT 2
- connection to vcenter lost HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmware_exporter.