Grafana grok example influxdb lt threshold
(Redirected from Grafana grok example)
Jump to navigation
Jump to search
resource "grafana_rule_group" "example_rule_group" { org_id = 1 name = "Every minute" folder_uid = "example-folder-uid" interval_seconds = 60 rule { name = "Resource Usage Below Threshold" condition = "A" no_data_state = "OK" exec_err_state = "Error" annotations = {} labels = {} is_paused = false data { ref_id = "A" datasource_uid = "example-datasource-uid" model = jsonencode({ datasource = { type = "influxdb", uid = "example-datasource-uid" } measurement = "telemetry.metric" select = [[{ params = ["usage_value"], type = "field" }]] groupBy = [] orderByTime = "ASC" policy = "default" resultFormat = "time_series" intervalMs = 1000 maxDataPoints = 43200 conditions = [ { evaluator = { params = [30000], type = "lt" } operator = { type = "and" } query = { params = ["A"] } reducer = { type = "last" } type = "query" } ] }) relative_time_range { from = 86400 to = 0 } } }
See also[edit]
Advertising: