Sign inSign up

metalmatze/digitalocean_exporter

By metalmatze

Updated almost 6 years ago

Prometheus exporter for DigitalOcean metrics, written in Go.

Image
0

1M+

metalmatze/digitalocean_exporter repository overview

DigitalOcean Exporter Build Status

Docker PullsGo Report Card

Prometheus exporter for various metrics about your DigitalOcean droplets, volumes, snapshots & networks and much more, written in Go.

Installation
go get -u github.com/metalmatze/digitalocean_exporter
Configuration

WEB_PATH - Path for metrics, default: /metrics WEB_ADDR - Address for this exporter to run, default: :9211 DIGITALOCEAN_TOKEN - Token for API access

You can get an API token at: https://cloud.digitalocean.com/settings/api/tokens
Read-only tokens are sufficient.

Docker
docker pull metalmatze/digitalocean_exporter
docker run --rm -p 9211:9211 -e DIGITALOCEAN_TOKEN=XXX metalmatze/digitalocean_exporter

Example docker-compose.yml with Transmission also running in docker.

digitalocean_exporter:
    image: metalmatze/digitalocean_exporter
    environment:
    - '-do.token=XXX'
    restart: always
    ports:
    - "127.0.0.1:9211:9211"
Development
make

For development we encourage you to use make install instead, it's faster.

Now simply copy the .env.example to .env, like cp .env.example .env and set your preferences. Now you're good to go.

Tag summary

Content type

Image

Digest

Size

7.8 MB

Last updated

almost 6 years ago

docker pull metalmatze/digitalocean_exporter:0.6