...
To enable metrics metadata to be collected from a Kubernetes deployment or sts, pod (as shown in an example here) follow these steps (Note that this can be done in helm as well for each of the deployment/sts):
Code Block |
---|
apiVersion: v1 kind: Pod # (...) metadata: name: '<POD_NAME>' annotations: ad.datadoghq.com/orders<CONTAINER_IDENTIFIER>.check_names: '["kf_openmetrics"]' ad.datadoghq.com/orders<CONTAINER_IDENTIFIER>.init_configs: '[{}]' ad.datadoghq.com/orders<CONTAINER_IDENTIFIER>.instances: '[ { "openmetrics_endpoint": "<http://%%host%%:%%port%%/metrics>"} ]' # (...) spec: containers: - name: '<CONTAINER_IDENTIFIER>' # (...) |
Advance monitoring: Enable kubernetes_state_metrics
...