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 configsync_sync_generation metric resource tag #763

Merged
merged 1 commit into from
Jul 27, 2023

Commits on Jul 27, 2023

  1. Add configsync_sync_generation metric resource tag

    - Add configsync.gke.io/sync-generation reconciler deployment/pod label,
      populated by the reconciler-manager
    - Add CONFIGSYNC_SYNC_GENERATION env var on the otel-agent container,
      populated by the k8s downward API from the pod label
    - Add configsync.sync.generation metric resource label on the otel-agent
      config, populated from the env var. This resource label is then
      converted to a metric label for Prometheus, but not Monarch or
      Cloud Monitoring, which ignore custom resource labels.
    - Change the e2e tests to use the sync metric labels, instead of the
      pod name. This allows the metrics validation to tolerate pod
      replacement due to rescheduling, oomkill, or autoscaling
    karlkfi committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ace45fc View commit details
    Browse the repository at this point in the history