Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pokgak/k8s-image-pull-metrics
https://github.com/pokgak/k8s-image-pull-metrics
k8s metrics opentelemetry
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pokgak/k8s-image-pull-metrics
- Owner: pokgak
- Created: 2024-12-21T08:29:54.000Z (20 days ago)
- Default Branch: main
- Last Pushed: 2024-12-21T08:44:00.000Z (20 days ago)
- Last Synced: 2024-12-21T09:25:16.936Z (20 days ago)
- Topics: k8s, metrics, opentelemetry
- Language: Go
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
k8s-image-pull-metrics listens to k8s event produced by Pods from all namespaces and parses the event message for the time taken for pods to pull image from registry. The values are then pushed as OpenTelemetry Metrics to the metrics backend of your choice.
## Building
```
$ export REGISTRY=""
$ export TAG=$(git rev-parse --short HEAD)
$ docker buildx build --push
```## Deploy
```
kubectl apply -f k8s/
```### Specifying where to send metrics
Use the env `OTEL_EXPORTER_OTLP_ENDPOINT` to specify where to send the metrics to.
## Exposed Metrics
name (unit)
- `k8s_image_pull_duration` (ms)
- `k8s_image_pull_wait_only_duration` (ms)
- `k8s_image_size` (bytes)