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

Allow to customize the metrics port of the ServiceMonitor #228

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

philippeckelintive
Copy link
Contributor

Fixes #221

Description of the change

Allow to customize the metrics port of the ServiceMonitor, i.e. when using OpenTelemetry.

Existing or Associated Issue(s)

Additional Information

Currently, the metrics port in the ServiceMonitor is set to the http-backend port. When using OpenTelemetry as recommended with Prometheus exporter, this port needs to be different.

OpenTelemetry's default port for Prometheus exporter is 9464, but it can be customized.

So the chart should allow setting a custom port for the ServiceMonitor. The default value remains http-backend.

Checklist

  • Chart version bumped in Chart.yaml according to semver.
  • Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
  • JSON Schema generated.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

Copy link
Member

@tumido tumido left a comment

Choose a reason for hiding this comment

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

Just 2 minor suggestions, otherwise I like the change. 👍

charts/backstage/templates/servicemonitor.yaml Outdated Show resolved Hide resolved
charts/backstage/Chart.yaml Outdated Show resolved Hide resolved
fixes backstage#221

Signed-off-by: Philipp Eckel <philipp.eckel@intive.com>
@philippeckelintive
Copy link
Contributor Author

@tumido thanks for the feedback. Please have a look again.

Copy link
Member

@tumido tumido left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@tumido tumido merged commit 3c11e5b into backstage:main Oct 31, 2024
3 checks passed
@nicolasfagotti
Copy link

Hey! Thanks about these changes. However, doesn't the OpenTelemetry port need to be exposed in https://github.com/backstage/charts/blob/main/charts/backstage/templates/backstage-deployment.yaml#L157-L160 ?

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.

Support for OpenTelemetry
3 participants