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

update metrics service prometheus port annotation #20

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Conversation

ploxiln
Copy link
Member

@ploxiln ploxiln commented Oct 31, 2024

I've added a comment next to the annotations to make it more clear how this is apparently suppose to work.

A copy of #18 because the original author @wreis closed it and deleted the branch (understandably, after a long time in apparent limbo).

For users of this chart, that enable prometheus metrics and don't customize the ports, nothing actually changes - because the service port and pod port matches by default.

wreis and others added 3 commits October 30, 2024 23:30
The Service port is not used for scraping. The actual Endpoints resources
part of Service are at 9117 (targetPort/containerPort). The best practice
for scraping metrics is to do that against Pods and/or Endpoints, not Services
ports directly. It is known to cause issues if more than one endpoint is behind
the service, as metric queries will be load-balanced as well leading to
inaccurate histograms.
@ploxiln ploxiln merged commit c100819 into master Nov 1, 2024
1 check passed
@ploxiln ploxiln deleted the prom_port_anno branch November 1, 2024 02:39
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.

2 participants