How can I customization Telegraf for vSphere

Hi guys,

I want to monitoring my VM’s on Grafana so I use reapared template for that. Template is that. When I use this for hosts, it’s work fine but some feature is not working on vm’s template. For example cpu utilization is not found in my grafana interface. I made a try add telegraf.conf cpu.utilization.avarage but it’s not worked. How should I proceed?

Hi,

First are your sure the data you can’t display are stored in your database ?

Regards

1 Like

Check your win_cpu table?? I think you have some problem with cpu metric

1 Like

Hi,

My data is not save the database. I think, It’s about my telegraf config because I check the database measurements and they are coming from telegram config’s vSphere side. After I change the telegram config and create new database. It’s still not work.


I add the cpu.utilization.average measurements and change influxdb settings but when I restart the influxdb and telegraf service, I couldn’t see the measurement I added.

My Best Regards

Hi,

Where is the win_cpu table? I searched but I don’t find.

My Best Regards

In your case you have a table name vsphere_vm_cpu. Does this column contains data ?

1 Like

Yes, there are some data but i can’t see the field i want.

I think if I had the data I wanted, I had to see it in this table.
image
Another example
image

You need to do two thing .

Open your dashboard and edit that specific panel which one is showing information cpu utilization .
See whether you are using correct metric or column from selection list .
For the verification of data whether its coming in grafana or not change the visualization style from graph to table and try to validate data. If data is not populating in table view. Inspect your browser and see error messages.

1 Like

Sorry but I guess I didn’t tell myself. I could not see cpu utilization selection in my panel.

But I figured it out. It’s about telegraf config’s “vm” section. If someone looking for cpu utilization, they should add the line in “vm_metric_include”

"cpu.usage.average"