Skip to content

Add steady-state tolerance probes for better functionality #13

Description

@shyimo

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions