Skip to content

Commit

Permalink
Merge pull request #46 from ctriegg-mak/deployment_kube_state_metrics
Browse files Browse the repository at this point in the history
feat(cloudwatch-agent-prometheus): add deployment metrics from kube-state-metrics
  • Loading branch information
mrdntgrn authored Nov 30, 2022
2 parents 5f8ed37 + 6a53ede commit dcb2244
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cloudwatch-agent-prometheus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
17 changes: 17 additions & 0 deletions charts/cloudwatch-agent-prometheus/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,23 @@ data:
"metric_selectors": [
"^jvm_memory_pool_bytes_used$"
]
},
{
"source_labels": ["Service"],
"label_matcher": "^kube-state-metrics$",
"dimensions": [["ClusterName","namespace","deployment"]],
"metric_selectors": [
"^kube_deployment_spec_replicas$",
"^kube_deployment_status_replicas_available$"
]
},
{
"source_labels": ["Service"],
"label_matcher": "^kube-state-metrics$",
"dimensions": [["ClusterName","namespace","deployment", "condition"]],
"metric_selectors": [
"^kube_deployment_status_condition$"
]
}
]
}
Expand Down

0 comments on commit dcb2244

Please sign in to comment.