jsonnet: align alert annotations with best practices
Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
{
|
{
|
||||||
alert: 'NodeNetworkInterfaceFlapping',
|
alert: 'NodeNetworkInterfaceFlapping',
|
||||||
annotations: {
|
annotations: {
|
||||||
message: 'Network interface "{{ $labels.device }}" changing it\'s up status often on node-exporter {{ $labels.namespace }}/{{ $labels.pod }}',
|
summary: "Network interface is often changin it's status",
|
||||||
|
description: 'Network interface "{{ $labels.device }}" changing it\'s up status often on node-exporter {{ $labels.namespace }}/{{ $labels.pod }}',
|
||||||
},
|
},
|
||||||
expr: |||
|
expr: |||
|
||||||
changes(node_network_up{%(nodeExporterSelector)s,%(hostNetworkInterfaceSelector)s}[2m]) > 2
|
changes(node_network_up{%(nodeExporterSelector)s,%(hostNetworkInterfaceSelector)s}[2m]) > 2
|
||||||
|
|||||||
@@ -97,10 +97,11 @@
|
|||||||
severity: 'critical',
|
severity: 'critical',
|
||||||
},
|
},
|
||||||
annotations: {
|
annotations: {
|
||||||
message: 'Instance {{ $labels.instance }} has less than 10 IPs available.',
|
summary: 'EKS CNI is running low on available IPs',
|
||||||
|
description: 'Instance {{ $labels.instance }} has only {{ $value }} IPs available which is lower than set threshold of %s' % $.values.eks.minimumAvailableIPs,
|
||||||
},
|
},
|
||||||
'for': $.values.eks.minimumAvailableIPsTime,
|
'for': $.values.eks.minimumAvailableIPsTime,
|
||||||
alert: 'EksAvailableIPs',
|
alert: 'EksCNILowAvailableIPs',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user