Service Monitor: Missing provision to provide authentication credentials to metrics endpoint #635

Closed
opened 2024-04-02 05:29:56 +00:00 by hiteshnayak305 · 2 comments
hiteshnayak305 commented 2024-04-02 05:29:56 +00:00 (Migrated from gitea.com)

Hello,

There is no any provision to provide credentials in service monitor configuration using helm chart

gitea:
  config:
    metrics:
      # ENABLED: true
      TOKEN: "somepassword"
  metrics:
    enabled: true
    serviceMonitor:
      enabled: true

getting 401 on metrics endpoint

Bypass: empty TOKEN

servicemonitor.yaml

How to https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/basic-auth.md

Hello, There is no any provision to provide credentials in service monitor configuration using helm chart ``` gitea: config: metrics: # ENABLED: true TOKEN: "somepassword" metrics: enabled: true serviceMonitor: enabled: true ``` getting 401 on metrics endpoint Bypass: empty TOKEN [servicemonitor.yaml](https://gitea.com/gitea/helm-chart/src/branch/main/templates/gitea/servicemonitor.yaml) How to https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/basic-auth.md
hiteshnayak305 commented 2024-04-03 06:19:41 +00:00 (Migrated from gitea.com)

I would like to work on PR if possible.

I would like to work on PR if possible.
justusbunsi commented 2024-04-03 06:21:32 +00:00 (Migrated from gitea.com)

Your contribution is very welcome. No one is currently working on it.

Your contribution is very welcome. No one is currently working on it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#635
No description provided.