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: Set proper pod port where prometheus metrics are exposed #869

Merged

Conversation

randrusiak
Copy link
Contributor

Currently, prometheus-server tries to scrape metrics from pod's port 80 which isn't exposed.
According to default prometheus kubernetes_sd_config service annotation prometheus.io/port should point to pod's port instead of service port.

@CLAassistant
Copy link

CLAassistant commented Mar 18, 2021

CLA assistant check
All committers have signed the CLA.

Signed-off-by: randrusiak <r.andrusiak@protonmail.com>
@@ -321,7 +321,7 @@ metadata:
namespace: kuberhealthy
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "80"
prometheus.io/port: "8080"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will get regenerated by our build automation when the helm chart is updated - fyi

@@ -10,7 +10,7 @@ metadata:
annotations:
{{- if and .Values.prometheus.enabled (not .Values.prometheus.serviceMonitor.enabled) }}
prometheus.io/scrape: "true"
prometheus.io/port: "80"
prometheus.io/port: "8080"
Copy link
Collaborator

Choose a reason for hiding this comment

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

@joshulyne can you verify 8080 is the right port here??

Copy link
Collaborator

@joshulyne joshulyne Mar 29, 2021

Choose a reason for hiding this comment

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

yupp, they're right!

@joshulyne joshulyne merged commit 1f42efd into kuberhealthy:master Mar 29, 2021
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.

None yet

4 participants