Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support for fractional second #183

Open
LHozzan opened this issue May 21, 2024 · 0 comments
Open

feat: Support for fractional second #183

LHozzan opened this issue May 21, 2024 · 0 comments

Comments

@LHozzan
Copy link

LHozzan commented May 21, 2024

Hi there.

We have a big cluster (over 20 nodes) and when some changes is apply by the automation, many events occurring in very short time and it is hard to decide, which was origin order, because the exporter support only second precision.

This is example from my small test cluster:
Example
Here you can see 6 events, which occurred in same seconds, but I am not sure, that in this order.

In payload (in the field @timestamp) I really not see more, like seconds precision:

{
  "_index": "kube-events-2024.05.21",
  "_id": "ND0Lmo8B-_TuvUTcn6BT",
  "_version": 1,
  "_score": null,
  "_source": {
    "@timestamp": "2024-05-21T07:26:44.000Z",
    "source": "",
    "component": "kustomize-controller",
    "count": "1",
    "kind": "Kustomization",
    "labels": "{\"kustomize_toolkit_fluxcd_io/name\":\"bootstrap\",\"kustomize_toolkit_fluxcd_io/namespace\":\"cs-bootstrap\"}",
    "message": "Reconciliation finished in 311.72836ms, next run in 30m0s",
    "name": "firewall",
    "namespace": "cs-bootstrap",
    "reason": "ReconciliationSucceeded",
    "type": "Normal"
  },
  "fields": {
    "@timestamp": [
      "2024-05-21T07:26:44.000Z"
    ]
  },
  "sort": [
    1716276404000
  ]
}

In bigger clusters in some hot situation events can occurring hundred of kubernetes events in very short time, which can be missordered due to only seconds precision (setting .GetTimestampISO8601).

I would like to kindly ask you to expand the exporter and support full precision. So, field @timestamp should looks like 2024-05-21T07:39:59.348738261Z (for example, setting can be GetTimestampISO8601_ns or something like this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant