Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stat split #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 34 additions & 14 deletions dns-metrics.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,26 @@
},
"required": [ "msg" ]
},
"queries_responses_obj": {
"oneOf": [
{
"type": "object",
"properties": {
"queries": {
"description": "The number of DNS queries",
"type": "integer"
},
"responses": {
"description": "The number of DNS responses",
"type": "integer"
}
}
},
{
"type": "integer"
}
]
},
"stats": {
"title": "DNS Metric Stats",
"description": "A stats object with the metrics around the DNS that was sent and received during the run",
Expand All @@ -110,29 +130,29 @@
"description": "The ending time for when the metrics of this object was gathered, in nanoseconds since 1970-01-01 00:00:00 UTC",
"type": "integer"
},
"queries": {
"description": "The number of DNS queries",
"type": "integer"
"sent": {
"$ref": "#/$defs/queries_responses_obj",
"description": "The number of DNS queries and/or responses sent"
},
"responses": {
"description": "The number of DNS responses",
"type": "integer"
"received": {
"$ref": "#/$defs/queries_responses_obj",
"description": "The number of DNS queries and/or responses received"
},
"timeouts": {
"description": "The number of DNS queries that timed out",
"type": "integer"
"$ref": "#/$defs/queries_responses_obj",
"description": "The number of DNS queries and/or responses that timed out"
},
"interrupted": {
"description": "The number of DNS queries and/or responses that was interrupted",
"type": "integer"
"$ref": "#/$defs/queries_responses_obj",
"description": "The number of DNS queries and/or responses that was interrupted"
},
"unexpected": {
"description": "The number of DNS queries and/or responses that was unexpected",
"type": "integer"
"$ref": "#/$defs/queries_responses_obj",
"description": "The number of DNS queries and/or responses that was unexpected"
},
"discarded": {
"description": "The number of DNS queries and/or responses that was discarded",
"type": "integer"
"$ref": "#/$defs/queries_responses_obj",
"description": "The number of DNS queries and/or responses that was discarded"
},
"response_rcodes": {
"description": "The number of different RCODEs as an object with the RCODE as a property",
Expand Down
9 changes: 7 additions & 2 deletions examples/stats_periodic.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
"type": "stats_periodic",
"since": 1675865567760972,
"until": 1675865568761088,
"queries": 28659,
"responses": 28651,
"sent": {
"queries": 28659
},
"received": {
"responses": 28651
},
"timeouts": 0,
"interrupted": 0,
"unexpected": 0,
"discarded": 0,
"response_rcodes": {
"NOERROR": 28651
},
Expand Down
3 changes: 3 additions & 0 deletions examples/stats_summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"timeouts": 0,
"interrupted": 0,
"unexpected": 0,
"discarded": {
"queries": 100
},
"response_rcodes": {
"NOERROR": 28651
},
Expand Down