https://github.com/topi314/prometheus-exporters
Collection of random Prometheus Exporters
https://github.com/topi314/prometheus-exporters
exporters golang grafana hacktoberfest metrics prometheus prometheus-exporter temperature
Last synced: 7 months ago
JSON representation
Collection of random Prometheus Exporters
- Host: GitHub
- URL: https://github.com/topi314/prometheus-exporters
- Owner: topi314
- License: apache-2.0
- Created: 2024-10-05T22:19:53.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-20T19:49:14.000Z (11 months ago)
- Last Synced: 2025-03-10T18:19:20.781Z (7 months ago)
- Topics: exporters, golang, grafana, hacktoberfest, metrics, prometheus, prometheus-exporter, temperature
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/topi314/prometheus-exporters)
[](https://golang.org/doc/devel/release.html)
[](LICENSE)
[](https://github.com/topi314/prometheus-exporters/releases/latest)
[](https://github.com/topi314/prometheus-exporters/actions/workflows/build.yml)
[](https://discord.gg/sD3ABd5)# prometheus-exporters
This repository contains a collection of random Prometheus exporters I use.
## Installation
You can either run the exporters directly or use the provided Docker image.
### Docker-Compose
```yaml
services:
http-exporter:
image: ghcr.io/topi314/http-exporter:master
container_name: http-exporter
restart: unless-stopped
volumes:
- ./config.toml:/var/lib/http-exporter/config.toml
ports:
- "2112:2112"
```## Configuration
The exporters are configured via a TOML file. The default path is `/var/lib/http-exporter/config.toml` but you can change it with the `--config` flag.
```toml
[global]
scrape_interval = "1m"
scrape_timeout = "10s"[log]
level = "info"
format = "text"
add_source = false[server]
listen_addr = ":2112"
endpoint = "/metrics"# Add your exporter configurations here
# [[configs]]
# name = "Bla"
# type = "http-temp"
# interval = "1m"
# timeout = "10s"
# [configs.options]
```## Exporters
### HTTP Temperature Exporter
This exporter reads temperature data from a HTTP endpoint and exposes it as a Prometheus gauge metric.
#### Configuration
```toml
[[configs]]
name = "Bla"
type = "http-temp"
interval = "1m"
timeout = "10s"[configs.options]
# The metric name, help text and labels
metric = { name = "bla_temp", help = "Temperature in celsius", labels = { name = "bla" } }# The HTTP endpoint to fetch the data from
address = "hostname:port"
insecure = true
username = "user"
password = "password"
```## License
Shelly Exporter is licensed under the [Apache License 2.0](LICENSE).
## Contributing
Contributions are always welcome! Just open a pull request or discussion and I will take a look at it.
## Contact
- [Discord](https://discord.gg/sD3ABd5)
- [Twitter](https://twitter.com/topi3141)
- [Email](mailto:hi@topi.wtf)