Skip to content

Commit

Permalink
Add in final comparison stats with 'zero' values (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-weinberg authored Mar 20, 2024
1 parent 6f8935d commit 737e05f
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 2 deletions.
66 changes: 66 additions & 0 deletions scripts/queries/netobserv_touchstone_tolerancy_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,39 @@
]
}
},
{
"filter": {
"metric_name.keyword": "nFlowsErroredTotals"
},
"buckets": [
"metric_name.keyword"
],
"aggregations": {
"value": [
"max"
]
}
},
{
"filter": {
"metric_name.keyword": "nFlowsErroredPerMinuteTotals"
},
"buckets": [
"metric_name.keyword"
],
"aggregations": {
"value": [
{
"percentiles": {
"percents": [
90
]
}
},
"avg"
]
}
},
{
"filter": {
"metric_name.keyword": "lokiRecordsWritten"
Expand Down Expand Up @@ -170,6 +203,39 @@
]
}
},
{
"filter": {
"metric_name.keyword": "lokiRecordsDropped"
},
"buckets": [
"metric_name.keyword"
],
"aggregations": {
"value": [
"max"
]
}
},
{
"filter": {
"metric_name.keyword": "lokiRecordsDroppedPerMinute"
},
"buckets": [
"metric_name.keyword"
],
"aggregations": {
"value": [
{
"percentiles": {
"percents": [
90
]
}
},
"avg"
]
}
},
{
"filter": {
"metric_name.keyword": "cpuFLPTotals"
Expand Down
16 changes: 14 additions & 2 deletions scripts/queries/netobserv_touchstone_tolerancy_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@
- json_path: ["metric_name", "nFlowsProcessedPerMinuteTotals", "metric_name", "*", "avg(value)"]
tolerancy: -10
max_failures: 0
- json_path: ["metric_name", "nFlowsErroredTotals", "metric_name", "*", "max(value)"]
tolerancy: -1
max_failures: 0
- json_path: ["metric_name", "nFlowsErroredPerMinuteTotals", "metric_name", "*", "avg(value)"]
tolerancy: -1
max_failures: 0
- json_path: ["metric_name", "lokiRecordsWritten", "metric_name", "*", "max(value)"]
tolerancy: 2
tolerancy: -10
max_failures: 0
- json_path: ["metric_name", "lokiRecordsWrittenPerMinute", "metric_name", "*", "avg(value)"]
tolerancy: 2
tolerancy: -10
max_failures: 0
- json_path: ["metric_name", "lokiRecordsDropped", "metric_name", "*", "max(value)"]
tolerancy: -1
max_failures: 0
- json_path: ["metric_name", "lokiRecordsDroppedPerMinute", "metric_name", "*", "avg(value)"]
tolerancy: -1
max_failures: 0
# CPU totals
- json_path: ["metric_name", "cpuFLPTotals", "metric_name", "*", "avg(value)"]
Expand Down

0 comments on commit 737e05f

Please sign in to comment.