Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service V2 collector #1497

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkroepke
Copy link
Member

Ref: #1458 (@paologallinaharbur needs to confirm this as fix)

The old service collector via WMI query doesn't perform well.
The alternative approach (using the API direct) is an better improvement, however it needs time, because is asks each single service about state and configuration. That doesn't scale well. Additionally, admin permissions is mandatory.

I introduce a V2 collector here, because it's an breaking change in terms of metrics. (labels are different and information are omit)

The code based on https://github.com/DataDog/datadog-agent/blob/afbd8b6c87939c92610c654cb07fdfd439e4fb27/pkg/util/winutil/scmmonitor.go#L59

Performace

WMI:
windows_exporter_collector_duration_seconds{collector="service"} 0.4285152

API:
windows_exporter_collector_duration_seconds{collector="service"} 0.3175442

V2:
windows_exporter_collector_duration_seconds{collector="service"} 0.0046183


Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant