Skip to content

feat: add metrics — fix cardinality bug, add outcome/adoption tracking#503

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:metrics
Jul 14, 2026
Merged

feat: add metrics — fix cardinality bug, add outcome/adoption tracking#503
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:metrics

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

Metrics (all projectsveltos_-prefixed):

  • reconcile_duration_seconds (histogram): cluster_type, cluster_namespace, cluster_name. No feature label (unlike addon-controller's metric of the same name) — EventTrigger processing isn't split by feature type.
  • reconcile_outcome_total (counter): cluster_type, cluster_namespace, cluster_name, status, event_trigger_name.
  • matching_clusters (gauge): event_trigger_name. New — clusters currently matching an EventTrigger's sourceClusterSelector.
  • matching_resources (gauge): event_trigger_name, cluster_type, cluster_namespace, cluster_name. Resources matched by the most recently processed EventReport, independent of whether ClusterProfile creation subsequently succeeds.
  • reconcile_last_success_timestamp_seconds (gauge): cluster_type, cluster_namespace, cluster_name, event_trigger_name. New.

Also:

  • Fix metric name prefix
  • Enable auth-proxy RBAC resources in config/rbac/kustomization.yaml; regenerate manifest.yaml.
  • Add manifest/service_monitor.yaml

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Metrics (all projectsveltos_-prefixed):
- **reconcile_duration_seconds** (histogram): cluster_type, cluster_namespace,
  cluster_name. No feature label (unlike addon-controller's metric of the
  same name) — EventTrigger processing isn't split by feature type.
- **reconcile_outcome_total** (counter): cluster_type, cluster_namespace,
  cluster_name, status, event_trigger_name.
- **matching_clusters** (gauge): event_trigger_name. New — clusters currently
  matching an EventTrigger's sourceClusterSelector.
- **matching_resources** (gauge): event_trigger_name, cluster_type,
  cluster_namespace, cluster_name. Resources matched by the most
  recently processed EventReport, independent of whether ClusterProfile
  creation subsequently succeeds.
- **reconcile_last_success_timestamp_seconds** (gauge): cluster_type,
  cluster_namespace, cluster_name, event_trigger_name. New.

Also:
- Fix metric name prefix
- Enable auth-proxy RBAC resources in config/rbac/kustomization.yaml;
  regenerate manifest.yaml.
- Add manifest/service_monitor.yaml
@gianlucam76
gianlucam76 merged commit 72e319b into projectsveltos:main Jul 14, 2026
9 checks passed
@gianlucam76
gianlucam76 deleted the metrics branch July 14, 2026 09:02
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.

2 participants