Skip to content

Commit

Permalink
feat: Golden metrics for OS k8s statefulset (#1484)
Browse files Browse the repository at this point in the history
* feat: Golden metrics for OS k8s statefulset

* fix: Update otel podsMissing golden metric as it cannot be handled as written

---------

Co-authored-by: Javi Imbernón <[email protected]>
  • Loading branch information
brettj-newrelic and javimb authored Mar 12, 2024
1 parent 0b88b72 commit c83c4c6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion entity-types/infra-kubernetes_statefulset/golden_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ podsDesired:
from: K8sStatefulsetSample
eventId: entityGuid
eventName: entityName
opentelemetry:
select: latest(kube_statefulset_replicas)
where: metricName = 'kube_statefulset_replicas'
from: Metric
eventId: entity.guid
eventName: entity.name
podsReady:
title: Pods ready over time
unit: COUNT
Expand All @@ -16,6 +22,12 @@ podsReady:
from: K8sStatefulsetSample
eventId: entityGuid
eventName: entityName
opentelemetry:
select: latest(kube_statefulset_status_replicas_ready)
where: metricName = 'kube_statefulset_status_replicas_ready'
from: Metric
eventId: entity.guid
eventName: entity.name
podsMissing:
title: Pods missing over time
unit: COUNT
Expand All @@ -25,4 +37,8 @@ podsMissing:
from: K8sStatefulsetSample
eventId: entityGuid
eventName: entityName

opentelemetry:
select: latest(kube_statefulset_replicas - kube_statefulset_status_replicas_ready)
from: Metric
eventId: entity.guid
eventName: entity.name

0 comments on commit c83c4c6

Please sign in to comment.