maksim-paskal / aks-node-termination-handler

Gracefully handle Azure Virtual Machines shutdown within Kubernetes
Apache License 2.0
34 stars 6 forks source link

dublicated metrics in aks_node_termination_handler_scheduled_events_total #51

Closed maksim-paskal closed 1 year ago

maksim-paskal commented 1 year ago

dublicated Prometheus metric

aks_node_termination_handler_scheduled_events_total{type="Freeze"} 100

logs

{"level":"info","msg":"Excluded event Freeze by user config","time":"2023-06-30T21:47:28Z"}
{"level":"info","msg":"{\"DocumentIncarnation\":7,\"Events\":[{\"EventId\":\"FE88BA46-96D4-432E-8AED-89A0F0E52D99\",\"EventStatus\":\"Scheduled\",\"EventType\":\"Freeze\",\"ResourceType\":\"VirtualMachine\",\"Resources\":[\"aks-spotcpu2m8-23666972-vmss_862\"],\"NotBefore\":\"Fri, 30 Jun 2023 22:00:16 GMT\",\"Description\":\"\",\"EventSource\":\"Platform\",\"DurationInSeconds\":30}]}","time":"2023-06-30T21:47:33Z"}
{"level":"info","msg":"Excluded event Freeze by user config","time":"2023-06-30T21:47:33Z"}
{"level":"info","msg":"{\"DocumentIncarnation\":7,\"Events\":[{\"EventId\":\"FE88BA46-96D4-432E-8AED-89A0F0E52D99\",\"EventStatus\":\"Scheduled\",\"EventType\":\"Freeze\",\"ResourceType\":\"VirtualMachine\",\"Resources\":[\"aks-spotcpu2m8-23666972-vmss_862\"],\"NotBefore\":\"Fri, 30 Jun 2023 22:00:16 GMT\",\"Description\":\"\",\"EventSource\":\"Platform\",\"DurationInSeconds\":30}]}","time":"2023-06-30T21:47:38Z"}
{"level":"info","msg":"Excluded event Freeze by user config","time":"2023-06-30T21:47:38Z"}
{"level":"info","msg":"{\"DocumentIncarnation\":7,\"Events\":[{\"EventId\":\"FE88BA46-96D4-432E-8AED-89A0F0E52D99\",\"EventStatus\":\"Scheduled\",\"EventType\":\"Freeze\",\"ResourceType\":\"VirtualMachine\",\"Resources\":[\"aks-spotcpu2m8-23666972-vmss_862\"],\"NotBefore\":\"Fri, 30 Jun 2023 22:00:16 GMT\",\"Description\":\"\",\"EventSource\":\"Platform\",\"DurationInSeconds\":30}]}","time":"2023-06-30T21:47:43Z"}