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

Clean unused monitoring service additionalLabels value #77

Closed
wants to merge 1 commit into from

Conversation

rdettai
Copy link
Contributor

@rdettai rdettai commented Apr 11, 2024

A quick search in the repo didn't give any match for serviceMonitor.additionalLabels:

@rdettai rdettai self-assigned this Apr 11, 2024
@rdettai rdettai requested a review from fmassot April 11, 2024 09:57
@nlamirault
Copy link
Contributor

nlamirault commented May 2, 2024

If you remove the additional labels for ServiceMonitor, how do you specify to the Prometheus Operator to find the Quickwit Service Monitor?

With a Prometheus Operator configured like that:

prometheusSpec:
      ...
      ruleNamespaceSelector: {}
      ruleSelector:
        matchLabels:
          observability: infra
      serviceMonitorSelector:
        matchLabels:
          observability: infra
      serviceMonitorNamespaceSelector: {}
      podMonitorSelector:
        matchLabels:
          observability: infra
      podMonitorNamespaceSelector: {}
      probeSelector:
        matchLabels:
          observability: infra
      probeNamespaceSelector: {}

we can set the Quickwit ServiceMonitor like that:

serviceMonitor:
  enabled: true
  additionalLabels:
    observability: infra

Without the additional labels, the ServiceMonitor will not be find by the Prometheus Operator. Then Prometheus operated by the Prometheus Operator don't monitor Quickwit :(

See: #80

@rdettai
Copy link
Contributor Author

rdettai commented May 6, 2024

Thanks for giving some context @nlamirault. The intent here was to clean up a setting that wasn't working properly, but fixing it is obviously better! Closing this in favor of #80

@rdettai rdettai closed this May 6, 2024
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