Skip to content

Commit

Permalink
Add testdata for stats metricset of coredns
Browse files Browse the repository at this point in the history
Signed-off-by: Chris <[email protected]>
Signed-off-by: Chris Mark <[email protected]>
  • Loading branch information
ChrsMark committed Mar 21, 2019
1 parent e531d10 commit 074a441
Show file tree
Hide file tree
Showing 32 changed files with 813 additions and 607 deletions.
6 changes: 6 additions & 0 deletions metricbeat/docs/modules/coredns/stats.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ include::../../../module/coredns/stats/_meta/docs.asciidoc[]
For a description of each field in the metricset, see the
<<exported-fields-coredns,exported fields>> section.

Here is an example document generated by this metricset:

[source,json]
----
include::../../../module/coredns/stats/_meta/data.json[]
----
74 changes: 74 additions & 0 deletions metricbeat/module/coredns/stats/_meta/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"@timestamp": "2019-03-01T08:05:34.853Z",
"coredns": {
"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
}
}
}
},
"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"
}
}
28 changes: 0 additions & 28 deletions metricbeat/module/coredns/stats/_meta/data_panic_event.json

This file was deleted.

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions metricbeat/module/coredns/stats/_meta/data_request_type_event.json

This file was deleted.

This file was deleted.

78 changes: 0 additions & 78 deletions metricbeat/module/coredns/stats/_meta/data_size_bytes_event.json

This file was deleted.

Loading

0 comments on commit 074a441

Please sign in to comment.