Telegraf WMI inputs > Prometheus > Grafana

  • What Grafana version and what operating system are you using?
  • What are you trying to achieve?
    i want to display windows OS information in grafana, e.g. Windows OS name and version number
  • How are you trying to achieve it?
    using telegraf to expose WMI metrics (telegraf version 1.26) on windows server. prometheus scrapes the windows server.
  • What happened?
    not sure how to make it dynamic. i can get the OS name displaying in prometheus using : win_wmi_Win32_OperatingSystem_OperatingSystemSKU. it shows the result: win_wmi_Win32_OperatingSystem_OperatingSystemSKU{Caption=“Microsoft Windows Server 2019 Datacenter”, FreePhysicalMemory=“1877484”, Version=“10.0.17763”, host=“CENNOX-FP1”, instance=“”, job=“windows”, server=“CENNOX-FP1”, zone=“eu-west-2c”}

i want to know how to display only the “caption” and the version in grafana, dynamically for each server.

  • What did you expect to happen?
    i cant get it working …

  • Can you copy/paste the configuration(s) that you are having problems with?
    I just need some guidance on how to write the query in grafana

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    things i’ve tried just say ‘no data’

  • Did you follow any online instructions? If so, what is the URL?
    searched through the prometheus / PromQL documentation on their website and also your documentation but couldnt find anything.
    also nothing on telegrafs documentation.