Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smoya/k8s-prometheus-file-exporter
A Prometheus exporter for K8s that serves metrics from a plain text file
https://github.com/smoya/k8s-prometheus-file-exporter
k8s kubernetes prometheus prometheus-exporter
Last synced: 7 days ago
JSON representation
A Prometheus exporter for K8s that serves metrics from a plain text file
- Host: GitHub
- URL: https://github.com/smoya/k8s-prometheus-file-exporter
- Owner: smoya
- Created: 2019-07-09T17:39:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T17:59:25.000Z (over 5 years ago)
- Last Synced: 2024-11-09T15:08:46.936Z (about 2 months ago)
- Topics: k8s, kubernetes, prometheus, prometheus-exporter
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k8s-prometheus-file-exporter
A Prometheus exporter for K8s that serves metrics from a plain text file## Usage
1. Create your own metrics file following Prometheus [text format](https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md#text-format-example).
2. Upload it to any cloud storage (it could be a Github Gist).
3. Set the `METRICS_FILE_URL` env var value located in [deploy/deployment.yaml](deploy/deployment.yaml) to the URL of the recently uploaded file.Then run:
```bash
kubectl apply -f deploy
```## FAQ
### Why not using a Kubernetes ConfigMap?
The reason for not using a config map is that it has a limitation of up to 1MB.