-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
87 additions
and
156 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
ad_identifiers: | ||
- coredns/coredns | ||
- coredns | ||
|
||
init_config: | ||
|
||
instances: | ||
# To enable CoreDNS metrics you must specify the prometheus url and enable the plugin within coredns | ||
# See: https://coredns.io/plugins/metrics/ | ||
## @param prometheus_url - string - required | ||
## To enable CoreDNS metrics you must specify the prometheus url | ||
## and enable the plugin within coredns | ||
## See: https://coredns.io/plugins/metrics/ | ||
# | ||
- prometheus_url: "http://%%host%%:9153/metrics" | ||
tags: | ||
- "dns-pod:%%host%%" | ||
|
||
# To send the histograms bucket | ||
send_histograms_buckets: True | ||
## @param send_histogram_buckets - boolean - optional - default:True | ||
# | ||
# send_histograms_buckets: True | ||
|
||
# To send counters as monotonic counter | ||
send_monotonic_counter: True | ||
## @param send_monotonic_counter - boolean - optional - default:True | ||
## To send counters as monotonic counter | ||
## see: https://github.com/DataDog/integrations-core/issues/1303 | ||
# | ||
# send_monotonic_counter: True | ||
|
||
metrics: | ||
# metrics are being emitted from the below plugins | ||
# to map metrics from other plugins use the format below | ||
# https://coredns.io/plugins/metrics/ | ||
# https://coredns.io/plugins/proxy/ | ||
# https://coredns.io/plugins/cache/ | ||
- coredns_dns_response_size_bytes: response_size.bytes | ||
- coredns_cache_hits_total: cache_hits_count | ||
- coredns_cache_misses_total: cache_misses_count | ||
- coredns_dns_request_count_total: request_count | ||
- coredns_dns_request_duration_seconds: request_duration.seconds | ||
- coredns_dns_request_size_bytes: request_size.bytes | ||
- coredns_dns_request_type_count_total: request_type_count | ||
- coredns_dns_response_rcode_count_total: response_code_count | ||
- coredns_proxy_request_count_total: proxy_request_count | ||
- coredns_proxy_request_duration_seconds: proxy_request_duration.seconds | ||
- coredns_cache_size: cache_size.count | ||
|
||
## Metrics from the CoreDNS plugins for 'metrics', 'proxy' and 'cache' | ||
## are enabled by default, however in order to scrape metrics for optional | ||
## plugins, enable the plugin in the CoreDNS corefile and then add the metric below. | ||
## As an example, the 'template' plugin's metrics are below | ||
# | ||
# metrics: | ||
# - coredns_template_matches_total: template_matches_count | ||
# - coredns_template_template_failures_total: template_templating_failures_count | ||
# - coredns_template_rr_failures_total: template_resource_record_failures_count |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
init_config: | ||
# Leave empty | ||
|
||
instances: | ||
# To enable CoreDNS metrics you must specify the prometheus url and enable the plugin within coredns | ||
# See: https://coredns.io/plugins/metrics/ | ||
- prometheus_url: "http://%%host%%:9153/metrics" | ||
tags: | ||
- "dns-pod:%%host%%" | ||
## @param prometheus_url - string - required | ||
## To enable CoreDNS metrics you must specify the prometheus url | ||
## and enable the plugin within coredns | ||
## See: https://coredns.io/plugins/metrics/ | ||
# | ||
# - prometheus_url: "http://%%host%%:9153/metrics" | ||
# tags: | ||
# - "dns-pod:%%host%%" | ||
|
||
# To send the histograms bucket | ||
## @param send_histogram_buckets - boolean - optional - default:True | ||
# | ||
# send_histograms_buckets: True | ||
|
||
# To send counters as monotonic counter | ||
## @param send_monotonic_counter - boolean - optional - default:True | ||
## To send counters as monotonic counter | ||
## see: https://github.com/DataDog/integrations-core/issues/1303 | ||
# | ||
# send_monotonic_counter: True | ||
|
||
metrics: | ||
# metrics are being emitted from the below plugins | ||
# to map metrics from other plugins use the format below | ||
# https://coredns.io/plugins/metrics/ | ||
# https://coredns.io/plugins/proxy/ | ||
# https://coredns.io/plugins/cache/ | ||
- coredns_dns_response_size_bytes: response_size.bytes | ||
- coredns_cache_hits_total: cache_hits_count | ||
- coredns_cache_misses_total: cache_misses_count | ||
- coredns_dns_request_count_total: request_count | ||
- coredns_dns_request_duration_seconds: request_duration.seconds | ||
- coredns_dns_request_size_bytes: request_size.bytes | ||
- coredns_dns_request_type_count_total: request_type_count | ||
- coredns_dns_response_rcode_count_total: response_code_count | ||
- coredns_proxy_request_count_total: proxy_request_count | ||
- coredns_proxy_request_duration_seconds: proxy_request_duration.seconds | ||
- coredns_cache_size: cache_size.count | ||
|
||
## Metrics from the CoreDNS plugins for 'metrics', 'proxy' and 'cache' | ||
## are enabled by default, however in order to scrape metrics for optional | ||
## plugins, enable the plugin in the CoreDNS corefile and then add the metric below. | ||
## As an example, the 'template' plugin's metrics are below | ||
# | ||
# metrics: | ||
# - coredns_template_matches_total: template_matches_count | ||
# - coredns_template_template_failures_total: template_templating_failures_count | ||
# - coredns_template_rr_failures_total: template_resource_record_failures_count |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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