dadata-exporter

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 9 Imported by: 0

README

Dadata exporter

Build Status Coverage Status Go Report Card

Get account statistics for dadata service API and expose it in prometheus format.

Configuration

Exporter configurates via environment variables:

Env var Description
DADATA_TOKEN Authorization token for access to Dadata API
DADATA_X_SECRET X-Secret header for access to Dadata Api

Exporter listen on tcp-port 9501. Metrics available on /metrics path.

Exposed metrics

Metric Descrpition
dadata_current_balance Current balance on Dadata
dadata_services_clean_total Clean count for today
dadata_services_merging_total Merging count for today
dadata_services_suggestions_total Suggestions count for today

Run via Docker

The latest release is automatically published to the Docker registry.

You can run it like this:

$ docker run -d --name dadata-exporter \
            -e DADATA_TOKEN=12345abcdef \
            -e DADATA_X_SECRET=12345abcdef \
            -p 9501:9501 \
            stupidscience/dadata-exporter

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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