From 3ab5f701389c0d5990cddf28aa20c7378ecf7e7d Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Wed, 10 Apr 2019 08:42:43 +0200 Subject: [PATCH 01/11] add CoreDNS metrics and adapt some existing names --- metricbeat/module/coredns/stats/stats.go | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/metricbeat/module/coredns/stats/stats.go b/metricbeat/module/coredns/stats/stats.go index d688e10021d..233501095ef 100644 --- a/metricbeat/module/coredns/stats/stats.go +++ b/metricbeat/module/coredns/stats/stats.go @@ -24,16 +24,27 @@ import ( var mapping = &prometheus.MetricsMapping{ Metrics: map[string]prometheus.MetricMap{ - "coredns_panic_count_total": prometheus.Metric("panic.count.total"), - "coredns_dns_request_count_total": prometheus.Metric("dns.request.count.total"), + + // base CoreDNS metrics + "coredns_panic_count_total": prometheus.Metric("panic.count"), + "coredns_dns_request_count_total": prometheus.Metric("dns.request.count"), "coredns_dns_request_duration_seconds": prometheus.Metric( "dns.request.duration.ns", prometheus.OpMultiplyBuckets(1000000000)), "coredns_dns_request_size_bytes": prometheus.Metric("dns.request.size.bytes"), - "coredns_dns_request_do_count_total": prometheus.Metric("dns.request.do.count.total"), - "coredns_dns_request_type_count_total": prometheus.Metric("dns.request.type.count.total"), + "coredns_dns_request_do_count_total": prometheus.Metric("dns.request.do.count"), + "coredns_dns_request_type_count_total": prometheus.Metric("dns.request.type.count"), "coredns_dns_response_size_bytes": prometheus.Metric("dns.response.size.bytes"), - "coredns_dns_response_rcode_count_total": prometheus.Metric("dns.response.rcode.count.total"), + "coredns_dns_response_rcode_count_total": prometheus.Metric("dns.response.rcode.count"), + + // cache plugin metrics (might not be present if cache plugin is not configured) + "coredns_cache_hits_total": prometheus.Metric("dns.cache.hits.count"), + "coredns_cache_misses_total": prometheus.Metric("dns.cache.misses.count"), + + // go runtime + "go_memstats_alloc_bytes": prometheus.Metric("runtime.memory.alloc.bytes"), + "go_threads": prometheus.Metric("runtime.process.threads.count"), + "go_goroutines": prometheus.Metric("runtime.process.go.routines.count"), }, Labels: map[string]prometheus.LabelMap{ From 935ef965c9a3e32c6bd632c962032af3bd08b5b7 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Wed, 10 Apr 2019 09:20:25 +0200 Subject: [PATCH 02/11] add new fields to fields.yml --- .../module/coredns/stats/_meta/fields.yml | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/metricbeat/module/coredns/stats/_meta/fields.yml b/metricbeat/module/coredns/stats/_meta/fields.yml index fd9bb260b1f..b4d4eb396b9 100644 --- a/metricbeat/module/coredns/stats/_meta/fields.yml +++ b/metricbeat/module/coredns/stats/_meta/fields.yml @@ -4,11 +4,11 @@ Contains statistics related to the coreDNS service release: beta fields: - - name: panic.count.total + - name: panic.count type: long description: > Total number of panics - - name: dns.request.count.total + - name: dns.request.count type: long description: > Total query count @@ -39,11 +39,11 @@ type: long description: > Request Size histogram count - - name: dns.request.do.count.total + - name: dns.request.do.count type: long description: > Number of queries that have the DO bit set - - name: dns.request.type.count.total + - name: dns.request.type.count type: long description: > Counter of queries per zone and type @@ -51,7 +51,7 @@ type: keyword description: > Holds the query type of the request - - name: dns.response.rcode.count.total + - name: dns.response.rcode.count type: long description: > Counter of responses per zone and rcode @@ -88,3 +88,27 @@ type: keyword description: > The transport of the response ("udp" or "tcp") + + + - name: dns.cache.hits.count + type: long + description: > + Cache hits count for the cache plugin + - name: dns.cache.misses.count + type: long + description: > + Cache misses count for the cache plugin + + + - name: runtime.memory.alloc.bytes + type: long + description: > + Memory allocated bytes + - name: runtime.process.threads.count + type: long + description: > + Running threads count + - name: runtime.process.go.routines.count + type: long + description: > + Running Go routines count From 62678b5bf8a08e742883a3bfcba89e9ed925abd9 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Wed, 10 Apr 2019 09:32:09 +0200 Subject: [PATCH 03/11] add generated docs --- metricbeat/docs/fields.asciidoc | 60 ++++++++++++++++++++++++++--- metricbeat/module/coredns/fields.go | 2 +- 2 files changed, 56 insertions(+), 6 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 22a78b69c98..b228468f565 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -2590,7 +2590,7 @@ Contains statistics related to the coreDNS service -*`coredns.stats.panic.count.total`*:: +*`coredns.stats.panic.count`*:: + -- type: long @@ -2600,7 +2600,7 @@ Total number of panics -- -*`coredns.stats.dns.request.count.total`*:: +*`coredns.stats.dns.request.count`*:: + -- type: long @@ -2672,7 +2672,7 @@ Request Size histogram count -- -*`coredns.stats.dns.request.do.count.total`*:: +*`coredns.stats.dns.request.do.count`*:: + -- type: long @@ -2682,7 +2682,7 @@ Number of queries that have the DO bit set -- -*`coredns.stats.dns.request.type.count.total`*:: +*`coredns.stats.dns.request.type.count`*:: + -- type: long @@ -2702,7 +2702,7 @@ Holds the query type of the request -- -*`coredns.stats.dns.response.rcode.count.total`*:: +*`coredns.stats.dns.response.rcode.count`*:: + -- type: long @@ -2790,6 +2790,56 @@ type: keyword The transport of the response ("udp" or "tcp") +-- + +*`coredns.stats.dns.cache.hits.count`*:: ++ +-- +type: long + +Cache hits count for the cache plugin + + +-- + +*`coredns.stats.dns.cache.misses.count`*:: ++ +-- +type: long + +Cache misses count for the cache plugin + + +-- + +*`coredns.stats.runtime.memory.alloc.bytes`*:: ++ +-- +type: long + +Memory allocated bytes + + +-- + +*`coredns.stats.runtime.process.threads.count`*:: ++ +-- +type: long + +Running threads count + + +-- + +*`coredns.stats.runtime.process.go.routines.count`*:: ++ +-- +type: long + +Running Go routines count + + -- [[exported-fields-couchbase]] diff --git a/metricbeat/module/coredns/fields.go b/metricbeat/module/coredns/fields.go index 33487332f15..764500fe3e9 100644 --- a/metricbeat/module/coredns/fields.go +++ b/metricbeat/module/coredns/fields.go @@ -32,5 +32,5 @@ func init() { // AssetCoredns returns asset data. // This is the base64 encoded gzipped contents of ../metricbeat/module/coredns. func AssetCoredns() string { - return "eJzElk9T2zwQxu/5FM/kRN4Bv9NOh0Nm2gscyqGUAe5FtjZExZaMdg0TPn1H/hOMY2ICzqDjSnr2p9XqsY9wR6s5EudJW54AYiSlOaZ1ZDoBNHHiTS7G2Tl+TAA06/HL6SKlCeApJcU0R0yiJsDCUKp5Xi4+glUZtZOEIauc5rj1rsjrSE+eMG7qfTdInBVlLINFiWExCUOWSvBInuBJaSy8y8pEp+dXtUIbpY0TRHgd7QPaAhXGSQ+Op1QJaYiDLKkhAZN/MAm1tncL1owubZs4V9YkUeIKK5E4UemLVc0JUmdvOxNbDlGO6yAGW2QxebhFlYh7GbTlyNN9QSz7I7kvyK9Qyg9C6MKrIBdZjuIiuSOJ/uulcfFfSqQzVQX/vJv3sqJAQ4GlYXG3XmWoYBjGwirrmBJn9XBR2+fhIntrYRfOZ0rma5D3nYPX+w/BRRZ6oQl86CCbV/mBHulhfW7dOvswHpsniuKV0Ge2zZV5os2W2YV9hxYZgHqFqZtggGfMm36F6I2+4PbhT+frRgseZaj+AC3VA5WGf/obsREwDQMGhn0g4iRovoTMyePJWYKyulTupduYaCjuaPXovN4N5KdLNZdFqew8SAWmEKlrsKVGnDvLFPnE6X1UqVWjJlenSmXmXsDNmZHqVAo/l6jC6kVYqMykq/EYrpcEpbUn5lq7wRCvLOfOCw6+4DvOLnBwdoEH8hy+dt9mh/haho9fxI9ns+G7/VQHxmWNsbsHb+KPacL9VNtdeJNoXBvuZ3rdh8PvLvlx27PSbJ6FiVMK/zyDbhLe87ggQTFoo2DSXYb/tz7b3Dtx49I8v8+Ob+BgWuh8CucxlSSfzib/AgAA///RG8xV" + return "eJzEl09P80YQxu/5FKOcoHpfV60qDpHaC0gtBygC7mWzO4m32DtmZxYUPn21/pME28SE7iv2FM3Gz/x2PPPY/g6PuFmAJo/G8QxArBS4gHkbmc8ADLL2thJLbgF/zACg+z9ckQkFzgA8FqgYF7BEUTOAlcXC8KL+83dwqsT9JHHJpsIFrD2Fqo2M5Inrob3uATQ5UdYxsCixLFYzSK4EXtAjeFQGVp7KOtHF9V2rsI+yjxNFeBsdAzoAFdf5CI7HQgkaEALJsSMBRv9sNe5d3i9Yt/q0+8SVclZnmoKTN/sde0Fu3ds4gF+vexJVgAvlEj3QqknBo9mN48zjU0CWH8HwFNBvYCg8lt4Er6Jc5jhbBv2Ikv00SkPLf1H3QZvgP5/mvW0ooKOA3LLQ2qsSGhgG68ApR4yanJku5/55OJQfLeyKfKlksQX53Dl4e/034FDGLugC/+sgSXtkhHXXtG32aTy2r5gtN4Jf2TZ39hWHLXMM+xEtMgH1DlM/wQRPyjv9DtEHfYHSdt31tsWiO1lsHze5esba3i/+hqUVYJxGiwxp4eA8qr3Fq9DDKzkE5UytPMo12OgoHnHzQt4cB/IXFYbrcjQWHqUiU4y0pz9QHa7IMWZek0lbn73qdFl69alzjqINdxJVqBbeFafBGkVYqdIWm3QM9zmCMsYjc6vdYYhXjivyAie/wO9weQMnlzfwjJ7js+2302/wax0+exM/Oz2dvqtf6rdw22Ic77hD/JSWO0512HOHRGlNd5zpfdeNL7To07Zno9mNhV0WGN9wJn0kznNakKgYtSEwmj7DzwfHtvIklJZmN58934CTeTDVHMjDXHQ13w3k8Af0OkornWOWW0nbSOdRFqJs0zvb4tX5oCrC2roJqNIyJ+7vBqsR/gjY4fr54MSWmJVYkt9kqihIN0OZCPeqFoZauP6aHIr3WSpPGpkzyeNncGJ3CM5Zt4ZW+4Ar9GnWlHkKYl1qv2qJ/iTo9Fuq/wIAAP//Fl2Kzg==" } From 36fd113203691a2ac2640e87cf2ecacd24308bc9 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Wed, 10 Apr 2019 12:07:34 +0200 Subject: [PATCH 04/11] set CoreDNS docker tag to 1.5.0, simplify conf --- metricbeat/module/coredns/_meta/Dockerfile | 2 +- metricbeat/module/coredns/_meta/config/Corefile | 5 ++++- metricbeat/module/coredns/_meta/config/mydomain.hosts | 4 ---- 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 metricbeat/module/coredns/_meta/config/mydomain.hosts diff --git a/metricbeat/module/coredns/_meta/Dockerfile b/metricbeat/module/coredns/_meta/Dockerfile index a585bb19748..4b613040024 100644 --- a/metricbeat/module/coredns/_meta/Dockerfile +++ b/metricbeat/module/coredns/_meta/Dockerfile @@ -1,5 +1,5 @@ # Start from coredns base Docker image -FROM coredns/coredns:latest +FROM coredns/coredns:1.5.0 # create an enhanced container with nc command available since coredns is based # on scratch image making healthcheck impossible diff --git a/metricbeat/module/coredns/_meta/config/Corefile b/metricbeat/module/coredns/_meta/config/Corefile index 8506e8ac589..e0ad3ad08e2 100644 --- a/metricbeat/module/coredns/_meta/config/Corefile +++ b/metricbeat/module/coredns/_meta/config/Corefile @@ -25,7 +25,10 @@ my.domain.elastic { # If you wish to use a standard Hosts File format, uncomment the following # line and customize the specified file - hosts /etc/coredns/mydomain.hosts my.domain.elastic + hosts my.domain.elastic { + 127.0.0.1 my.domain.elastic + fallthrough + } } # Zone2 diff --git a/metricbeat/module/coredns/_meta/config/mydomain.hosts b/metricbeat/module/coredns/_meta/config/mydomain.hosts deleted file mode 100644 index 7323b62c103..00000000000 --- a/metricbeat/module/coredns/_meta/config/mydomain.hosts +++ /dev/null @@ -1,4 +0,0 @@ -# Hosts file for Domain: my.domain.elastic -# Place entries below in standard hosts file format: ipaddress hostname fqdn - -127.0.0.1 my.domain.elastic From ddf21f266a332f8342c9e8cb411860f4f40e4b59 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Wed, 10 Apr 2019 12:50:21 +0200 Subject: [PATCH 05/11] add cache module for CoreDNS --- metricbeat/module/coredns/_meta/config/Corefile | 1 + 1 file changed, 1 insertion(+) diff --git a/metricbeat/module/coredns/_meta/config/Corefile b/metricbeat/module/coredns/_meta/config/Corefile index e0ad3ad08e2..3f32e4a37fc 100644 --- a/metricbeat/module/coredns/_meta/config/Corefile +++ b/metricbeat/module/coredns/_meta/config/Corefile @@ -19,6 +19,7 @@ my.domain.elastic { errors auto reload 10s + cache 4 # Use the prometheus plugin to export metrics at '/metrics' endpoint prometheus :9153 From 8f1adc326c8c6fd7c6d6fbb040d90a0b03b91cad Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Fri, 12 Apr 2019 20:16:50 +0200 Subject: [PATCH 06/11] move go metrics to what seems to be a better namespace --- metricbeat/module/coredns/stats/_meta/fields.yml | 2 +- metricbeat/module/coredns/stats/stats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metricbeat/module/coredns/stats/_meta/fields.yml b/metricbeat/module/coredns/stats/_meta/fields.yml index b4d4eb396b9..b4476e05c2e 100644 --- a/metricbeat/module/coredns/stats/_meta/fields.yml +++ b/metricbeat/module/coredns/stats/_meta/fields.yml @@ -108,7 +108,7 @@ type: long description: > Running threads count - - name: runtime.process.go.routines.count + - name: runtime.go.routines.count type: long description: > Running Go routines count diff --git a/metricbeat/module/coredns/stats/stats.go b/metricbeat/module/coredns/stats/stats.go index 233501095ef..efa6122bee4 100644 --- a/metricbeat/module/coredns/stats/stats.go +++ b/metricbeat/module/coredns/stats/stats.go @@ -44,7 +44,7 @@ var mapping = &prometheus.MetricsMapping{ // go runtime "go_memstats_alloc_bytes": prometheus.Metric("runtime.memory.alloc.bytes"), "go_threads": prometheus.Metric("runtime.process.threads.count"), - "go_goroutines": prometheus.Metric("runtime.process.go.routines.count"), + "go_goroutines": prometheus.Metric("runtime.go.routines.count"), }, Labels: map[string]prometheus.LabelMap{ From 358c1e3d7001e3d3750f418b3a27d2dd4801b97c Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Fri, 12 Apr 2019 20:18:28 +0200 Subject: [PATCH 07/11] add all generated and golden files --- metricbeat/docs/fields.asciidoc | 2 +- metricbeat/module/coredns/fields.go | 2 +- .../stats/_meta/testdata/coredns_1.5.0.plain | 395 ++++++++ .../coredns_1.5.0.plain-expected.json | 846 ++++++++++++++++++ .../do_count_total.plain-expected.json | 4 +- .../panic_count_total.plain-expected.json | 4 +- ...prometheus_full_output.plain-expected.json | 193 ++-- .../rcode_count_total.plain-expected.json | 4 +- .../request_count_total.plain-expected.json | 4 +- ...quest_type_count_total.plain-expected.json | 4 +- 10 files changed, 1348 insertions(+), 110 deletions(-) create mode 100644 metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain create mode 100644 metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index b228468f565..2618763cdeb 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -2832,7 +2832,7 @@ Running threads count -- -*`coredns.stats.runtime.process.go.routines.count`*:: +*`coredns.stats.runtime.go.routines.count`*:: + -- type: long diff --git a/metricbeat/module/coredns/fields.go b/metricbeat/module/coredns/fields.go index 764500fe3e9..ce4a8c7c60e 100644 --- a/metricbeat/module/coredns/fields.go +++ b/metricbeat/module/coredns/fields.go @@ -32,5 +32,5 @@ func init() { // AssetCoredns returns asset data. // This is the base64 encoded gzipped contents of ../metricbeat/module/coredns. func AssetCoredns() string { - return "eJzEl09P80YQxu/5FKOcoHpfV60qDpHaC0gtBygC7mWzO4m32DtmZxYUPn21/pME28SE7iv2FM3Gz/x2PPPY/g6PuFmAJo/G8QxArBS4gHkbmc8ADLL2thJLbgF/zACg+z9ckQkFzgA8FqgYF7BEUTOAlcXC8KL+83dwqsT9JHHJpsIFrD2Fqo2M5Inrob3uATQ5UdYxsCixLFYzSK4EXtAjeFQGVp7KOtHF9V2rsI+yjxNFeBsdAzoAFdf5CI7HQgkaEALJsSMBRv9sNe5d3i9Yt/q0+8SVclZnmoKTN/sde0Fu3ds4gF+vexJVgAvlEj3QqknBo9mN48zjU0CWH8HwFNBvYCg8lt4Er6Jc5jhbBv2Ikv00SkPLf1H3QZvgP5/mvW0ooKOA3LLQ2qsSGhgG68ApR4yanJku5/55OJQfLeyKfKlksQX53Dl4e/034FDGLugC/+sgSXtkhHXXtG32aTy2r5gtN4Jf2TZ39hWHLXMM+xEtMgH1DlM/wQRPyjv9DtEHfYHSdt31tsWiO1lsHze5esba3i/+hqUVYJxGiwxp4eA8qr3Fq9DDKzkE5UytPMo12OgoHnHzQt4cB/IXFYbrcjQWHqUiU4y0pz9QHa7IMWZek0lbn73qdFl69alzjqINdxJVqBbeFafBGkVYqdIWm3QM9zmCMsYjc6vdYYhXjivyAie/wO9weQMnlzfwjJ7js+2302/wax0+exM/Oz2dvqtf6rdw22Ic77hD/JSWO0512HOHRGlNd5zpfdeNL7To07Zno9mNhV0WGN9wJn0kznNakKgYtSEwmj7DzwfHtvIklJZmN58934CTeTDVHMjDXHQ13w3k8Af0OkornWOWW0nbSOdRFqJs0zvb4tX5oCrC2roJqNIyJ+7vBqsR/gjY4fr54MSWmJVYkt9kqihIN0OZCPeqFoZauP6aHIr3WSpPGpkzyeNncGJ3CM5Zt4ZW+4Ar9GnWlHkKYl1qv2qJ/iTo9Fuq/wIAAP//Fl2Kzg==" + return "eJzEl09P80YQxu/5FKOcoHpfV60qDpHaC0gtBygC7mWzO4m32DtmZxYUPn21/pME28SE7iv2FM3Gz/x2PPPY/g6PuFmAJo/G8QxArBS4gHkbmc8ADLL2thJLbgF/zACg+z9ckQkFzgA8FqgYF7BEUTOAlcXC8KL+83dwqsT9JHHJpsIFrD2Fqo2M5Inrob3uATQ5UdYxsCixLFYzSK4EXtAjeFQGVp7KOtHF9V2rsI+yjxNFeBsdAzoAFdf5CI7HQgkaEALJsSMBRv9sNe5d3i9Yt/q0+8SVclZnmoKTN/sde0Fu3ds4gF+vexJVgAvlEj3QqknBo9mN48zjU0CWH8HwFNBvYCg8lt4Er6Jc5jhbBv2Ikv00SkPLf1H3QZvgP5/mvW0ooKOA3LLQ2qsSGhgG68ApR4yanJku5/55OJQfLeyKfKlksQX53Dl4e/034FDGLugC/+sgSXtkhHXXtG32aTy2r5gtN4Jf2TZ39hWHLXMM+xEtMgH1DlM/wQRPyjv9DtEHfYHSdt31tsWiO1lsHze5esba3i/+hqUVYJxGiwxp4eA8qr3Fq9DDKzkE5UytPMo12OgoHnHzQt4cB/IXFYbrcjQWHqUiU4y0pz9QHa7IMWZek0lbn73qdFl69alzjqINdxJVqBbeFafBGkVYqdIWm3QM9zmCMsYjc6vdYYhXjivyAie/wO9weQMnlzfwjJ7js+2302/wax0+exM/Oz2dvqtf6rdw22Ic77hD/JSWO0512HOHRGlNd5zpfdeNL7To07Zno9mNhV0WGN9wJn0kznNakKgYtSEwmj7DzwfHtvIklJZmN58934CTeTDVHMjDXHQ13w3k8Af0OkornWOWW0nbSOdRFqJs0zvb4tX5oCrC2roJqNIyJ+7vBqsR/gjY4fr54MSWmJVYkt9kqihIN0OZCPeqFoZauP6aHIr3WSpPGpkzyeNncGJ3CM5Zt4ZW+4ArdDRryjwFsS61T7UkfxJ0+i3NfwEAAP//WMCHoQ==" } diff --git a/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain b/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain new file mode 100644 index 00000000000..f4fbcc68e8f --- /dev/null +++ b/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain @@ -0,0 +1,395 @@ +# HELP coredns_build_info A metric with a constant '1' value labeled by version, revision, and goversion from which CoreDNS was built. +# TYPE coredns_build_info gauge +coredns_build_info{goversion="go1.12.2",revision="e3f9a80",version="1.5.0"} 1 +# HELP coredns_cache_hits_total The count of cache hits. +# TYPE coredns_cache_hits_total counter +coredns_cache_hits_total{server="dns://:53",type="success"} 323 +# HELP coredns_cache_misses_total The count of cache misses. +# TYPE coredns_cache_misses_total counter +coredns_cache_misses_total{server="dns://:53"} 1686 +# HELP coredns_cache_size The number of elements in the cache. +# TYPE coredns_cache_size gauge +coredns_cache_size{server="dns://:53",type="denial"} 0 +coredns_cache_size{server="dns://:53",type="success"} 1 +# HELP coredns_dns_request_count_total Counter of DNS requests made per zone, protocol and family. +# TYPE coredns_dns_request_count_total counter +coredns_dns_request_count_total{family="1",proto="tcp",server="dns://:53",zone="."} 83 +coredns_dns_request_count_total{family="1",proto="tcp",server="dns://:53",zone="my.domain.elastic."} 37 +coredns_dns_request_count_total{family="1",proto="udp",server="dns://:53",zone="."} 129 +coredns_dns_request_count_total{family="1",proto="udp",server="dns://:53",zone="my.domain.elastic."} 1972 +# HELP coredns_dns_request_do_count_total Counter of DNS requests with DO bit set per zone. +# TYPE coredns_dns_request_do_count_total counter +coredns_dns_request_do_count_total{server="dns://:53",zone="my.domain.elastic."} 1525 +# HELP coredns_dns_request_duration_seconds Histogram of the time (in seconds) each request took. +# TYPE coredns_dns_request_duration_seconds histogram +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.00025"} 0 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.0005"} 0 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.001"} 0 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.002"} 0 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.004"} 0 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.008"} 47 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.016"} 152 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.032"} 168 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.064"} 194 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.128"} 203 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.256"} 212 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="0.512"} 212 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="1.024"} 212 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="2.048"} 212 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="4.096"} 212 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="8.192"} 212 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone=".",le="+Inf"} 212 +coredns_dns_request_duration_seconds_sum{server="dns://:53",zone="."} 5.474046607000003 +coredns_dns_request_duration_seconds_count{server="dns://:53",zone="."} 212 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.00025"} 1740 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.0005"} 2006 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.001"} 2007 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.002"} 2008 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.004"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.008"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.016"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.032"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.064"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.128"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.256"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="0.512"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="1.024"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="2.048"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="4.096"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="8.192"} 2009 +coredns_dns_request_duration_seconds_bucket{server="dns://:53",zone="my.domain.elastic.",le="+Inf"} 2009 +coredns_dns_request_duration_seconds_sum{server="dns://:53",zone="my.domain.elastic."} 0.2889330520000002 +coredns_dns_request_duration_seconds_count{server="dns://:53",zone="my.domain.elastic."} 2009 +# HELP coredns_dns_request_size_bytes Size of the EDNS0 UDP buffer in bytes (64K for TCP). +# TYPE coredns_dns_request_size_bytes histogram +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="0"} 0 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="100"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="200"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="300"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="400"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="511"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="1023"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="2047"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="4095"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="8291"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="16000"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="32000"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="48000"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="64000"} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="+Inf"} 83 +coredns_dns_request_size_bytes_sum{proto="tcp",server="dns://:53",zone="."} 4551 +coredns_dns_request_size_bytes_count{proto="tcp",server="dns://:53",zone="."} 83 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="0"} 0 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="100"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="200"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="300"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="400"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="511"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="1023"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="2047"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="4095"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="8291"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="16000"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="32000"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="48000"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="64000"} 37 +coredns_dns_request_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="+Inf"} 37 +coredns_dns_request_size_bytes_sum{proto="tcp",server="dns://:53",zone="my.domain.elastic."} 2180 +coredns_dns_request_size_bytes_count{proto="tcp",server="dns://:53",zone="my.domain.elastic."} 37 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="0"} 0 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="100"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="200"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="300"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="400"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="511"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="1023"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="2047"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="4095"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="8291"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="16000"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="32000"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="48000"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="64000"} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="+Inf"} 129 +coredns_dns_request_size_bytes_sum{proto="udp",server="dns://:53",zone="."} 6574 +coredns_dns_request_size_bytes_count{proto="udp",server="dns://:53",zone="."} 129 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="0"} 0 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="100"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="200"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="300"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="400"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="511"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="1023"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="2047"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="4095"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="8291"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="16000"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="32000"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="48000"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="64000"} 1972 +coredns_dns_request_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="+Inf"} 1972 +coredns_dns_request_size_bytes_sum{proto="udp",server="dns://:53",zone="my.domain.elastic."} 114442 +coredns_dns_request_size_bytes_count{proto="udp",server="dns://:53",zone="my.domain.elastic."} 1972 +# HELP coredns_dns_request_type_count_total Counter of DNS requests per type, per zone. +# TYPE coredns_dns_request_type_count_total counter +coredns_dns_request_type_count_total{server="dns://:53",type="A",zone="."} 89 +coredns_dns_request_type_count_total{server="dns://:53",type="A",zone="my.domain.elastic."} 1912 +coredns_dns_request_type_count_total{server="dns://:53",type="MX",zone="."} 104 +coredns_dns_request_type_count_total{server="dns://:53",type="MX",zone="my.domain.elastic."} 85 +coredns_dns_request_type_count_total{server="dns://:53",type="SOA",zone="."} 19 +coredns_dns_request_type_count_total{server="dns://:53",type="SOA",zone="my.domain.elastic."} 12 +# HELP coredns_dns_response_rcode_count_total Counter of response status codes. +# TYPE coredns_dns_response_rcode_count_total counter +coredns_dns_response_rcode_count_total{rcode="NOERROR",server="dns://:53",zone="."} 170 +coredns_dns_response_rcode_count_total{rcode="NOERROR",server="dns://:53",zone="my.domain.elastic."} 2009 +coredns_dns_response_rcode_count_total{rcode="NXDOMAIN",server="dns://:53",zone="."} 42 +# HELP coredns_dns_response_size_bytes Size of the returned response in bytes. +# TYPE coredns_dns_response_size_bytes histogram +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="0"} 0 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="100"} 27 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="200"} 63 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="300"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="400"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="511"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="1023"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="2047"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="4095"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="8291"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="16000"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="32000"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="48000"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="64000"} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone=".",le="+Inf"} 83 +coredns_dns_response_size_bytes_sum{proto="tcp",server="dns://:53",zone="."} 12437 +coredns_dns_response_size_bytes_count{proto="tcp",server="dns://:53",zone="."} 83 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="0"} 27 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="100"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="200"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="300"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="400"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="511"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="1023"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="2047"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="4095"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="8291"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="16000"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="32000"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="48000"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="64000"} 37 +coredns_dns_response_size_bytes_bucket{proto="tcp",server="dns://:53",zone="my.domain.elastic.",le="+Inf"} 37 +coredns_dns_response_size_bytes_sum{proto="tcp",server="dns://:53",zone="my.domain.elastic."} 680 +coredns_dns_response_size_bytes_count{proto="tcp",server="dns://:53",zone="my.domain.elastic."} 37 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="0"} 0 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="100"} 49 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="200"} 73 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="300"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="400"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="511"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="1023"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="2047"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="4095"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="8291"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="16000"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="32000"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="48000"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="64000"} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone=".",le="+Inf"} 129 +coredns_dns_response_size_bytes_sum{proto="udp",server="dns://:53",zone="."} 22227 +coredns_dns_response_size_bytes_count{proto="udp",server="dns://:53",zone="."} 129 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="0"} 98 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="100"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="200"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="300"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="400"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="511"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="1023"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="2047"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="4095"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="8291"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="16000"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="32000"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="48000"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="64000"} 1972 +coredns_dns_response_size_bytes_bucket{proto="udp",server="dns://:53",zone="my.domain.elastic.",le="+Inf"} 1972 +coredns_dns_response_size_bytes_sum{proto="udp",server="dns://:53",zone="my.domain.elastic."} 127432 +coredns_dns_response_size_bytes_count{proto="udp",server="dns://:53",zone="my.domain.elastic."} 1972 +# HELP coredns_forward_request_count_total Counter of requests made per upstream. +# TYPE coredns_forward_request_count_total counter +coredns_forward_request_count_total{to="8.8.4.4:53"} 97 +coredns_forward_request_count_total{to="8.8.8.8:53"} 115 +# HELP coredns_forward_request_duration_seconds Histogram of the time each request took. +# TYPE coredns_forward_request_duration_seconds histogram +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.00025"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.0005"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.001"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.002"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.004"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.008"} 21 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.016"} 66 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.032"} 75 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.064"} 88 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.128"} 93 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.256"} 97 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="0.512"} 97 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="1.024"} 97 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="2.048"} 97 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="4.096"} 97 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="8.192"} 97 +coredns_forward_request_duration_seconds_bucket{to="8.8.4.4:53",le="+Inf"} 97 +coredns_forward_request_duration_seconds_sum{to="8.8.4.4:53"} 2.6742174700000008 +coredns_forward_request_duration_seconds_count{to="8.8.4.4:53"} 97 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.00025"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.0005"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.001"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.002"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.004"} 0 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.008"} 36 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.016"} 86 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.032"} 93 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.064"} 107 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.128"} 110 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.256"} 115 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="0.512"} 115 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="1.024"} 115 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="2.048"} 115 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="4.096"} 115 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="8.192"} 115 +coredns_forward_request_duration_seconds_bucket{to="8.8.8.8:53",le="+Inf"} 115 +coredns_forward_request_duration_seconds_sum{to="8.8.8.8:53"} 2.737295418999999 +coredns_forward_request_duration_seconds_count{to="8.8.8.8:53"} 115 +# HELP coredns_forward_response_rcode_count_total Counter of requests made per upstream. +# TYPE coredns_forward_response_rcode_count_total counter +coredns_forward_response_rcode_count_total{rcode="NOERROR",to="8.8.4.4:53"} 77 +coredns_forward_response_rcode_count_total{rcode="NOERROR",to="8.8.8.8:53"} 93 +coredns_forward_response_rcode_count_total{rcode="NXDOMAIN",to="8.8.4.4:53"} 20 +coredns_forward_response_rcode_count_total{rcode="NXDOMAIN",to="8.8.8.8:53"} 22 +# HELP coredns_forward_sockets_open Gauge of open sockets per upstream. +# TYPE coredns_forward_sockets_open gauge +coredns_forward_sockets_open{to="8.8.4.4:53"} 1 +coredns_forward_sockets_open{to="8.8.8.8:53"} 1 +# HELP coredns_panic_count_total A metrics that counts the number of panics. +# TYPE coredns_panic_count_total counter +coredns_panic_count_total 0 +# HELP coredns_plugin_enabled A metric that indicates whether a plugin is enabled on per server and zone basis. +# TYPE coredns_plugin_enabled gauge +coredns_plugin_enabled{name="auto",server="dns://:53",zone="my.domain.elastic."} 1 +coredns_plugin_enabled{name="cache",server="dns://:53",zone="my.domain.elastic."} 1 +coredns_plugin_enabled{name="errors",server="dns://:53",zone="."} 1 +coredns_plugin_enabled{name="errors",server="dns://:53",zone="my.domain.elastic."} 1 +coredns_plugin_enabled{name="forward",server="dns://:53",zone="."} 1 +coredns_plugin_enabled{name="hosts",server="dns://:53",zone="my.domain.elastic."} 1 +coredns_plugin_enabled{name="log",server="dns://:53",zone="."} 1 +coredns_plugin_enabled{name="log",server="dns://:53",zone="my.domain.elastic."} 1 +coredns_plugin_enabled{name="prometheus",server="dns://:53",zone="."} 1 +coredns_plugin_enabled{name="prometheus",server="dns://:53",zone="my.domain.elastic."} 1 +# HELP go_gc_duration_seconds A summary of the GC invocation durations. +# TYPE go_gc_duration_seconds summary +go_gc_duration_seconds{quantile="0"} 1.068e-05 +go_gc_duration_seconds{quantile="0.25"} 3.0948e-05 +go_gc_duration_seconds{quantile="0.5"} 6.4787e-05 +go_gc_duration_seconds{quantile="0.75"} 8.9763e-05 +go_gc_duration_seconds{quantile="1"} 0.000655576 +go_gc_duration_seconds_sum 0.005003119 +go_gc_duration_seconds_count 70 +# HELP go_goroutines Number of goroutines that currently exist. +# TYPE go_goroutines gauge +go_goroutines 21 +# HELP go_info Information about the Go environment. +# TYPE go_info gauge +go_info{version="go1.12.2"} 1 +# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use. +# TYPE go_memstats_alloc_bytes gauge +go_memstats_alloc_bytes 1.843744e+06 +# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed. +# TYPE go_memstats_alloc_bytes_total counter +go_memstats_alloc_bytes_total 2.240164e+07 +# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table. +# TYPE go_memstats_buck_hash_sys_bytes gauge +go_memstats_buck_hash_sys_bytes 1.45134e+06 +# HELP go_memstats_frees_total Total number of frees. +# TYPE go_memstats_frees_total counter +go_memstats_frees_total 306871 +# HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program started. +# TYPE go_memstats_gc_cpu_fraction gauge +go_memstats_gc_cpu_fraction 3.282059007676328e-06 +# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata. +# TYPE go_memstats_gc_sys_bytes gauge +go_memstats_gc_sys_bytes 2.38592e+06 +# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use. +# TYPE go_memstats_heap_alloc_bytes gauge +go_memstats_heap_alloc_bytes 1.843744e+06 +# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used. +# TYPE go_memstats_heap_idle_bytes gauge +go_memstats_heap_idle_bytes 6.2267392e+07 +# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use. +# TYPE go_memstats_heap_inuse_bytes gauge +go_memstats_heap_inuse_bytes 3.760128e+06 +# HELP go_memstats_heap_objects Number of allocated objects. +# TYPE go_memstats_heap_objects gauge +go_memstats_heap_objects 10738 +# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS. +# TYPE go_memstats_heap_released_bytes gauge +go_memstats_heap_released_bytes 6.0637184e+07 +# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system. +# TYPE go_memstats_heap_sys_bytes gauge +go_memstats_heap_sys_bytes 6.602752e+07 +# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection. +# TYPE go_memstats_last_gc_time_seconds gauge +go_memstats_last_gc_time_seconds 1.5550919381656787e+09 +# HELP go_memstats_lookups_total Total number of pointer lookups. +# TYPE go_memstats_lookups_total counter +go_memstats_lookups_total 0 +# HELP go_memstats_mallocs_total Total number of mallocs. +# TYPE go_memstats_mallocs_total counter +go_memstats_mallocs_total 317609 +# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures. +# TYPE go_memstats_mcache_inuse_bytes gauge +go_memstats_mcache_inuse_bytes 13888 +# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system. +# TYPE go_memstats_mcache_sys_bytes gauge +go_memstats_mcache_sys_bytes 16384 +# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures. +# TYPE go_memstats_mspan_inuse_bytes gauge +go_memstats_mspan_inuse_bytes 61920 +# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system. +# TYPE go_memstats_mspan_sys_bytes gauge +go_memstats_mspan_sys_bytes 98304 +# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place. +# TYPE go_memstats_next_gc_bytes gauge +go_memstats_next_gc_bytes 4.194304e+06 +# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations. +# TYPE go_memstats_other_sys_bytes gauge +go_memstats_other_sys_bytes 1.749932e+06 +# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator. +# TYPE go_memstats_stack_inuse_bytes gauge +go_memstats_stack_inuse_bytes 1.081344e+06 +# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator. +# TYPE go_memstats_stack_sys_bytes gauge +go_memstats_stack_sys_bytes 1.081344e+06 +# HELP go_memstats_sys_bytes Number of bytes obtained from system. +# TYPE go_memstats_sys_bytes gauge +go_memstats_sys_bytes 7.2810744e+07 +# HELP go_threads Number of OS threads created. +# TYPE go_threads gauge +go_threads 18 +# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds. +# TYPE process_cpu_seconds_total counter +process_cpu_seconds_total 4.75 +# HELP process_max_fds Maximum number of open file descriptors. +# TYPE process_max_fds gauge +process_max_fds 1.048576e+06 +# HELP process_open_fds Number of open file descriptors. +# TYPE process_open_fds gauge +process_open_fds 11 +# HELP process_resident_memory_bytes Resident memory size in bytes. +# TYPE process_resident_memory_bytes gauge +process_resident_memory_bytes 2.7693056e+07 +# HELP process_start_time_seconds Start time of the process since unix epoch in seconds. +# TYPE process_start_time_seconds gauge +process_start_time_seconds 1.55508368301e+09 +# HELP process_virtual_memory_bytes Virtual memory size in bytes. +# TYPE process_virtual_memory_bytes gauge +process_virtual_memory_bytes 1.48942848e+08 +# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes. +# TYPE process_virtual_memory_max_bytes gauge +process_virtual_memory_max_bytes -1 diff --git a/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json new file mode 100644 index 00000000000..92964f27dd8 --- /dev/null +++ b/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json @@ -0,0 +1,846 @@ +[ + { + "coredns": { + "stats": { + "dns": { + "request": { + "size": { + "bytes": { + "bucket": { + "+Inf": 129, + "0": 0, + "100": 129, + "1023": 129, + "16000": 129, + "200": 129, + "2047": 129, + "300": 129, + "32000": 129, + "400": 129, + "4095": 129, + "48000": 129, + "511": 129, + "64000": 129, + "8291": 129 + }, + "count": 129, + "sum": 6574 + } + } + }, + "response": { + "size": { + "bytes": { + "bucket": { + "+Inf": 129, + "0": 0, + "100": 49, + "1023": 129, + "16000": 129, + "200": 73, + "2047": 129, + "300": 129, + "32000": 129, + "400": 129, + "4095": 129, + "48000": 129, + "511": 129, + "64000": 129, + "8291": 129 + }, + "count": 129, + "sum": 22227 + } + } + } + }, + "proto": "udp", + "server": "dns://:53", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "response": { + "rcode": { + "count": 42 + } + } + }, + "rcode": "NXDOMAIN", + "server": "dns://:53", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "size": { + "bytes": { + "bucket": { + "+Inf": 37, + "0": 0, + "100": 37, + "1023": 37, + "16000": 37, + "200": 37, + "2047": 37, + "300": 37, + "32000": 37, + "400": 37, + "4095": 37, + "48000": 37, + "511": 37, + "64000": 37, + "8291": 37 + }, + "count": 37, + "sum": 2180 + } + } + }, + "response": { + "size": { + "bytes": { + "bucket": { + "+Inf": 37, + "0": 27, + "100": 37, + "1023": 37, + "16000": 37, + "200": 37, + "2047": 37, + "300": 37, + "32000": 37, + "400": 37, + "4095": 37, + "48000": 37, + "511": 37, + "64000": 37, + "8291": 37 + }, + "count": 37, + "sum": 680 + } + } + } + }, + "proto": "tcp", + "server": "dns://:53", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "response": { + "rcode": { + "count": 2009 + } + } + }, + "rcode": "NOERROR", + "server": "dns://:53", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "do": { + "count": 1525 + }, + "duration": { + "ns": { + "bucket": { + "+Inf": 2009, + "1000000": 2007, + "1024000000": 2009, + "128000000": 2009, + "16000000": 2009, + "2000000": 2008, + "2048000000": 2009, + "250000": 1740, + "256000000": 2009, + "32000000": 2009, + "4000000": 2009, + "4096000000": 2009, + "500000": 2006, + "512000000": 2009, + "64000000": 2009, + "8000000": 2009, + "8192000000": 2009 + }, + "count": 2009, + "sum": 288933052.0000002 + } + } + } + }, + "server": "dns://:53", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "size": { + "bytes": { + "bucket": { + "+Inf": 1972, + "0": 0, + "100": 1972, + "1023": 1972, + "16000": 1972, + "200": 1972, + "2047": 1972, + "300": 1972, + "32000": 1972, + "400": 1972, + "4095": 1972, + "48000": 1972, + "511": 1972, + "64000": 1972, + "8291": 1972 + }, + "count": 1972, + "sum": 114442 + } + } + }, + "response": { + "size": { + "bytes": { + "bucket": { + "+Inf": 1972, + "0": 98, + "100": 1972, + "1023": 1972, + "16000": 1972, + "200": 1972, + "2047": 1972, + "300": 1972, + "32000": 1972, + "400": 1972, + "4095": 1972, + "48000": 1972, + "511": 1972, + "64000": 1972, + "8291": 1972 + }, + "count": 1972, + "sum": 127432 + } + } + } + }, + "proto": "udp", + "server": "dns://:53", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "size": { + "bytes": { + "bucket": { + "+Inf": 83, + "0": 0, + "100": 83, + "1023": 83, + "16000": 83, + "200": 83, + "2047": 83, + "300": 83, + "32000": 83, + "400": 83, + "4095": 83, + "48000": 83, + "511": 83, + "64000": 83, + "8291": 83 + }, + "count": 83, + "sum": 4551 + } + } + }, + "response": { + "size": { + "bytes": { + "bucket": { + "+Inf": 83, + "0": 0, + "100": 27, + "1023": 83, + "16000": 83, + "200": 63, + "2047": 83, + "300": 83, + "32000": 83, + "400": 83, + "4095": 83, + "48000": 83, + "511": 83, + "64000": 83, + "8291": 83 + }, + "count": 83, + "sum": 12437 + } + } + } + }, + "proto": "tcp", + "server": "dns://:53", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "cache": { + "hits": { + "count": 323 + } + } + }, + "server": "dns://:53", + "type": "success" + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "type": { + "count": 104 + } + } + }, + "server": "dns://:53", + "type": "MX", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "type": { + "count": 89 + } + } + }, + "server": "dns://:53", + "type": "A", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "type": { + "count": 1912 + } + } + }, + "server": "dns://:53", + "type": "A", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "panic": { + "count": 0 + }, + "runtime": { + "go": { + "routines": { + "count": 21 + } + }, + "memory": { + "alloc": { + "bytes": 1843744 + } + }, + "process": { + "threads": { + "count": 18 + } + } + } + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "count": 37 + } + }, + "family": "1", + "proto": "tcp", + "server": "dns://:53", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "response": { + "rcode": { + "count": 170 + } + } + }, + "rcode": "NOERROR", + "server": "dns://:53", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "type": { + "count": 12 + } + } + }, + "server": "dns://:53", + "type": "SOA", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "duration": { + "ns": { + "bucket": { + "+Inf": 212, + "1000000": 0, + "1024000000": 212, + "128000000": 203, + "16000000": 152, + "2000000": 0, + "2048000000": 212, + "250000": 0, + "256000000": 212, + "32000000": 168, + "4000000": 0, + "4096000000": 212, + "500000": 0, + "512000000": 212, + "64000000": 194, + "8000000": 47, + "8192000000": 212 + }, + "count": 212, + "sum": 5474046607.000003 + } + } + } + }, + "server": "dns://:53", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "count": 129 + } + }, + "family": "1", + "proto": "udp", + "server": "dns://:53", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "count": 1972 + } + }, + "family": "1", + "proto": "udp", + "server": "dns://:53", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "type": { + "count": 19 + } + } + }, + "server": "dns://:53", + "type": "SOA", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "type": { + "count": 85 + } + } + }, + "server": "dns://:53", + "type": "MX", + "zone": "my.domain.elastic." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "cache": { + "misses": { + "count": 1686 + } + } + }, + "server": "dns://:53" + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, + { + "coredns": { + "stats": { + "dns": { + "request": { + "count": 83 + } + }, + "family": "1", + "proto": "tcp", + "server": "dns://:53", + "zone": "." + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + } +] \ No newline at end of file diff --git a/metricbeat/module/coredns/stats/_meta/testdata/do_count_total.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/do_count_total.plain-expected.json index 4f854e03be4..416e5379783 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/do_count_total.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/do_count_total.plain-expected.json @@ -5,9 +5,7 @@ "dns": { "request": { "do": { - "count": { - "total": 113 - } + "count": 113 } } }, diff --git a/metricbeat/module/coredns/stats/_meta/testdata/panic_count_total.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/panic_count_total.plain-expected.json index c13297036e0..9cf5e167025 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/panic_count_total.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/panic_count_total.plain-expected.json @@ -3,9 +3,7 @@ "coredns": { "stats": { "panic": { - "count": { - "total": 42 - } + "count": 42 } } }, diff --git a/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json index 8865794ce31..e47b2d7317c 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json @@ -3,8 +3,23 @@ "coredns": { "stats": { "panic": { - "count": { - "total": 0 + "count": 0 + }, + "runtime": { + "go": { + "routines": { + "count": 22 + } + }, + "memory": { + "alloc": { + "bytes": 2917800 + } + }, + "process": { + "threads": { + "count": 16 + } } } } @@ -27,56 +42,10 @@ "stats": { "dns": { "request": { - "size": { - "bytes": { - "bucket": { - "+Inf": 440, - "0": 0, - "100": 440, - "1023": 440, - "16000": 440, - "200": 440, - "2047": 440, - "300": 440, - "32000": 440, - "400": 440, - "4095": 440, - "48000": 440, - "511": 440, - "64000": 440, - "8291": 440 - }, - "count": 440, - "sum": 22880 - } - } - }, - "response": { - "size": { - "bytes": { - "bucket": { - "+Inf": 440, - "0": 0, - "100": 440, - "1023": 440, - "16000": 440, - "200": 440, - "2047": 440, - "300": 440, - "32000": 440, - "400": 440, - "4095": 440, - "48000": 440, - "511": 440, - "64000": 440, - "8291": 440 - }, - "count": 440, - "sum": 29480 - } - } + "count": 440 } }, + "family": "1", "proto": "udp", "server": "dns://:53", "zone": "." @@ -100,14 +69,13 @@ "stats": { "dns": { "request": { - "count": { - "total": 440 + "type": { + "count": 440 } } }, - "family": "1", - "proto": "udp", "server": "dns://:53", + "type": "A", "zone": "." } }, @@ -128,15 +96,37 @@ "coredns": { "stats": { "dns": { - "response": { - "rcode": { - "count": { - "total": 440 + "request": { + "do": { + "count": 113 + }, + "duration": { + "ns": { + "bucket": { + "+Inf": 440, + "1000000": 0, + "1024000000": 440, + "128000000": 437, + "16000000": 0, + "2000000": 0, + "2048000000": 440, + "250000": 0, + "256000000": 438, + "32000000": 0, + "4000000": 0, + "4096000000": 440, + "500000": 0, + "512000000": 440, + "64000000": 424, + "8000000": 0, + "8192000000": 440 + }, + "count": 440, + "sum": 21712619368 } } } }, - "rcode": "NOERROR", "server": "dns://:53", "zone": "." } @@ -159,15 +149,58 @@ "stats": { "dns": { "request": { - "type": { - "count": { - "total": 440 + "size": { + "bytes": { + "bucket": { + "+Inf": 440, + "0": 0, + "100": 440, + "1023": 440, + "16000": 440, + "200": 440, + "2047": 440, + "300": 440, + "32000": 440, + "400": 440, + "4095": 440, + "48000": 440, + "511": 440, + "64000": 440, + "8291": 440 + }, + "count": 440, + "sum": 22880 + } + } + }, + "response": { + "size": { + "bytes": { + "bucket": { + "+Inf": 440, + "0": 0, + "100": 440, + "1023": 440, + "16000": 440, + "200": 440, + "2047": 440, + "300": 440, + "32000": 440, + "400": 440, + "4095": 440, + "48000": 440, + "511": 440, + "64000": 440, + "8291": 440 + }, + "count": 440, + "sum": 29480 } } } }, + "proto": "udp", "server": "dns://:53", - "type": "A", "zone": "." } }, @@ -188,39 +221,13 @@ "coredns": { "stats": { "dns": { - "request": { - "do": { - "count": { - "total": 113 - } - }, - "duration": { - "ns": { - "bucket": { - "+Inf": 440, - "1000000": 0, - "1024000000": 440, - "128000000": 437, - "16000000": 0, - "2000000": 0, - "2048000000": 440, - "250000": 0, - "256000000": 438, - "32000000": 0, - "4000000": 0, - "4096000000": 440, - "500000": 0, - "512000000": 440, - "64000000": 424, - "8000000": 0, - "8192000000": 440 - }, - "count": 440, - "sum": 21712619368 - } + "response": { + "rcode": { + "count": 440 } } }, + "rcode": "NOERROR", "server": "dns://:53", "zone": "." } diff --git a/metricbeat/module/coredns/stats/_meta/testdata/rcode_count_total.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/rcode_count_total.plain-expected.json index 05c945bc0bf..16950cad006 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/rcode_count_total.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/rcode_count_total.plain-expected.json @@ -5,9 +5,7 @@ "dns": { "response": { "rcode": { - "count": { - "total": 440 - } + "count": 440 } } }, diff --git a/metricbeat/module/coredns/stats/_meta/testdata/request_count_total.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/request_count_total.plain-expected.json index f8107cdf790..a4fe0627cbb 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/request_count_total.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/request_count_total.plain-expected.json @@ -4,9 +4,7 @@ "stats": { "dns": { "request": { - "count": { - "total": 440 - } + "count": 440 } }, "family": "1", diff --git a/metricbeat/module/coredns/stats/_meta/testdata/request_type_count_total.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/request_type_count_total.plain-expected.json index 975b31d8421..337df7408ca 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/request_type_count_total.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/request_type_count_total.plain-expected.json @@ -5,9 +5,7 @@ "dns": { "request": { "type": { - "count": { - "total": 440 - } + "count": 440 } } }, From 8b4c9b8f48b91d798a01484f67df576a0775477b Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Fri, 12 Apr 2019 22:35:22 +0200 Subject: [PATCH 08/11] add CoreDNS integration tests --- .../module/coredns/stats/_meta/data.json | 74 +++++++++---------- .../coredns/stats/stats_integration_test.go | 65 ++++++++++++++++ 2 files changed, 102 insertions(+), 37 deletions(-) create mode 100644 metricbeat/module/coredns/stats/stats_integration_test.go diff --git a/metricbeat/module/coredns/stats/_meta/data.json b/metricbeat/module/coredns/stats/_meta/data.json index f7181c2915e..5193b6b8994 100644 --- a/metricbeat/module/coredns/stats/_meta/data.json +++ b/metricbeat/module/coredns/stats/_meta/data.json @@ -1,5 +1,5 @@ { - "@timestamp": "2019-03-01T08:05:34.853Z", + "@timestamp": "2017-10-12T08:05:34.853Z", "coredns": { "stats": { "dns": { @@ -7,24 +7,24 @@ "size": { "bytes": { "bucket": { - "+Inf": 440, + "+Inf": 37, "0": 0, - "100": 440, - "1023": 440, - "16000": 440, - "200": 440, - "2047": 440, - "300": 440, - "32000": 440, - "400": 440, - "4095": 440, - "48000": 440, - "511": 440, - "64000": 440, - "8291": 440 + "100": 37, + "1023": 37, + "16000": 37, + "200": 37, + "2047": 37, + "300": 37, + "32000": 37, + "400": 37, + "4095": 37, + "48000": 37, + "511": 37, + "64000": 37, + "8291": 37 }, - "count": 440, - "sum": 22880 + "count": 37, + "sum": 2180 } } }, @@ -32,31 +32,31 @@ "size": { "bytes": { "bucket": { - "+Inf": 440, - "0": 0, - "100": 440, - "1023": 440, - "16000": 440, - "200": 440, - "2047": 440, - "300": 440, - "32000": 440, - "400": 440, - "4095": 440, - "48000": 440, - "511": 440, - "64000": 440, - "8291": 440 + "+Inf": 37, + "0": 27, + "100": 37, + "1023": 37, + "16000": 37, + "200": 37, + "2047": 37, + "300": 37, + "32000": 37, + "400": 37, + "4095": 37, + "48000": 37, + "511": 37, + "64000": 37, + "8291": 37 }, - "count": 440, - "sum": 29480 + "count": 37, + "sum": 680 } } } }, - "proto": "udp", + "proto": "tcp", "server": "dns://:53", - "zone": "." + "zone": "my.domain.elastic." } }, "event": { @@ -68,7 +68,7 @@ "name": "stats" }, "service": { - "address": "127.0.0.1:55555", + "address": "127.0.0.1:9153", "type": "coredns" } } \ No newline at end of file diff --git a/metricbeat/module/coredns/stats/stats_integration_test.go b/metricbeat/module/coredns/stats/stats_integration_test.go new file mode 100644 index 00000000000..0f0a8dc7b7c --- /dev/null +++ b/metricbeat/module/coredns/stats/stats_integration_test.go @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// +build integration + +package stats + +import ( + "os" + "testing" + + "github.com/stretchr/testify/assert" + + "github.com/elastic/beats/libbeat/common" + "github.com/elastic/beats/libbeat/tests/compose" + mbtest "github.com/elastic/beats/metricbeat/mb/testing" +) + +func TestData(t *testing.T) { + compose.EnsureUp(t, "coredns") + + f := mbtest.NewReportingMetricSetV2(t, getConfig()) + events, errs := mbtest.ReportingFetchV2(f) + if len(errs) > 0 { + t.Fatalf("Expected 0 error, had %d. %v\n", len(errs), errs) + } + assert.NotEmpty(t, events) + + if err := mbtest.WriteEventsReporterV2Cond(f, t, "", + func(m common.MapStr) bool { return true }); err != nil { + t.Fatal("write", err) + } + +} + +func getConfig() map[string]interface{} { + + host := os.Getenv("COREDNS_HOST") + port := os.Getenv("COREDNS_PORT") + if len(host) == 0 { + host = "127.0.0.1" + } + if len(port) == 0 { + port = "9153" + } + return map[string]interface{}{ + "module": "coredns", + "metricsets": []string{"stats"}, + "hosts": []string{host + ":" + port}, + } +} From 136cb2fe0554f86c5a9635641106b94dc4ddd9c9 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Mon, 15 Apr 2019 19:40:15 +0200 Subject: [PATCH 09/11] remove data.json generation from coredns test --- .../module/coredns/stats/stats_integration_test.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/metricbeat/module/coredns/stats/stats_integration_test.go b/metricbeat/module/coredns/stats/stats_integration_test.go index 0f0a8dc7b7c..b8721694c74 100644 --- a/metricbeat/module/coredns/stats/stats_integration_test.go +++ b/metricbeat/module/coredns/stats/stats_integration_test.go @@ -25,12 +25,11 @@ import ( "github.com/stretchr/testify/assert" - "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/libbeat/tests/compose" mbtest "github.com/elastic/beats/metricbeat/mb/testing" ) -func TestData(t *testing.T) { +func TestFetch(t *testing.T) { compose.EnsureUp(t, "coredns") f := mbtest.NewReportingMetricSetV2(t, getConfig()) @@ -39,12 +38,7 @@ func TestData(t *testing.T) { t.Fatalf("Expected 0 error, had %d. %v\n", len(errs), errs) } assert.NotEmpty(t, events) - - if err := mbtest.WriteEventsReporterV2Cond(f, t, "", - func(m common.MapStr) bool { return true }); err != nil { - t.Fatal("write", err) - } - + t.Logf("%s/%s event: %+v", f.Module().Name(), f.Name(), events[0]) } func getConfig() map[string]interface{} { From db2e413d232fc8cdcd15f6d8b54cf8eac5b69d86 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Tue, 16 Apr 2019 15:32:56 +0200 Subject: [PATCH 10/11] remove go runtime stats for now --- .../module/coredns/stats/_meta/data.json | 74 +++++++++---------- .../coredns_1.5.0.plain-expected.json | 59 ++++++--------- ...prometheus_full_output.plain-expected.json | 39 +++------- metricbeat/module/coredns/stats/stats.go | 5 -- 4 files changed, 69 insertions(+), 108 deletions(-) diff --git a/metricbeat/module/coredns/stats/_meta/data.json b/metricbeat/module/coredns/stats/_meta/data.json index 5193b6b8994..f7181c2915e 100644 --- a/metricbeat/module/coredns/stats/_meta/data.json +++ b/metricbeat/module/coredns/stats/_meta/data.json @@ -1,5 +1,5 @@ { - "@timestamp": "2017-10-12T08:05:34.853Z", + "@timestamp": "2019-03-01T08:05:34.853Z", "coredns": { "stats": { "dns": { @@ -7,24 +7,24 @@ "size": { "bytes": { "bucket": { - "+Inf": 37, + "+Inf": 440, "0": 0, - "100": 37, - "1023": 37, - "16000": 37, - "200": 37, - "2047": 37, - "300": 37, - "32000": 37, - "400": 37, - "4095": 37, - "48000": 37, - "511": 37, - "64000": 37, - "8291": 37 + "100": 440, + "1023": 440, + "16000": 440, + "200": 440, + "2047": 440, + "300": 440, + "32000": 440, + "400": 440, + "4095": 440, + "48000": 440, + "511": 440, + "64000": 440, + "8291": 440 }, - "count": 37, - "sum": 2180 + "count": 440, + "sum": 22880 } } }, @@ -32,31 +32,31 @@ "size": { "bytes": { "bucket": { - "+Inf": 37, - "0": 27, - "100": 37, - "1023": 37, - "16000": 37, - "200": 37, - "2047": 37, - "300": 37, - "32000": 37, - "400": 37, - "4095": 37, - "48000": 37, - "511": 37, - "64000": 37, - "8291": 37 + "+Inf": 440, + "0": 0, + "100": 440, + "1023": 440, + "16000": 440, + "200": 440, + "2047": 440, + "300": 440, + "32000": 440, + "400": 440, + "4095": 440, + "48000": 440, + "511": 440, + "64000": 440, + "8291": 440 }, - "count": 37, - "sum": 680 + "count": 440, + "sum": 29480 } } } }, - "proto": "tcp", + "proto": "udp", "server": "dns://:53", - "zone": "my.domain.elastic." + "zone": "." } }, "event": { @@ -68,7 +68,7 @@ "name": "stats" }, "service": { - "address": "127.0.0.1:9153", + "address": "127.0.0.1:55555", "type": "coredns" } } \ No newline at end of file diff --git a/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json index 92964f27dd8..7338a6f3d19 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/coredns_1.5.0.plain-expected.json @@ -173,6 +173,27 @@ "type": "coredns" } }, + { + "coredns": { + "stats": { + "panic": { + "count": 0 + } + } + }, + "event": { + "dataset": "coredns.stats", + "duration": 115000, + "module": "coredns" + }, + "metricset": { + "name": "stats" + }, + "service": { + "address": "127.0.0.1:55555", + "type": "coredns" + } + }, { "coredns": { "stats": { @@ -510,44 +531,6 @@ "type": "coredns" } }, - { - "coredns": { - "stats": { - "panic": { - "count": 0 - }, - "runtime": { - "go": { - "routines": { - "count": 21 - } - }, - "memory": { - "alloc": { - "bytes": 1843744 - } - }, - "process": { - "threads": { - "count": 18 - } - } - } - } - }, - "event": { - "dataset": "coredns.stats", - "duration": 115000, - "module": "coredns" - }, - "metricset": { - "name": "stats" - }, - "service": { - "address": "127.0.0.1:55555", - "type": "coredns" - } - }, { "coredns": { "stats": { diff --git a/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json b/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json index e47b2d7317c..b6dbe739d64 100644 --- a/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json +++ b/metricbeat/module/coredns/stats/_meta/testdata/prometheus_full_output.plain-expected.json @@ -2,26 +2,15 @@ { "coredns": { "stats": { - "panic": { - "count": 0 - }, - "runtime": { - "go": { - "routines": { - "count": 22 - } - }, - "memory": { - "alloc": { - "bytes": 2917800 - } - }, - "process": { - "threads": { - "count": 16 - } + "dns": { + "request": { + "count": 440 } - } + }, + "family": "1", + "proto": "udp", + "server": "dns://:53", + "zone": "." } }, "event": { @@ -40,15 +29,9 @@ { "coredns": { "stats": { - "dns": { - "request": { - "count": 440 - } - }, - "family": "1", - "proto": "udp", - "server": "dns://:53", - "zone": "." + "panic": { + "count": 0 + } } }, "event": { diff --git a/metricbeat/module/coredns/stats/stats.go b/metricbeat/module/coredns/stats/stats.go index efa6122bee4..3b93148be5e 100644 --- a/metricbeat/module/coredns/stats/stats.go +++ b/metricbeat/module/coredns/stats/stats.go @@ -40,11 +40,6 @@ var mapping = &prometheus.MetricsMapping{ // cache plugin metrics (might not be present if cache plugin is not configured) "coredns_cache_hits_total": prometheus.Metric("dns.cache.hits.count"), "coredns_cache_misses_total": prometheus.Metric("dns.cache.misses.count"), - - // go runtime - "go_memstats_alloc_bytes": prometheus.Metric("runtime.memory.alloc.bytes"), - "go_threads": prometheus.Metric("runtime.process.threads.count"), - "go_goroutines": prometheus.Metric("runtime.go.routines.count"), }, Labels: map[string]prometheus.LabelMap{ From f9c8c16032c0b50955b43cd520a0f1a7c34e5079 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Tue, 16 Apr 2019 15:54:18 +0200 Subject: [PATCH 11/11] remove runtime metrics from fields.yml at coredns --- metricbeat/docs/fields.asciidoc | 30 ------------------- metricbeat/module/coredns/fields.go | 2 +- .../module/coredns/stats/_meta/fields.yml | 14 --------- 3 files changed, 1 insertion(+), 45 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 2618763cdeb..b14416b1151 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -2810,36 +2810,6 @@ type: long Cache misses count for the cache plugin --- - -*`coredns.stats.runtime.memory.alloc.bytes`*:: -+ --- -type: long - -Memory allocated bytes - - --- - -*`coredns.stats.runtime.process.threads.count`*:: -+ --- -type: long - -Running threads count - - --- - -*`coredns.stats.runtime.go.routines.count`*:: -+ --- -type: long - -Running Go routines count - - -- [[exported-fields-couchbase]] diff --git a/metricbeat/module/coredns/fields.go b/metricbeat/module/coredns/fields.go index ce4a8c7c60e..858927cc4b1 100644 --- a/metricbeat/module/coredns/fields.go +++ b/metricbeat/module/coredns/fields.go @@ -32,5 +32,5 @@ func init() { // AssetCoredns returns asset data. // This is the base64 encoded gzipped contents of ../metricbeat/module/coredns. func AssetCoredns() string { - return "eJzEl09P80YQxu/5FKOcoHpfV60qDpHaC0gtBygC7mWzO4m32DtmZxYUPn21/pME28SE7iv2FM3Gz/x2PPPY/g6PuFmAJo/G8QxArBS4gHkbmc8ADLL2thJLbgF/zACg+z9ckQkFzgA8FqgYF7BEUTOAlcXC8KL+83dwqsT9JHHJpsIFrD2Fqo2M5Inrob3uATQ5UdYxsCixLFYzSK4EXtAjeFQGVp7KOtHF9V2rsI+yjxNFeBsdAzoAFdf5CI7HQgkaEALJsSMBRv9sNe5d3i9Yt/q0+8SVclZnmoKTN/sde0Fu3ds4gF+vexJVgAvlEj3QqknBo9mN48zjU0CWH8HwFNBvYCg8lt4Er6Jc5jhbBv2Ikv00SkPLf1H3QZvgP5/mvW0ooKOA3LLQ2qsSGhgG68ApR4yanJku5/55OJQfLeyKfKlksQX53Dl4e/034FDGLugC/+sgSXtkhHXXtG32aTy2r5gtN4Jf2TZ39hWHLXMM+xEtMgH1DlM/wQRPyjv9DtEHfYHSdt31tsWiO1lsHze5esba3i/+hqUVYJxGiwxp4eA8qr3Fq9DDKzkE5UytPMo12OgoHnHzQt4cB/IXFYbrcjQWHqUiU4y0pz9QHa7IMWZek0lbn73qdFl69alzjqINdxJVqBbeFafBGkVYqdIWm3QM9zmCMsYjc6vdYYhXjivyAie/wO9weQMnlzfwjJ7js+2302/wax0+exM/Oz2dvqtf6rdw22Ic77hD/JSWO0512HOHRGlNd5zpfdeNL7To07Zno9mNhV0WGN9wJn0kznNakKgYtSEwmj7DzwfHtvIklJZmN58934CTeTDVHMjDXHQ13w3k8Af0OkornWOWW0nbSOdRFqJs0zvb4tX5oCrC2roJqNIyJ+7vBqsR/gjY4fr54MSWmJVYkt9kqihIN0OZCPeqFoZauP6aHIr3WSpPGpkzyeNncGJ3CM5Zt4ZW+4ArdDRryjwFsS61T7UkfxJ0+i3NfwEAAP//WMCHoQ==" + return "eJzElk9P4zoUxff9FEddwRPk6T09saj0ZgOLYTEMAvaDa982HhI7+Dqg8ulHzp82JKGhjEd4VV035/58e3yaUzzQZgFpHSnDM8Brn9EC86YynwGKWDpdeG3NAl9mANrv45tVZUYzwFFGgmmBJXkxA1aaMsWL6sunMCKnbpOw/KagBdbOlkVTGekT1n3z3D2kNV5ow2AvvGavJcOnwuOZHMGRUFg5m1eNLq5uG4UuShcniPC2Oga0Byqs8xEcR5nwpOAtfEotCZjck5bUebw/sHb1abvEhTBaJtKWxr/ab9kza9a9jT341bqzXmQwZb4kB7uqW/Bod2U4cfRYEvs/wfBYkttgKDzWXpVOBLnEcLIs5QP55K9RGrv8SbIPWhd/fJj3pqZAS4FUs7drJ3LUMAxtYISxTNIaNT3O7nm4zN872JV1ufCLLcjHzsHb50/AZR5c0BZ+6yBRPTLCujNt030aj/ULJcuNp8+0za1+oaFlDmE/wCITUG8w9RtM8MT8pd8gemcu2Liuu9paLKSTpubvJhVPVMX7xXcstQfTNFpgiAuH86D2Gq8ghxdrCMKoSnmUa7DRUjzQ5tk6dRjIV5sprsZRR3iQCkyh0px+z3S4sIYpcdKquPPpTKft0ptP1XMUbbgTaUKV8G44NdYowkrkOtvEY7hLCUIpR8yNdovhnTBcWOdx9A/+x+U1ji6v8USOw3/bf8cn+Lcqn72qnx0fT/+qn5q3uGkwDk/cIX7MyB2n2p+5Q6K4oTvO9HbqhhdacnHtWWu210IvMwpvOJM5Eu5zXJCgGLRRMqk+w997r23hrLdxaXb3s5cbOJqXqpjDOsy9LOa7Czn8gJ6jpJApJan2cY10HmQRZGvvbIdX9UORlWttJqByzRzZ3zVWLbwP7FcAAAD//wgUE84=" } diff --git a/metricbeat/module/coredns/stats/_meta/fields.yml b/metricbeat/module/coredns/stats/_meta/fields.yml index b4476e05c2e..1f7d1400937 100644 --- a/metricbeat/module/coredns/stats/_meta/fields.yml +++ b/metricbeat/module/coredns/stats/_meta/fields.yml @@ -98,17 +98,3 @@ type: long description: > Cache misses count for the cache plugin - - - - name: runtime.memory.alloc.bytes - type: long - description: > - Memory allocated bytes - - name: runtime.process.threads.count - type: long - description: > - Running threads count - - name: runtime.go.routines.count - type: long - description: > - Running Go routines count