https://github.com/YoannMa/scaleway_exporter
Prometheus exporter for Scaleway Elements metrics (LB, Database).
https://github.com/YoannMa/scaleway_exporter
prometheus prometheus-exporter scaleway
Last synced: 7 months ago
JSON representation
Prometheus exporter for Scaleway Elements metrics (LB, Database).
- Host: GitHub
- URL: https://github.com/YoannMa/scaleway_exporter
- Owner: YoannMa
- License: mit
- Created: 2020-10-03T23:21:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T20:06:21.000Z (about 2 years ago)
- Last Synced: 2024-11-10T01:51:29.585Z (7 months ago)
- Topics: prometheus, prometheus-exporter, scaleway
- Language: Go
- Homepage:
- Size: 101 KB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scaleway Exporter
Prometheus exporter for various metrics about your [Scaleway Elements](https://www.scaleway.com/en/elements/) loadbalancers and managed databases, written in Go.
## How to
```
$ export SCALEWAY_ACCESS_KEY=
$ export SCALEWAY_SECRET_KEY=
$ ./scaleway_exporter
level=info ts=2022-07-19T13:25:40.352520863Z caller=main.go:83 msg="Scaleway Region is set to ALL"
level=info ts=2022-07-19T13:25:40.352550422Z caller=main.go:89 msg="starting scaleway_exporter" version= revision= buildDate= goVersion=go1.18.3
level=info ts=2022-07-19T13:25:40.352691527Z caller=main.go:145 msg=listening addr=:9503
```By default, all the collectors are enabled (buckets, databases, loadbalancer, redis) over all Scaleway regions and zones.
If needed, you can disable certain collections by adding the `disable-bucket-collector`, `disable-database-collector`, `disable-redis-collector` or `disable-loadbalancer-collector` flags to the command line.
You can also limit the scraped region by setting the environment variable `SCALEWAY_REGION=fr-par` and the zone with the environment variable `SCALEWAY_ZONE=fr-par-1` for instance.## TODO
- [ ] Add more documentation
- [ ] Example prometheus rules
- [ ] Example grafana dashboard
- [ ] Proper CI
- [x] Cross Region metrics pulling
- [ ] More metrics ? (Container Registry size is available)
- [x] Ability to filter the kind of product (only database for example)
- [ ] Register a new default port as it's using one from [another Scaleway Exporter](https://github.com/promhippie/scw_exporter) ? (see [prometheus documentation](https://github.com/prometheus/prometheus/wiki/Default-port-allocations))## Acknowledgements
This exporter is **heavily** inspired by the one for [DigitalOcean](https://github.com/metalmatze/digitalocean_exporter)