dynatrace-cadvisor
The cAdvisor Extension enables [Dynatrace[(https://www.dynatrace.com)] to consume cAdvisor container metrics that are getting published by the kublet node agents of a Kubernetes Cluster.
Quick Start
Prerequisite for this Extension is the installation of the automated Dynatrace Operator.
The Dynatrace Operator contributes the Service Account dynatrace-kubernetes-monitoring
within the namespace dynatrace
.
Installation
kubectl apply -f https://github.com/dtcookie/dynatrace-cadvisor/releases/latest/download/dynatrace-cadvisor.yaml
This configures a DaemonSet within your Kubernetes Cluster. It utilizes the prebuilt Docker Image dtcookie/dynatrace-cadvisor.
The DaemonSet ensures that a pod is getting scheduled to run on every node the Kubernetes Cluster consists of. These pods are now offering the cAdvisor metrics by acting as Prometheus Exporters. In addition to that the pods are properly annotated in order for Dynatrace to scrape these metrics automatically.
It will take a minute or two until these metrics are available within the Dynatrace WebUI.
They are also available for charting via Data Explorer and can get split and filtered by dimensions published by cAdvisor aswell as by dimensions discovered by Dynatrace.
Configuration
By default dynatrace-cadvisor.yaml restricts the collected metrics to those prefixed with container_
(which covers almost all metrics offered by cAdvisor).
metrics.dynatrace.com/filter: |
{
"mode" : "include",
"names" : [
"container_*"
]
}
Please check out the Dynatrace Documentation in case you would like adjust which metrics should get filtered.
Uninstall dynatrace-cadvisor
kubectl delete -f https://github.com/dtcookie/dynatrace-cadvisor/releases/latest/download/dynatrace-cadvisor.yaml
Limitations
- This integration supports up to 200 metric data points each per minute.
- This integration supports only the counter and gauge Prometheus metric types.
Monitoring consumption
Prometheus metrics in Kubernetes environments are subject to DDU consumption. Metrics are first deducted from your quota of included metrics per host unit. Once this quota is exceeded, the remaining metrics consume DDUs.
License
dynatrace-cadvisor
is an Open Source Project. Please see LICENSE for more information.