Categorygithub.com/BrianU/my-metrics
modulepackage
0.0.0-20200414082256-0b83df696968
Repository: https://github.com/brianu/my-metrics.git
Documentation: pkg.go.dev

# 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']

# Packages

No description provided by the author
No description provided by the author