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-pushgateway] allow overriding service port name #4583

Merged

Conversation

nickaein
Copy link
Contributor

@nickaein nickaein commented Jun 3, 2024

What this PR does / why we need it

This PR introduces the ability to customize the hard-coded port name http for the pushgateway service. This enhancement is necessary for environments where a Prometheus ServiceMonitor already exists on Kubernetes to scrape metrics from the services, using port name different than http (e.g. metrics).

Which issue this PR fixes

None

Special notes for your reviewer

Checklist

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

@nickaein nickaein changed the title allow overriding service port name [prometheus-pushgateway] allow overriding service port name Jun 3, 2024
Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>
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.

Thank you, @nickaein, for your PR. Please, see my comments below.

charts/prometheus-pushgateway/Chart.yaml Outdated Show resolved Hide resolved
Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>
@nickaein
Copy link
Contributor Author

nickaein commented Jun 4, 2024

Thanks @zeritti. I wasn't sure whether I should bump the minor version. Counting it as a feature seems reasonable.

Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com>
@zeritti zeritti merged commit e4e1a6b into prometheus-community:main Jun 5, 2024
4 checks passed
@nickaein nickaein deleted the override-service-portname branch June 5, 2024 20:08
Maven35 pushed a commit to Maven35/helm-charts that referenced this pull request Jun 6, 2024
…us-community#4583)

* allow overriding service port name

Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>

* Update charts/prometheus-pushgateway/Chart.yaml

Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>

* Empty commit to invoke DCO check

Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com>

---------

Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>
Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com>
Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Maven35 pushed a commit to Maven35/helm-charts that referenced this pull request Jun 6, 2024
…us-community#4583)

* allow overriding service port name

Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>

* Update charts/prometheus-pushgateway/Chart.yaml

Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>

* Empty commit to invoke DCO check

Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com>

---------

Signed-off-by: Isaac Nickaein <nickaein.i@gmail.com>
Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com>
Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
Signed-off-by: Maven35 <Charles.Tony.Gibbs@gmail.com>
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.

None yet

2 participants