jsonnet: align alert annotations with best practices

Signed-off-by: paulfantom <pawel@krupa.net.pl>
This commit is contained in:
paulfantom
2021-07-20 10:53:49 +02:00
parent 274eba0108
commit 8c357c6bde
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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',
}, },
], ],
}, },