Skip to content

add optional agones.metrics.serviceMonitor.additonalLabels map to values.yaml in helm chart#4424

Merged
markmandel merged 2 commits intoagones-dev:mainfrom
jessebot:add-servicemonitor-labels
Jan 27, 2026
Merged

add optional agones.metrics.serviceMonitor.additonalLabels map to values.yaml in helm chart#4424
markmandel merged 2 commits intoagones-dev:mainfrom
jessebot:add-servicemonitor-labels

Conversation

@jessebot
Copy link
Copy Markdown
Contributor

@jessebot jessebot commented Jan 15, 2026

What type of PR is this?
/kind feature

What this PR does / Why we need it:

This makes it so that users can add additional labels to the ServiceMonitors deployed by this chart. This is useful if users have prometheus or alloy set to only scrape ServiceMonitors with specific labels.

Which issue(s) this PR fixes:

Closes #4178

Special notes for your reviewer:

@google-cla
Copy link
Copy Markdown

google-cla bot commented Jan 15, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added kind/feature New features for Agones size/XS labels Jan 15, 2026
@jessebot jessebot changed the title add optional agones.metrics.serviceMonitor.additonalLabels map to values.yaml add optional agones.metrics.serviceMonitor.additonalLabels map to values.yaml in helm chart Jan 15, 2026
@markmandel
Copy link
Copy Markdown
Collaborator

Out of curiosity, do you want the same labels on both service monitors? Or would it be better to have the ability to set each individually? 🤔

Also noting that you'll need to write some docs for this too please!

This page will need updating: https://agones.dev/site/docs/installation/install-agones/helm/

See https://agones.dev/site/docs/contribute/documentation-editing-contribution/ for details on how to do documentation edits 👍🏻

@jessebot jessebot force-pushed the add-servicemonitor-labels branch from bb45806 to a440a5d Compare January 16, 2026 19:10
@jessebot
Copy link
Copy Markdown
Contributor Author

Also noting that you'll need to write some docs for this too please!
This page will need updating: https://agones.dev/site/docs/installation/install-agones/helm/

Updated!

Out of curiosity, do you want the same labels on both service monitors? Or would it be better to have the ability to set each individually? 🤔

I think it's useful to apply to both of the ServiceMonitors because that's how the .Values.agones.metrics.serviceMonitor.interval helm parameter works right now too:

https://github.com/googleforgames/agones/pull/4424/files#diff-73a9a910a82e9ab1e3a20e1b28c9815b94dfa3d3a0500e215002860b6eae6943L138

@jessebot jessebot force-pushed the add-servicemonitor-labels branch 4 times, most recently from 9d9254e to a21b367 Compare January 16, 2026 19:51
@jessebot
Copy link
Copy Markdown
Contributor Author

@markmandel could I please ask if you could review this when you have a moment?

@jessebot jessebot force-pushed the add-servicemonitor-labels branch from 3388197 to de36377 Compare January 21, 2026 10:20
@jessebot jessebot force-pushed the add-servicemonitor-labels branch 3 times, most recently from a087a63 to f3f3d0f Compare January 22, 2026 08:40
@jessebot jessebot requested a review from markmandel January 22, 2026 10:10
@jessebot jessebot force-pushed the add-servicemonitor-labels branch from f3f3d0f to 863a216 Compare January 22, 2026 10:12
@jessebot jessebot force-pushed the add-servicemonitor-labels branch from 863a216 to 26a72bf Compare January 23, 2026 07:26
@markmandel
Copy link
Copy Markdown
Collaborator

/gcbrun

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Succeeded 🥳

Build Id: bb9e8e05-bd73-441b-97ab-64c1f770b6e7

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

git fetch https://github.com/googleforgames/agones.git pull/4424/head:pr_4424 && git checkout pr_4424
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.56.0-dev-26a72bf

@markmandel markmandel enabled auto-merge (squash) January 27, 2026 04:15
@markmandel
Copy link
Copy Markdown
Collaborator

/gcbrun

@agones-bot
Copy link
Copy Markdown
Collaborator

Build Succeeded 🥳

Build Id: e2a0c589-5faa-4008-8ea0-c7ce926ed21d

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

git fetch https://github.com/googleforgames/agones.git pull/4424/head:pr_4424 && git checkout pr_4424
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.56.0-dev-3e788c2

@markmandel markmandel merged commit f3f0b2e into agones-dev:main Jan 27, 2026
5 checks passed
@jessebot jessebot deleted the add-servicemonitor-labels branch January 27, 2026 09:02
@jessebot
Copy link
Copy Markdown
Contributor Author

Thanks for your help, @markmandel ! 🚀

mnthe pushed a commit to mnthe/agones that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature New features for Agones size/S size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Proposal] - helm chart update to make the release label for the ServiceMonitor configurable

3 participants