-
Notifications
You must be signed in to change notification settings - Fork 689
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 prometheus guide to a working example and add Envoy metrics port #6269
Update prometheus guide to a working example and add Envoy metrics port #6269
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6269 +/- ##
==========================================
+ Coverage 81.61% 81.62% +0.01%
==========================================
Files 133 133
Lines 15858 15857 -1
==========================================
+ Hits 12942 12944 +2
+ Misses 2621 2619 -2
+ Partials 295 294 -1 |
The Contour project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this and looks good!
Couple of comments/questions inline and also, at the top of the guide, there is still reference to the annotations that can now be removed:
contour/site/content/guides/prometheus.md
Lines 9 to 10 in 162c077
default, annotations to gather them are in all the `deployment` yamls and they | |
should work out of the box with most configurations. |
then go to `http://localhost:9090` in your browser. | ||
|
||
#### Access the Alertmanager web UI | ||
Now add [`PodMonitor`][6] resources for scraping metrics from Contour and Envoy pods in the `projectcontour` namespace: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some discussion that suggested preferring ServiceMonitor
when service exists. Was there particular reason why choose PodMonitor
instead of ServiceMonitor
? I guess there should not be any difference at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use PodMonitor
internally because when the pods
of Envoy become not-ready during shutdown (preStop) you end up losing prom scrapes if you use ServiceMonitor
The Contour project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
I just removed that 2 sentences since the annotation part is no longer relevant |
594c79a
to
af7fbff
Compare
Updates docs page guide instructions and sample manifests Also removes prometheus annotations from Contour/Envoy and adds the metrics port to Envoy DaemonSet/Deployment so that Prometheus PodMonitors can reach the metrics server. The prometheus-operator project uses PodMonitors rather than annotations to configure Prometheus to discover scrape endpoints. Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com>
af7fbff
to
c1c4553
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once linter issue is fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me as well 👍
…rt (projectcontour#6269) Updates docs page guide instructions and sample manifests Also removes prometheus annotations from Contour/Envoy in the example YAMLs and provisioner generated resources and adds the metrics port to Envoy DaemonSet/Deployment so that Prometheus PodMonitors can reach the metrics server. The prometheus-operator project uses PodMonitors rather than annotations to configure Prometheus to discover scrape endpoints. Signed-off-by: Sunjay Bhatia <sunjayb@vmware.com> Signed-off-by: Saman Mahdanian <saman@mahdanian.xyz>
Updates docs page guide instructions and sample manifests
Also removes prometheus annotations from Contour/Envoy and adds the metrics port to Envoy DaemonSet/Deployment so that Prometheus PodMonitors can reach the metrics server. The prometheus-operator project uses PodMonitors rather than annotations to configure Prometheus to discover scrape endpoints.