-
Notifications
You must be signed in to change notification settings - Fork 590
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
Prometheus needs to scrape 2 addresses in a pod #1497
Comments
Proxy is exporting prometheus format data, and Controller is reporting metrics using golang-prometheus library (#1520). |
Currently we get these from the base manifests: kubernetes-ingress-controller/deploy/single-v2/all-in-one-dbless.yaml Lines 1331 to 1332 in bc19341
Those explicitly do not support multiple ports, however, because Kubernetes labels don't work that way. The CRD approach appears to be the officially endorsed solution: prometheus/prometheus#3756 (comment) (I thought I'd found another discussion indicating that Prometheus specifically no longer mentioned those annotations in their docs because of this, but can't find those again). We already did provide the CRD in the chart, and should be able to add the controller's fairly easily: Kong/charts@0a8295d However, that does not work in 1.x, and we don't currently have any explicit 1.x/2.x gate in the chart for 2.x-only features that need template changes. |
Testing Notes: this would be a good time to add Prometheus as a |
Manual acceptance tests for the Helm chart support:
|
It looks like adding the new endpoint not supported in 1.x wouldn't be outright harmful if you're still running 1.x, but it will result in Prometheus spamming "hey I can't read this endpoint" errors forever, which is annoying. We could make conditional features based on semver comparisons between the Kong/charts@dbfd970 demonstrates this but it doesn't quite work yet. |
As per recent @Kong/team-k8s discussions the work for this repository is complete since we're passing on kustomize. All remaining work for this issue belongs in https://github.com/kong/charts so this does not need to be marked as a blocker for our first beta tag. |
Synced offline, as pointed out https://github.com/Kong/kubernetes-ingress-controller/blob/next/deploy/single-v2/all-in-one-dbless.yaml#L1331 Need fix ServiceMonitor resource and adopt it into manifests.yaml |
This feature has been in and verified. close as it is. |
Problem statement:
Kong Gateway has prom metrics on port 8100, KIC 2.0 has prom metrics on port 10255.
We want users who deploy KIC using our default methods to see metrics from both endpoints in Prometheus.
Proposed solution:
Acceptance criteria:
Kustomization makes it possible for Prometheus to scrape both KIC and Gatewaypostponed to post KIC 2.0The text was updated successfully, but these errors were encountered: