Hi guys,
At the moment it seems that we are pretty limited when query prometheus on steady-state.
we are using jsonpath tolerance type in order to verify our promQL result.
for example:
{
"type": "probe",
"name": "prometheus steady state consumer rate query - 1 min ago",
"tolerance": {
"expect": "1",
"type": "jsonpath",
"path": "$.data.result[0].value[1]"
},
"provider": {
"type": "python",
"module": "chaosprometheus.probes",
"func": "query",
"arguments": {
"query": "${prometheus_ts_consumer_rate_query}",
"when": "1 minutes ago"
}
}
}
this type of query can only be boolean and we need a way to do more in depth verification on the results. for example:
- checks if the Prometheus results are below a given threshold
- checks if Prometheus results are higher than a given threshold
this features will able prometheus probes to be much more flexible :)
Hi guys,
At the moment it seems that we are pretty limited when query prometheus on steady-state.
we are using
jsonpathtolerance type in order to verify our promQL result.for example:
this type of query can only be boolean and we need a way to do more in depth verification on the results. for example:
this features will able prometheus probes to be much more flexible :)