tdelmas / scaleway_exporter

Prometheus exporter for Scaleway Elements metrics (LB, Database).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scaleway Exporter

Prometheus exporter for various metrics about your Scaleway Elements loadbalancers and managed databases, written in Go.

How to

$ export SCALEWAY_ACCESS_KEY=<access key goes here>
$ export SCALEWAY_SECRET_KEY=<secret key goes here>
$ ./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) over all Scaleway regions. If needed, you can disable certain collections by adding the disable-bucket-collector, disable-database-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 for instance.

TODO

  • Add more documentation
  • Example prometheus rules
  • Example grafana dashboard
  • Proper CI
  • Cross Region metrics pulling
  • More metrics ? (Container Registry size is available)
  • 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 ? (see prometheus documentation)

Acknowledgements

This exporter is heavily inspired by the one for DigitalOcean

About

Prometheus exporter for Scaleway Elements metrics (LB, Database).

License:MIT License


Languages

Language:Go 94.0%Language:Dockerfile 3.7%Language:Makefile 2.3%