You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up #2002, #2457 added some support for ECS but some improvements can be done:
Should we consider a "reconciliation loop" as an event?
event.sequence looks like our iteration field (number of times a controller has run its Reconcile method)
event.duration looks like our current took
event.type could be [ change| creation | deletion ]
event.dataset could help to separate the logs from the different controller (elasticsearch-controller, kibana-controller...)
The presence of some fields is inconsistent
It is worth to note that it is not easy to be consistent re. the key/values added to the log.
The most problematic case is when an error is managed by the controller itself(i.e. not by our code) :
In the above example if a user is filtering on namespace: "namespace1" and kibana_name: "kb-apm-sample" then the error will not be displayed.
We could propose to the controller-runtime project to replace "request": "namespace1/kb-apm-sample" by something like:
(we would still have a problem with the "name" field but this could be revisited in our code)
Or add a processor or our own encoder to transform the output.
We also have some inconsistencies in our code, mostly in the "common" packages, for example when a certificate is generated:
Following up #2002, #2457 added some support for ECS but some improvements can be done:
event.sequence
looks like ouriteration
field (number of times a controller has run its Reconcile method)event.duration
looks like our currenttook
event.type
could be [change
|creation
|deletion
]event.dataset
could help to separate the logs from the different controller (elasticsearch-controller, kibana-controller...)It is worth to note that it is not easy to be consistent re. the key/values added to the log.
The most problematic case is when an error is managed by the
controller
itself (i.e. not by our code) :This would produce:
In the above example if a user is filtering on
namespace: "namespace1" and kibana_name: "kb-apm-sample"
then the error will not be displayed.We could propose to the controller-runtime project to replace
"request": "namespace1/kb-apm-sample"
by something like:(we would still have a problem with the "name" field but this could be revisited in our code)
Or add a processor or our own encoder to transform the output.
We also have some inconsistencies in our code, mostly in the "common" packages, for example when a certificate is generated:
cloud-on-k8s/pkg/controller/common/certificates/http/reconcile.go
Line 145 in b1355ce
I think it would be nice to add a reference to the owner in order to link this log to the parent resource.
The text was updated successfully, but these errors were encountered: