Skip to content

An intergration that watches for Kubernetes deployment events and sends them to Logz.io

License

Notifications You must be signed in to change notification settings

logzio/logzio-k8s-events

Repository files navigation

Logz.io Kubernetes Events

The logzio-k8s-events integration was made to send data about deployment events in the cluster, and how they affect the resources in the cluster.

It uses the Kubernetes informer official SDK to watch for deployment events in the cluster. The events are getting parsed and enriched using Kubernetes SDK to correlate them with resources that are being effected by the deployment. They are then sent to Logz.io using Logz.io GoLang SDK.

Currently supported resource kinds are Deployment, Daemonset, Statefulset, ConfigMap, Secret, Service Account, Cluster Role & Cluster Role Binding.

It can be deployed using the logzio-k8s-events Helm chart.

Tests

Each package has test files that are relevant to each functionality, running tests can be done using the following command:

go test .

The tests.yml workflow runs when opening a pull request to validate the tests passes.

Architecture

Architecture

Change log

  • 0.0.4:
    • Upgrade github.com/logzio/logzio-go to v1.0.9
    • Upgrade GoLang version to v1.23.0
    • Upgrade GoLang docker image to golang:1.23.0-alpine3.20
  • 0.0.3:
    • Upgrade GoLang version to v1.22.3
    • Upgrade docker image to alpine:3.20
    • Upgrade GoLang docker image to golang:1.22.3-alpine3.20
  • 0.0.2:
    • Ignore internal event changes.
  • 0.0.1:
    • Initial release.

About

An intergration that watches for Kubernetes deployment events and sends them to Logz.io

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •