Last active
October 9, 2021 15:05
-
-
Save badouralix/0933316d16f21af88465580d029a6701 to your computer and use it in GitHub Desktop.
Datadog autodiscovery annotations for openmetrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: {{ $pod_name }} | |
labels: | |
service: {{ $service }} | |
annotations: | |
ad.datadoghq.com/{{ $container_name }}.check_names: '["openmetrics"]' | |
ad.datadoghq.com/{{ $container_name }}.init_configs: '[{}]' | |
ad.datadoghq.com/{{ $container_name }}.logs: | | |
[{ | |
"service": "{{ $service }}", | |
"source": "{{ $source }}", | |
"tags": ["key:value"] | |
}] | |
ad.datadoghq.com/{{ $container_name }}.instances: | | |
[{ | |
"prometheus_url": "http://%%host%%:9090/metrics", | |
"namespace": "{{ $source }}", | |
"metrics": ["*"], | |
"send_distribution_buckets": true, | |
"send_distribution_counts_as_monotonic": true, | |
"tags": ["key:value"] | |
}] | |
spec: | |
containers: | |
- name: {{ $container_name }} | |
image: {{ $image_name }}:{{ $image_tag }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment