Public Repository

Last pushed: 5 months ago
Short Description
Prometheus exporter for DigitalOcean metrics, written in Go.
Full Description

DigitalOcean Exporter

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.

Docker Pull Command
Owner
metalmatze

Comments (0)