mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-10-28 06:31:32 +01:00
add available_ip rule
This commit is contained in:
parent
d4ba158f9b
commit
a3ab6bd49b
@ -42,4 +42,17 @@ local servicePort = k.core.v1.service.mixin.spec.portsType;
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
prometheusRules+: {
|
||||||
|
groups+: [
|
||||||
|
{
|
||||||
|
name: 'kube-prometheus-eks.rules',
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
expr: 'sum by(instance) (awscni_total_ip_addresses) - sum by(instance) (awscni_assigned_ip_addresses) < 10',
|
||||||
|
record: 'eks_available_ip'
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user