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

[prometheus] Apply templating to remote_read & remote_write config #3777

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

garryod
Copy link
Contributor

@garryod garryod commented Sep 11, 2023

What this PR does / why we need it

Adds template evaluation (via the tpl function) to the remoteRead & remoteWrite fields in the ConfigMap. This allows users of the chart to substitute values at templating time. This is especially useful if the services which a user wishes to write to are deployed as part of an adjacent sub-chart where their name includes the deployment name.

Special notes for your reviewer

N/A

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Copy link
Contributor

@zanhsieh zanhsieh left a comment

Choose a reason for hiding this comment

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

@garryod
Thanks for the contribution. Since you bump to the major version, can you put some note that the users should know, such as upgrading, what are compatible, what are not compatible, or some reference links in README.md please?

@garryod
Copy link
Contributor Author

garryod commented Sep 14, 2023

@garryod Thanks for the contribution. Since you bump to the major version, can you put some note that the users should know, such as upgrading, what are compatible, what are not compatible, or some reference links in README.md please?

Ah yes, will do!

charts/prometheus/templates/cm.yaml Outdated Show resolved Hide resolved
@zeritti zeritti changed the title [Prometheus] Apply templating to remote_read & remote_write config [prometheus] Apply templating to remote_read & remote_write config Sep 16, 2023
@garryod garryod requested review from zeritti and zanhsieh September 18, 2023 16:30
charts/prometheus/Chart.yaml Show resolved Hide resolved
charts/prometheus/templates/cm.yaml Outdated Show resolved Hide resolved
charts/prometheus/templates/cm.yaml Outdated Show resolved Hide resolved
charts/prometheus/README.md Show resolved Hide resolved
garryod and others added 4 commits September 18, 2023 20:15
Signed-off-by: Garry O'Donnell <garry.o'[email protected]>
Signed-off-by: Garry O'Donnell <[email protected]>
Signed-off-by: Garry O'Donnell <garry.o'[email protected]>
Signed-off-by: Garry O'Donnell <[email protected]>
Co-authored-by: zeritti <[email protected]>
Signed-off-by: Garry O'Donnell <[email protected]>
Copy link
Member

@zeritti zeritti left a comment

Choose a reason for hiding this comment

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

LGTM

@zanhsieh zanhsieh merged commit b8b561e into prometheus-community:main Sep 19, 2023
4 checks passed
Matiasmct pushed a commit to giffgaff/prometheus-charts-backup that referenced this pull request Mar 20, 2024
…rometheus-community#3777)

* Apply templating to remote_read & remote_write config

Signed-off-by: Garry O'Donnell <garry.o'[email protected]>

* Add migration instructions for prometheus 25.0

Signed-off-by: Garry O'Donnell <garry.o'[email protected]>
Signed-off-by: Garry O'Donnell <[email protected]>

* Only template URLs

Signed-off-by: Garry O'Donnell <garry.o'[email protected]>
Signed-off-by: Garry O'Donnell <[email protected]>

* Fix whitespace

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Garry O'Donnell <[email protected]>

---------

Signed-off-by: Garry O'Donnell <garry.o'[email protected]>
Signed-off-by: Garry O'Donnell <[email protected]>
Co-authored-by: zeritti <[email protected]>
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.

3 participants