Skip to content

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

Open
@AndreiBanaruTakeda

Description

@AndreiBanaruTakeda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions