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

[metrics] Sanitize route label with only the path #5859

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

laushinka
Copy link
Contributor

@laushinka laushinka commented Sep 24, 2021

Fixes #5825

Description

Our Prometheus route label was high in cardinality (e.g. /apps/bitbucket/callback?xxxxxx) and therefore needs to be sanitized for better observability.

Related Issue(s)

Fixes #5828

How to test

Will try @ArthurSens's cool monitoringSatellite.
Go to here and go through the route label. You can also hit some endpoints in the preview env to trigger more metrics.

Release Notes

NONE

/werft run with-observability withObservabilityBranch=laushinka-http-metrics-5825

@laushinka
Copy link
Contributor Author

laushinka commented Sep 24, 2021

/werft run

👍 started the job as gitpod-build-laushinka-http-metrics-5825.3

@laushinka
Copy link
Contributor Author

laushinka commented Sep 24, 2021

/werft run

👍 started the job as gitpod-build-laushinka-http-metrics-5825.5

@laushinka laushinka force-pushed the laushinka/http-metrics-5825 branch from 10bf282 to d84b50f Compare September 24, 2021 13:31
@laushinka laushinka marked this pull request as ready for review September 27, 2021 06:59
@laushinka laushinka removed the request for review from JanKoehnlein September 27, 2021 07:14
@laushinka
Copy link
Contributor Author

laushinka commented Sep 27, 2021

/werft run

👍 started the job as gitpod-build-laushinka-http-metrics-5825.7

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Code looks good

@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 3e300f791257786e862917166e459a3d4eb09e0d

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: geropl

Associated issue: #5825

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit eed3783 into main Sep 28, 2021
@roboquat roboquat deleted the laushinka/http-metrics-5825 branch September 28, 2021 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix HTTP metrics in "server" dashboard
3 participants