Question:
Which of the following is the correct syntax for defining a custom label in an alerting rule?
...
alert: HighCPUUsage
expr: 100 * (1 - rate(node_cpu{mode="idle"}[5m])) > 80
labels:
severity: warning
...
...
alert: HighCPUUsage
expr: 100 * (1 - rate(node_cpu{mode="idle"}[5m])) > 80
annotations:
severity: warning
...
...
alert: HighCPUUsage
expr: 100 * (1 - rate(node_cpu{mode="idle"}[5m])) > 80
label:
severity: warning
...
...
alert: HighCPUUsage
expr: 100 * (1 - rate(node_cpu{mode="idle"}[5m])) > 80
annotation:
severity: warning
...