https://github.com/snapp-incubator/event-exporter
An exporter which provides k8s events.
https://github.com/snapp-incubator/event-exporter
golang kubernetes metrics monitoring observability oss prometheus prometheus-exporter snappcloud
Last synced: 9 months ago
JSON representation
An exporter which provides k8s events.
- Host: GitHub
- URL: https://github.com/snapp-incubator/event-exporter
- Owner: snapp-incubator
- License: apache-2.0
- Created: 2021-06-29T13:16:57.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T23:31:54.000Z (about 1 year ago)
- Last Synced: 2025-07-15T17:31:48.603Z (11 months ago)
- Topics: golang, kubernetes, metrics, monitoring, observability, oss, prometheus, prometheus-exporter, snappcloud
- Language: Go
- Homepage:
- Size: 683 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Event Exporter
A Prometheus exporter for exporting k8s events.
## Build
### Docker
```bash
docker build -t event-exporter .
```
### Binary
```bash
git clone https://github.com/snapp-incubator/event-exporter.git
cd event-exporter
go build
```
## Installation
### Docker
```bash
docker run -p 8090:8090 ghcr.io/snapp-incubator/event-exporter:main
```
### Helm chart
1. Add the Event Exporter Helm Repository:
```bash
helm repo add snapp-cab https://snapp-cab.github.io/event-exporter/charts
helm repo update
```
2. Install with:
```bash
helm install event-exporter snapp-cab/event-exporter
```
### Binary releases
```bash
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 | Labels |
| :-----------------: | :------------------ | :------------------------------------------------- |
| `event_normal_k8s` | Normal k8s events. | `kind`, `namespace`, `reason`, `source_components` |
| `event_warning_k8s` | Warning k8s events. | `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 cloud@snapp.cab.
Security reports are greatly appreciated, and we will publicly thank you for it.
## License
Apache-2.0 License, see [LICENSE](LICENSE).