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

fix(helm): expose prometheus metrics port for scraping if enabled #919

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

killzoner
Copy link

@killzoner killzoner commented Mar 21, 2025

Revamp of #889

Tested with

configuration:
    general:
      enable_prometheus_exporter: true
  podAnnotations:
    prometheus.io/path: /metrics
    prometheus.io/port: "9930"
    prometheus.io/scrape: "true"

and it works well

@killzoner killzoner changed the title fix(helm): expose prometheus port for scraping if enabled fix(helm): expose prometheus metrics port for scraping if enabled Mar 21, 2025
@killzoner killzoner marked this pull request as ready for review March 24, 2025 14:40
{{- if .Values.configuration.general.enable_prometheus_exporter }}
- name: metrics
containerPort: {{ .Values.configuration.general.prometheus_exporter_port }}
protocol: TCP
Copy link
Author

@killzoner killzoner Mar 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used TCP here and not HTTP because i'm not sure how specific the setup has to be for HTTP and custom/cloud specific LoadBalancer
And also it works as is so I don't think it's worth making things more complicated

https://kubernetes.io/docs/reference/networking/service-protocols/#protocol-http-special

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.

1 participant