Kong / kubernetes-ingress-controller

:gorilla: Kong for Kubernetes: The official Ingress Controller for Kubernetes.
https://docs.konghq.com/kubernetes-ingress-controller/
Apache License 2.0
2.16k stars 592 forks source link

Improve observability around config sync #6191

Open lahabana opened 3 weeks ago

lahabana commented 3 weeks ago

Is there an existing issue for this?

Does this enhancement require public documentation?

Problem Statement

There are metrics to see how long sync takes: https://docs.konghq.com/kubernetes-ingress-controller/latest/production/observability/prometheus/#ingress_controller_configuration_push_duration_milliseconds

A user is suggesting adding this to logs.

https://github.com/Kong/kubernetes-ingress-controller/blob/95af584ab560822a40ee6a1dd66a2005f9663e71/internal/dataplane/sendconfig/sendconfig.go#L104

Is this something we want to do?

Proposed Solution

No response

Additional information

No response

Acceptance Criteria

mheap commented 3 weeks ago

The request is a little more involved. They'd like timings for each phase e.g.

lahabana commented 1 week ago

This looks a lot like tracing to me but tracing without an originator is a little unusual.

lahabana commented 1 week ago

Let's go for logs as a first step we can always improve later