Skip to content
Snippets Groups Projects
Commit 8e6914de authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Adds 'spread' and 'stddev' InfluxQL function as allowed functions in the alerts specification

parent 590056f1
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ SFEMC = "flame_sfemc" # describes the keyword used for the SFEMC alert handler
# Influx QL functions defined in the documentation https://docs.influxdata.com/influxdb/v1.6/query_language/functions/
INFLUX_QL_FUNCTIONS = (
"count", "mean", "median", "mode", "sum", "first", "last", "max", "min"
"count", "mean", "median", "mode", "sum", "first", "last", "max", "min", "spread", "stddev"
)
# Kapacitor Tick Script template IDs
......
......@@ -40,7 +40,7 @@ topology_template:
condition:
threshold: 5
granularity: 60
aggregation_method: first
aggregation_method: spread
resource_type:
flame_sfp: storage
flame_sf: storage-users
......
......@@ -41,7 +41,7 @@ topology_template:
condition:
threshold: 5
granularity: 60
aggregation_method: first
aggregation_method: stddev
# resource type missing - optional, so it is valid
comparison_operator: lte
action:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment