Skip to content

helm: add ServiceMonitor resource#2260

Closed
nlamirault wants to merge 5 commits intoenvoyproxy:mainfrom
nlamirault:feat/servicemonitor
Closed

helm: add ServiceMonitor resource#2260
nlamirault wants to merge 5 commits intoenvoyproxy:mainfrom
nlamirault:feat/servicemonitor

Conversation

@nlamirault
Copy link
Copy Markdown

What type of PR is this?

Support ServiceMonitor resource to monitoring Envoy Gateway using the Prometheus Operator

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Signed-off-by: Nicolas Lamirault <[email protected]>
@nlamirault nlamirault requested a review from a team as a code owner December 1, 2023 08:00

serviceMonitor:
# -- Enable this if you're using https://github.com/coreos/prometheus-operator
enabled: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should support this, at least it should be default off.

@nlamirault
Copy link
Copy Markdown
Author

sure @zirain it was a mistake.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.31%. Comparing base (4c52f10) to head (34473ed).
Report is 4 commits behind head on main.

❗ Current head 34473ed differs from pull request most recent head 870a19c. Consider uploading reports for the commit 870a19c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2260      +/-   ##
==========================================
- Coverage   66.89%   64.31%   -2.58%     
==========================================
  Files         163      112      -51     
  Lines       23453    15728    -7725     
==========================================
- Hits        15689    10116    -5573     
+ Misses       6838     4973    -1865     
+ Partials      926      639     -287     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zirain zirain changed the title [Helm chart] ServiceMonitor resource helm: add ServiceMonitor resource Dec 1, 2023
Copy link
Copy Markdown
Member

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

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

IMO, it is better to move this into addons or examples.

@Xunzhuo Xunzhuo added the hold do not merge label Dec 6, 2023
@zirain
Copy link
Copy Markdown
Member

zirain commented Dec 6, 2023

IMO, it is better to move this into addons or examples.

we can add a new helm chart for all these things, and it won't break the core.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions bot added stale and removed stale labels Jan 18, 2024
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale label Feb 18, 2024
@nlamirault
Copy link
Copy Markdown
Author

@zirain a new chart just for ServiceMonitor resource ?

@github-actions github-actions bot removed the stale label May 7, 2024
@@ -0,0 +1,26 @@
{{- if .Values.serviceMonitor.enabled }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want an extra layer of protection with something like {{ if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" -}} ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

@guydc
Copy link
Copy Markdown
Contributor

guydc commented May 7, 2024

new chart just for ServiceMonitor resource ?

I think that other projects also take this approach: https://github.com/istio/istio/blob/4f54ef1ba6ff4608841e76c5233827322e683a86/samples/addons/extras/prometheus-operator.yaml#L48

+1 for an addons chart that will contain additional observability examples, like the ones here: https://github.com/envoyproxy/gateway/tree/main/examples/.

@zirain
Copy link
Copy Markdown
Member

zirain commented May 7, 2024

I understand that why users want add this, but I do really don't want this be part of part core chart.

Option 1: be part of examples.
Option 2: part of an new addon chart(maybe it's a little early)

@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented May 7, 2024

adding some labels to this, so we prioritize making a decision here

@arkodg arkodg added the kind/decision A record of a decision made by the community. label May 7, 2024
@arkodg arkodg added this to the v1.1.0-rc1 milestone May 7, 2024
@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented May 8, 2024

should this be a add-on chart (along with prom and grafana with no EG resource) or a demo/extended chart (with EG as a subchart) ?

@zirain
Copy link
Copy Markdown
Member

zirain commented May 8, 2024

should this be a add-on chart (along with prom and grafana with no EG resource) or a demo/extended chart (with EG as a subchart) ?

either is better than current.

@shawnh2
Copy link
Copy Markdown
Contributor

shawnh2 commented Jun 5, 2024

Since #3470 landed, what is the status of this PR? Do we still need this?

@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented Jun 5, 2024

@shawnh2 as part of #3470, did we need to define a ServiceMonitor to ensure Prometheus can scrape properly ?

@shawnh2
Copy link
Copy Markdown
Contributor

shawnh2 commented Jun 14, 2024

@shawnh2 as part of #3470, did we need to define a ServiceMonitor to ensure Prometheus can scrape properly ?

The ServiceMonitor is used for Prometheus-operator, since we do not support this operator now, we can include this as a option in gateway-addons-helm.

@arkodg arkodg modified the milestones: v1.1.0-rc1, Backlog Jun 25, 2024
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale label Jul 25, 2024
@arkodg
Copy link
Copy Markdown
Contributor

arkodg commented May 23, 2025

closing this PR since its become inactive, the ServiceMonitor should be available in the gateway-addons-helm chart now
the `

@arkodg arkodg closed this May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold do not merge kind/decision A record of a decision made by the community. stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants