Update indicators.yml.erb
Updates the Indicator Document to apiVersion indicatorprotocol.io/v1. This makes the document Kubernetes-compatible, and ensures the document will be usable in the 1.0.0 release of Indicator Protocol, as v0 is deprecated.
(We missed this one in the previous PR)
---
-apiVersion: v0
+apiVersion: indicatorprotocol.io/v1
+kind: IndicatorDocument
+metadata:
+ labels:
+ deployment: <%= spec.deployment %>
+
+spec:
product:
name: loggregator
version: latest
-metadata:
- deployment: <%= spec.deployment %>
-
indicators:
- name: log_loss_rate_ksi
promql: 100*rate(dropped{source_id="doppler",direction="ingress"}[5m]) / ignoring(direction) rate(ingress{source_id="doppler"}[5m])
thresholds:
- level: warning
- gte: 0.5
+ operator: gte
+ value: 0.5
- level: critical
- gte: 1
+ operator: gte
+ value: 1
documentation:
title: Log Transport Loss Rate
description: |
@@ -37,7 +42,8 @@ indicators:
promql: rate(ingress{source_id="doppler"}[5m])
thresholds:
- level: warning
- gte: 16000
+ operator: gte
+ value: 16000
documentation:
title: Doppler Message Rate Capacity
description: |
@@ -52,9 +58,11 @@ indicators:
promql: 100*rate(dropped{source_id="reverse_log_proxy"}[5m]) / ignoring(direction,protocol) rate(ingress{source_id="reverse_log_proxy"}[5m])
thresholds:
- level: warning
- gte: 1
+ operator: gte
+ value: 1
- level: critical
- gte: 10
+ operator: gte
+ value: 10
documentation:
title: Reverse Log Proxy Loss Rate
description: |
