Skip to content

snapp-incubator/event-exporter

Repository files navigation

Event Exporter

A prometheus exporter for exporting k8s events.

Build

Docker

docker build -t event-exporter .

Binary

git clone --depth 1 https://github.com/snapp-cab/event-exporter.git
cd event-exporter
go build

Installation

Docker

sudo docker run -p 8080:8080 docker.pkg.github.com/snapp-cab/event-exporter/image:latest

Helm chart

  • Prerequisites
    • Helm 3.0+ (Helm 2 is not supported)
    • Kubernetes 1.10+ - This is the earliest version of Kubernetes tested. It is possible that this chart works with earlier versions but it is untested.
  1. Add the HashiCorp Helm Repository:
helm repo add snapp-cab https://snapp-cab.github.io/event-exporter/charts
helm repo update
  1. Install with:
helm install event-exporter snapp-cab/event-exporter

Binary releases

export VERSION=1.0.0
wget https://github.com/cafebazaar/event-exporter/releases/download/v${VERSION}/event-exporter-${VERSION}.linux-amd64.tar.gz
tar xvzf event-exporter-${VERSION}.linux-amd64.tar.gz event-exporter-${VERSION}.linux-amd64/event-exporter

Metrics and events

Metric Notes
event_normal_k8s Normal k8s events. Labels: kind, namespace, reason, source_components
event_warning_k8s Warning k8s events. Labels: kind, namespace, reason, source_components

Event reasons

Kind Reason
Pod (Normal) Scheduled, Pulling, Pulled, Created, Started
Pod (Warning) BackOff, Unhealthy, FailedMount
ReplicationController SuccessfulCreate
DeploymentConfig DeploymentCreated
DaemonSet FailedCreate
StatefulSet FailedCreate
HorizontalPodAutoscaler FailedGetResourceMetric
Node Rebooted, NodeNotReady, HostPortConflict

Security

Reporting security vulnerabilities

If you find a security vulnerability or any security related issues, please DO NOT file a public issue, instead send your report privately to [email protected]. Security reports are greatly appreciated and we will publicly thank you for it.

License

Apache-2.0 License, see LICENSE.