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

Add label to weaviate service for monitoring. #253

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

jfrancoa
Copy link
Contributor

@jfrancoa jfrancoa commented Aug 1, 2024

Currently, the ServiceMonitor uses a set of labels which match all the three existing services: weaviate, weaviate-headless and weaviate-grpc. This ends up into importing three different targets in Prometheus, multiplying all the metrics by 3. This PR adds a new label monitoring: enabled in the weaviate service only if serviceMonitor is enabled (and the PROMETHEUS env variable too). Like this, only one target will be imported, reducing the number of metrics.

Currently, the ServiceMonitor uses a set of labels which
match all the three existing services: weaviate, weaviate-headless
and weaviate-grpc. This ends up into importing three different
targets in Prometheus, multiplying all the metrics by 3.
This PR adds a new label monitoring: enabled in the weaviate
service only if serviceMonitor is enabled (and the PROMETHEUS env
variable too). Like this, only one target will be imported, reducing
the number of metrics.
@jfrancoa jfrancoa merged commit 858ae40 into master Aug 2, 2024
2 checks passed
@jfrancoa jfrancoa deleted the improve_servicemonitor branch August 2, 2024 06:05
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.

2 participants