Comments (4)
In my opinion a single label named 'aggregates', which can be a space/comma separated list of aggregates on which a specific hypervisor belongs to should suffice to solve this issue as you can filter by a specific label and sum the vcpus_available. Any drawbacks on using this approach?
from openstack-exporter.
Thats certainly a possibility @niedbalski. I guess if we make the space/comma separated list in alphabetical order, we make sure we don't end up with lots of different combinations. For example, you don't get one hypervisor which has the 'aggregates' label value set to "az-west,ssd-hosts,shared-cluster"
and one other set to "ssd-hosts,az-west,shared-cluster"
.
Just one drawback of this approach is, if you have hypervisors being part of more than one aggregate, you can not group by one aggregate. For example, with the example aggregates label values above, I won't be able to group by just the ssd-hosts
. Not without making hard coded dashboards in Grafana for example.
Ideally, you would want to do something like this:
sum(vcpus_available) by(aggregates)
And make rules (for alerting), like this:
sum(vcpus_available) by(aggregates) < 20
This will still work for the collection of hypervisors which all have the same combination of aggregates (e.g. "az-west,ssd-hosts,shared-cluster"
), but if I then would want to alert on when vcpus are running low on just the ssd-hosts
, I would have to make it hardcoded like:
sum(vcpus_available{aggregates=~".*ssd-hosts.*"}) by(aggregates) < 20
Perhaps this is fine, as I guess usually teams don't often add new aggregates?
from openstack-exporter.
This PR does the job: #75
Happy X-mas holidays! Cheers!
from openstack-exporter.
Merged #75 , Thank you very much for your amazing contributions @prolane !
from openstack-exporter.
Related Issues (20)
- Failed to collect metric for exporter: neutron HOT 1
- Failed to collect metric for exporter: nova
- Failed to collect metric for exporter: nova HOT 4
- I don’t understand what’s wrong with this error report, please let me know, thank you HOT 2
- [Feature Request] include availability zone for cinder volumes
- [Feature Request] Add Cinder backup quota and usage
- openstack_neutron_router issues with ovn
- Name change request
- filter metrics by cloud when the multi-cloud option is selected
- [Feature Request] Add IP Address Label To Neutron Port HOT 6
- seg fault with the glance service. HOT 1
- Add Manila support HOT 2
- Installation Guide HOT 4
- Any new binary releases HOT 11
- Running with --disable-metric=nova-server_status crashes the exporter
- Missing metrics for OpenStack agent monitoring
- extract `enabled` label from `openstack_identity_project_info` as a new metric
- Domain Names are not listing in Openstack Metrics
- Looking for more Nova and Neutron metrics
- Additional openstack_cinder_snapshot_gb metric
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 openstack-exporter.