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

Add optional prometheus feature #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

8R0WNI3
Copy link
Member

@8R0WNI3 8R0WNI3 commented Oct 18, 2024

What this PR does / why we need it:

  • adds external prometheus resource to component descriptor
  • enables optional prometheus feature by passing --prometheus argument
  • if the feature is enabled, it will expose an additional /metrics endpoint which can be scraped by Prometheus
  • Prometheus endpoint will be available under <delivery-service-url>/prometheus
  • by now, 3 metrics are going to be monitored:
    -> request_latency_seconds
    -> requests_in_progress_total
    -> requests_total

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:


@8R0WNI3 8R0WNI3 requested a review from a team as a code owner October 18, 2024 08:56
@ocm-ci-robot-0 ocm-ci-robot-0 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Oct 18, 2024
@ocm-ci-robot-0 ocm-ci-robot-0 added needs/ok-to-test and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 18, 2024
@ocm-ci-robot-0 ocm-ci-robot-0 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 18, 2024
- adds external `prometheus` resource to component descriptor
- enables optional `prometheus` feature by passing `--prometheus` argument
- if the feature is enabled, it will expose an additional `/metrics`
  endpoint which can be scraped by Prometheus
- Prometheus endpoint will be available under
  `<delivery-service-url>/prometheus`
- by now, 3 metrics are going to be monitored:
  -> `request_latency_seconds`
  -> `requests_in_progress_total`
  -> `requests_total`
@ocm-ci-robot-0 ocm-ci-robot-0 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 18, 2024
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.

3 participants