File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -887,11 +887,33 @@ var KSMSpecs = definition.SpecGroups{
887887 ValueFunc : prometheus .FromValue ("kube_endpoint_address_not_ready" ),
888888 Type : sdkMetric .GAUGE ,
889889 },
890+ {
891+ Name : "addressNotReady" ,
892+ ValueFunc : prometheus .FromValueWithLabelsFilter (
893+ "kube_endpoint_address" ,
894+ "addressNotReady" ,
895+ prometheus .IncludeOnlyWhenLabelMatchFilter (map [string ]string {
896+ "ready" : "false" ,
897+ }),
898+ ),
899+ Type : sdkMetric .GAUGE ,
900+ },
890901 {
891902 Name : "addressAvailable" ,
892903 ValueFunc : prometheus .FromValue ("kube_endpoint_address_available" ),
893904 Type : sdkMetric .GAUGE ,
894905 },
906+ {
907+ Name : "addressAvailable" ,
908+ ValueFunc : prometheus .FromValueWithLabelsFilter (
909+ "kube_endpoint_address" ,
910+ "addressAvailable" ,
911+ prometheus .IncludeOnlyWhenLabelMatchFilter (map [string ]string {
912+ "ready" : "true" ,
913+ }),
914+ ),
915+ Type : sdkMetric .GAUGE ,
916+ },
895917 },
896918 },
897919 // We get Pod metrics from kube-state-metrics for those pods that are in
You can’t perform that action at this time.
0 commit comments