Skip to content

Conversation

@musa-asad
Copy link
Contributor

Description of the issue

K8s 1.34 introduced breaking changes to control plane metrics by splitting labels into group and resource components and renaming apiserver_storage_objects to apiserver_resource_objects. This breaks existing CloudWatch dashboards and alerts.

Description of changes

  • Implements applyK8s134Compatibility function in Prometheus input plugin
  • Renames apiserver_resource_objects metric to apiserver_storage_objects
  • Combines resource and group labels into legacy label formats
  • Transforms K8s 1.34+ control plane metrics back to pre-1.34 format for backward compatibility

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Unit tests.

Requirements

Before commiting your code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

Integration Tests

To run integration tests against this PR, add the ready for testing label.

@musa-asad musa-asad self-assigned this Aug 25, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2025

This PR was marked stale due to lack of activity.

@github-actions github-actions bot added the Stale label Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant