K8S CoreDNS 10,14010,140
5/29/2020
5/29/2020
1
>=7.0.1
PrometheusPrometheus
This dashboard shows an overview of coredns service running inside your Kubernetes Cluster.
We use the following prometheus scrap config for all service-endpoints, and it also works for core-dns.
- job_name: 'kubernetes-service-endpoints'
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scrape]
action: keep
regex: true
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
action: replace
target_label: __scheme__
regex: (https?)
- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [__address__, __meta_kubernetes_service_annotation_prometheus_io_port]
action: replace
target_label: __address__
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: kubernetes_namespace
- source_labels: [__meta_kubernetes_service_name]
action: replace
target_label: kubernetes_name
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: pod
Get Dashboard✕
Download
Copy to Clipboard
Used Metrics 1111
coredns_dns_request_duration_seconds_bucket
coredns_dns_request_count_total
coredns_cache_size
kube_pod_container_status_running
coredns_cache_hits_total
coredns_cache_misses_total
coredns_dns_request_type_count_total
coredns_dns_response_rcode_count_total
coredns_dns_request_do_count_total
coredns_dns_request_size_bytes_bucket
coredns_dns_response_size_bytes_bucket