my-metrics

command module
v0.0.0-...-0b83df6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: BlueOak-1.0.0 Imports: 11 Imported by: 0

README

A custom metric provider for Drone that exposes additional system metrics. Please note this project requires Drone server version 1.4 or higher.

Installation

Create a bearer token:

$ openssl rand -hex 16
bea26a2221fd8090ea38720fc445eca6

Download and run the provider:

$ docker run -d \
  --publish=3000:3000 \
  --env=DRONE_DEBUG=true \
  --env=DRONE_TOKEN=bea26a2221fd8090ea38720fc445eca6 \
  --env=DRONE_DATABASE_DRIVER=postgres \
  --env=DRONE_DATABASE_DATASOURCE=postgres://... \
  --restart=always \
  --name=metrics brian-metrics 

Configure Prometheus:

global:
    scrape_interval: 60m

    scrape_configs:
    - job_name: 'custom_drone_metrics'
        bearer_token: bea26a2221fd8090ea38720fc445eca6

        static_configs:
        - targets: ['domain.com:3000']

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL