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: refactor collector (click PR for more information) #1584

Merged
merged 18 commits into from
Aug 31, 2024

Conversation

jkroepke
Copy link
Member

@jkroepke jkroepke commented Aug 24, 2024

Fixes #1528

New capabilities:

The service collector now support include/exclude flags to reduce the amount service metrics.

  • The WMI based collector is gone.
  • The API based collector and the V2 collector are merged into one. The collector is a bit slower, however it can be tuned with include flags.
  • The windows_service_status is gone. It was only supported by WMI service collector.
  • A new windows_service_process metric which hold the creation timestamp of the service process. The metric can be used to indicate service restarts between 2 scrape intervals.
  • The process_id label form windows_service_info metric is moved to windows_service_process metric
  • The name label value is not longer lowercase and matches the exact windows service name, e.g. remoteregistry -> RemoteRegistry

CLI Flags:

Old:

--collector.service.services-where "Name='windows_exporter'"

New:

--collector.service.include=windows_exporter

jkroepke and others added 10 commits August 24, 2024 20:38
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
…task that never run before

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@jkroepke jkroepke changed the title service: refactor collector (click here for me information) service: refactor collector (click here for more information) Aug 29, 2024
# Conflicts:
#	pkg/collector/mscluster/mscluster_cluster.go
#	pkg/collector/mscluster/mscluster_node.go
#	pkg/collector/mscluster/mscluster_resource.go
#	pkg/collector/mscluster_network/mscluster_network.go
#	pkg/collector/mscluster_resourcegroup/mscluster_resourcegroup.go
#	pkg/collector/service/service.go
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@jkroepke jkroepke changed the base branch from master to next August 31, 2024 18:14
@jkroepke jkroepke changed the title service: refactor collector (click here for more information) service: refactor collector (click PR for more information) Aug 31, 2024
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@jkroepke jkroepke merged commit 02ab3b2 into prometheus-community:next Aug 31, 2024
4 checks passed
@jkroepke jkroepke deleted the service_v2_only branch August 31, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Status Service NOT change when service restart less 2s
1 participant