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

Splunk otel-collector needs the brupop-controller-deployment pods annotated #676

Open
AndreiBanaruTakeda opened this issue Sep 2, 2024 · 0 comments

Comments

@AndreiBanaruTakeda
Copy link
Contributor

Image I'm using:
v1.3.0

Issue or Feature Request:
In order for the Splunk otel-collector to scrape the metrics from the brupop-controller-deployment pods, the pods need to be annotated:

prometheus.io/port: "8080"
prometheus.io/scrape: "true"

I see service/brupop-controller-server is annotated with the above, but Splunk looks for those annotations at the pod level.

Proposal is to add the annotations in the deployment/brupop-controller-deployment:

spec:
  template:
    metadata:
      annotations:
        prometheus.io/port: "8080"
        prometheus.io/scrape: "true"

Testing executed:

  1. I manually edited deploy/brupop-controller-deployment and added the above annotations
  2. kubectl rollout restart deployment brupop-controller-deployment
  3. I had to wait for the scheduler_cron_expression for metrics to become available
  4. Checked for the metrics in Splunk
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

No branches or pull requests

1 participant