Skip to content

Conversation

@kaiyan-sheng
Copy link
Contributor

@kaiyan-sheng kaiyan-sheng commented Jan 7, 2026

Proposed commit message

This PR fixes visualizations that incorrectly used median on counter metrics, which produces meaningless results and triggers Kibana warnings. Replaced with appropriate operations for counter metrics.

Problem

Warnings about meaningless median operations on gcp.gke.node.network.received_bytes.count, gcp.gke.node.network.sent_bytes.count, gcp.gke.container.restart.count, and CPU usage counter metrics
Some visualizations showing empty data due to incorrect aggregations

Solution

For Time Series (Counter Metrics):

  • Changed: median → differences operation (with max reference)
  • Calculates the rate of change between consecutive time buckets

For Single-Value/Aggregations (Counter Metrics):

  • Changed: median → last_value operation
  • Shows the most recent cumulative count

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Screenshots

Before:
Screenshot 2026-01-07 at 4 55 00 PM

After:
Metrics GCP  GKE Overview (1)

@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@andrewkroh andrewkroh added dashboard Relates to a Kibana dashboard bug, enhancement, or modification. Integration:gcp Google Cloud Platform labels Jan 8, 2026
@elasticmachine
Copy link

💚 Build Succeeded

History

@kaiyan-sheng kaiyan-sheng self-assigned this Jan 9, 2026
field: gcp.metrics.node.network.received_bytes.count
target_field: gcp.gke.node.network.received_bytes.count
field: gcp.metrics.node.network.received.bytes
target_field: gcp.gke.node.network.received.bytes
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kaiyan-sheng kaiyan-sheng marked this pull request as ready for review January 9, 2026 06:40
@kaiyan-sheng kaiyan-sheng requested review from a team as code owners January 9, 2026 06:40
@andrewkroh andrewkroh added documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Team:obs-ds-hosted-services Observability Hosted Services team [elastic/obs-ds-hosted-services] labels Jan 9, 2026
@kaiyan-sheng kaiyan-sheng merged commit 61c8b12 into main Jan 9, 2026
8 checks passed
@kaiyan-sheng kaiyan-sheng deleted the gcp_gke_dashboard branch January 9, 2026 15:21
@elastic-vault-github-plugin-prod

Package gcp - 2.47.1 containing this change is available at https://epr.elastic.co/package/gcp/2.47.1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Relates to a Kibana dashboard bug, enhancement, or modification. documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:gcp Google Cloud Platform Team:obs-ds-hosted-services Observability Hosted Services team [elastic/obs-ds-hosted-services]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants