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

Export Prometheus metrics for ResourceSet APIs #199

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

stefanprodan
Copy link
Member

This PR implements Prometheus instrumentation for the ResourceSet controllers.

ResourceSet Metrics

Metrics:

flux_resourceset_info{uid, kind, name, exported_namespace, ready, suspended, revision}

Labels:

  • uid: The Kubernetes unique identifier of the resource.
  • kind: The kind of the resource (e.g. ResourceSet).
  • name: The name of the resource (e.g. podinfo).
  • exported_namespace: The namespace where the resource is deployed (e.g. apps).
  • ready: The readiness status of the resource (e.g. True, False or Unkown).
  • reason: The reason for the readiness status (e.g. ReconciliationSucceeded, BuildFailed, HealthCheckFailed, etc.).
  • suspended: The suspended status of the resource (e.g. True or False).
  • revision: The revision last applied on the cluster (e.g. sha256:75aa209c6a...).

ResourceSetInputProvider Metrics

Metrics:

flux_resourcesetinputprovider_info{uid, kind, name, exported_namespace, ready, suspended, url}

Labels:

  • uid: The Kubernetes unique identifier of the resource.
  • kind: The kind of the resource (e.g. ResourceSetInputProvider).
  • name: The name of the resource (e.g. podinfo-prs).
  • exported_namespace: The namespace where the resource is deployed (e.g. podinfo-review).
  • ready: The readiness status of the resource (e.g. True, False or Unkown).
  • reason: The reason for the readiness status (e.g. ReconciliationSucceeded or ReconciliationFailed).
  • suspended: The suspended status of the resource (e.g. True or False).
  • url: The provider address (e.g. https://github.com/stefanprodan/podinfo).

@stefanprodan stefanprodan added area/observability Reporting, metrics, logs and events related issues and pull requests area/resourceset ResourceSet related issues and PRs labels Feb 28, 2025
@stefanprodan stefanprodan merged commit 99765bf into main Feb 28, 2025
1 check passed
@stefanprodan stefanprodan deleted the resourceset-metrics branch February 28, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/observability Reporting, metrics, logs and events related issues and pull requests area/resourceset ResourceSet related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants