Agent v6: kube-dns metrics are constantly increasing despite constant traffic #1303
Description
I recently deployed v6.1.0 of the datadog agent to one of my Kubernetes clusters. I added the annotations to my instances of kube-dns so that the agent would collect information from them. I've let that run for the better part of two days.
When I look at the metrics for kubedns.request_count
, it appears that the number of DNS requests has been increasing steadily over the past 2 days. When I know for a fact the traffic and activity on the cluster has been steady. (It's the weekend, so not much is going on.)
I know that kube-dns exports its metrics in the prometheus format, so that counter metrics are always increasing. (See metrics formats.) But it's supposed to be the job of the scraper to take the difference between the values at T(n)
and T(n-1)
to calculate the count of events in that interval.
My assumption is that the prometheus scraper in datadog is supposed to do that subtraction. So I'd expect the graph above to be a flat line with a slope of 0, rather than a steadily increasing line.
Datadog Agent Version: 6.1.0
KubeDNS based on: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5
Kubernetes cluster version: 1.5.7 (though I don't think that should affect the prometheus scraping)