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

Expose Dex metrics and scrape them with Prometheus #3374

Open
alexandre-allard opened this issue May 11, 2021 · 0 comments
Open

Expose Dex metrics and scrape them with Prometheus #3374

alexandre-allard opened this issue May 11, 2021 · 0 comments
Labels
complexity:easy Something that requires less than a day to fix topic:monitoring Everything related to monitoring of services in a running cluster

Comments

@alexandre-allard
Copy link
Contributor

alexandre-allard commented May 11, 2021

Component: charts, salt

Why this is needed:
To be able to correctly monitor Dex processes.

What should be done:
Expose Dex metrics, then scrape them using Prometheus.

Implementation proposal (strongly recommended):

  • Tune the Dex Helm chart configuration file charts/dex.yaml to enable metrics
telemetry: true
  • Deploy a ServiceMonitor object to expose the Dex /metrics path to Prometheus.

Test plan:

@alexandre-allard alexandre-allard added complexity:easy Something that requires less than a day to fix topic:monitoring Everything related to monitoring of services in a running cluster labels May 11, 2021
alexandre-allard added a commit that referenced this issue May 17, 2021
Enable telemetry and re-render dex chart:
```
./charts/render.py dex \
      --namespace metalk8s-auth charts/dex.yaml \
      --service-config dex metalk8s-dex-config \
      metalk8s/addons/dex/config/dex.yaml.j2 metalk8s-auth \
      --remove-manifest Secret dex \
      charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls
```

Refs: #3374
alexandre-allard added a commit that referenced this issue May 17, 2021
This allows Prometheus to scrape Dex metrics

Refs: #3374
alexandre-allard added a commit that referenced this issue May 17, 2021
This allows Prometheus to scrape Dex metrics

Refs: #3374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity:easy Something that requires less than a day to fix topic:monitoring Everything related to monitoring of services in a running cluster
Projects
None yet
Development

No branches or pull requests

1 participant