Comments (14)
Hi,
I'm thinking about it, thanks for the inputs, I'll read them carefully.
My main concern is about login/passwords used to connect to each esxi/vcenter.
from vmware_exporter.
for my particular use case all of the endpoints I would want to monitor with a single exporter use the same username and password so I would be fine with leaving that part in a static config file.
from vmware_exporter.
Hi,
I agree with wtip, would be a cool addition.
Regarding the passwords I think they should be placed in the config file, basically replicating the section format that is used in the current implementation for multiple endpoints. The metrics collection would then reference one of the multiple configurations by name, leaving the credentials hidden in the exporter's config.
Andreas
from vmware_exporter.
Hi,
this would be a great extention.
Another thing in this context:
It would be great to have more information for filtering in the counters.
for example the ESX host to the VM or the cluster to the host
for example VM fom now:
{instance="localhost:9272",job="vmware",vm_name="vcenter-psc01"}
to
{instance="localhost:9272",job="vmware",host="esx1",vm_name="vcenter-psc01"}
or host
{host_name="esx1",instance="localhost:9272",job="vmware"}
to
{host_name="esx1",instance="localhost:9272",job="vmware",cluster="Lab-Cluster",datacenter="MUC"}
Robert
from vmware_exporter.
Just tested the multi_endpoint branch, seems to work. I will put in test.
Now a parameter "target" (similar to SNMP) could be used to reference a section in the config file, even though it is quite clumsy in the prometheus config. Should be similar to:
- job_name: 'vmware'
scrape_interval: 60s
target_groups:
- targets:
- lab-cluster # reference section in vmware_exporter.yml
- test-esxi-host # references another section
relabel_configs:
- source_labels: [__address__]
regex: (.*?)(:80)?
target_label: __param_target
replacement: ${1}
- source_labels: [__param_target]
regex: (.*?)(:80)?
target_label: instance
replacement: ${1}
- source_labels: []
regex: .*
target_label: __address__
replacement: 127.0.0.1:9272 # vmware exporter.
from vmware_exporter.
@ipsecguy, I have just started finding doc on how to manage multi endpoints, it is not implemented so far in the multi_endpoint branch;)
The only difference now is that it makes a connect/disconnect for each request.
from vmware_exporter.
Yes, I know, I read the code. It was more to see whether there are any side effects with connect/disconnect at each scrape. But I just saw your update, I will test later this evening.
from vmware_exporter.
This is mostly done, waiting for your feedbacks before closing it.
from vmware_exporter.
Hi,
I don't understand the part with file_sd_configs
can you show an example of /etc/prometheus/esx.yml ?
Robert
from vmware_exporter.
@is4it-lab, it's a different way to list targets ( see file_sd_config ):
- targets:
- 'esx1.company.com'
- 'esx2.company.com'
from vmware_exporter.
Hi,
I am now able to scrape multiple ESXi host. I am not using a "default" section (all my hosts are configured explicitly). Deleting the default section seems to stop it working, putting dummy account data seems breaks things, the metrics URL is then empty.
from vmware_exporter.
@ipsecguy, for now you must have a default section.
from vmware_exporter.
@rverchere Thank you for implementing this. I just got around to trying this out today. I've got it scraping 4 hosts at the moment.
from vmware_exporter.
Works for me for weeks now, I can close the issue.
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
- Add "cluster" label for hosts, vms and datastores HOT 10
- 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.