Skip to content

Commit

Permalink
[Azure][container_service] Add missing azure dimensions to the kube_p…
Browse files Browse the repository at this point in the history
…od_status_phase and kube_pod_status_ready metrics (#7245)

* Add missing azure dimensions to the kube_pod_status_phase and kube_pod_status_ready metrics

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* fix pr url

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
  • Loading branch information
tetianakravchenko committed Aug 4, 2023
1 parent 196e624 commit 29dd721
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 7 deletions.
5 changes: 5 additions & 0 deletions packages/azure_metrics/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "1.0.18"
changes:
- description: Add missing azure dimensions to the kube_pod_status_phase and kube_pod_status_ready metrics
type: enhancement
link: https://github.com/elastic/integrations/pull/7245
- version: "1.0.17"
changes:
- description: Add dimension and metric_type metadata to the container_instance datastream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,28 @@ resources:
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
- name: ["kube_pod_status_ready", "kube_pod_status_phase"]
- name: ["kube_pod_status_ready"]
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
dimensions:
- name: "pod"
value: "*"
value: "*"
- name: "namespace"
value: "*"
- name: "condition"
value: "*"
- name: ["kube_pod_status_phase"]
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
dimensions:
- name: "pod"
value: "*"
- name: "namespace"
value: "*"
- name: "phase"
value: "*"
{{/each}}
{{/if}}
{{#if resource_ids}}
Expand All @@ -71,13 +86,28 @@ resources:
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
- name: ["kube_pod_status_ready", "kube_pod_status_phase"]
- name: ["kube_pod_status_ready"]
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
dimensions:
- name: "pod"
value: "*"
- name: "namespace"
value: "*"
- name: "condition"
value: "*"
- name: ["kube_pod_status_phase"]
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
dimensions:
- name: "pod"
value: "*"
- name: "namespace"
value: "*"
- name: "phase"
value: "*"
{{/each}}
{{/if}}

Expand Down Expand Up @@ -105,12 +135,27 @@ resources:
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
- name: ["kube_pod_status_ready", "kube_pod_status_phase"]
- name: ["kube_pod_status_ready"]
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
dimensions:
- name: "pod"
value: "*"
value: "*"
- name: "namespace"
value: "*"
- name: "condition"
value: "*"
- name: ["kube_pod_status_phase"]
namespace: "Microsoft.ContainerService/managedClusters"
ignore_unsupported: true
timegrain: "PT5M"
dimensions:
- name: "pod"
value: "*"
- name: "namespace"
value: "*"
- name: "phase"
value: "*"
{{/unless}}
{{/unless}}
{{/unless}}
2 changes: 1 addition & 1 deletion packages/azure_metrics/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: azure_metrics
title: Azure Resource Metrics
version: 1.0.17
version: 1.0.18
release: ga
description: Collect metrics from Azure resources with Elastic Agent.
type: integration
Expand Down

0 comments on commit 29dd721

Please sign in to comment.