The wmi_exporter was renamed to windows_exporter when we moved it to the
Prometheus Community org. It originally started out as only handling WMI.
But the functionality was expanded to use windows-native system calls to
replace a number of WMI calls for performance and reliability. (WMI is slow
and unreliable)

IMO, relabeling, or duplicating data, is not the correct way to handle a
transition like this. This can be solved in PromQL in Grafana or alerting
rules.

A simple "or" operator can pick the correct metric.

windows_FOO or wmi_FOO


On Fri, Jun 26, 2020 at 8:38 AM Brian Candler <[email protected]> wrote:

> You could scrape twice and relabel one of them - but then you'd be better
> off just scraping the old and new exporters once each.
>
> I think is is probably the best option anyway.  Unless you are 100% sure
> that every wmi_xxx metric has exactly the same semantics and labels as the
> corresponding windows_xxx metrics, you could cause yourself accidental pain.
>
> Do you mind if I ask, why did you decide to move from wmi_exporter to
> windows_exporter?  I rarely have to deal with Windows machines, but when I
> do, I'd like to know what influences the choice of exporter.  The fact
> you're considering relabelling suggests that the metrics they produce are
> very similar.
>
>> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/be6e41c6-c853-454c-ac85-c0d31f2ab2a4o%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/be6e41c6-c853-454c-ac85-c0d31f2ab2a4o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CABbyFmo2E7tsz0i8pgBLAmz7yxE39Fo5Zp4sa03qKCKgkdEQaA%40mail.gmail.com.

Reply via email to