Sign inSign up

wouter0100/fuel-station-exporter

By wouter0100

Updated about 6 years ago

Prometheus Fuel Station price exporter

Image
0

319

wouter0100/fuel-station-exporter repository overview

fuel-station-exporter

A prometheus exporter for getting some metrics of some fuel stations in Eindhoven, The Netherlands. Currently supports the Esso, Tango and Tinq locations in the city.

Installation

If you have a working Go installation, getting the binary should be as simple as

go get github.com/wouter0100/fuel-station-exporter

Usage

$ fuel-station-exporter

The following environment variables are required:

FUEL_STATION_LISTEN_ADDR=localhost:9684 
FUEL_STATION_TIMEOUT=10

Metrics

The following metrics are currently returned:

# HELP current_fuel_price The current fuel price for different fuel types.
# TYPE current_fuel_price gauge
current_fuel_price{station="esso-express-eindhoven",type="Diesel"} 1.189
current_fuel_price{station="esso-express-eindhoven",type="Euro95 E5"} 1.499
current_fuel_price{station="tango-eindhoven-ruysdaelbaan",type="Diesel"} 1.209
current_fuel_price{station="tango-eindhoven-ruysdaelbaan",type="Euro95 E5"} 1.499
current_fuel_price{station="tinq-eindhoven-hurksestraat",type="Diesel"} 1.149
current_fuel_price{station="tinq-eindhoven-hurksestraat",type="Euro95 E10"} 1.479
current_fuel_price{station="tinq-eindhoven-hurksestraat",type="Euro95 E5"} 1.499

Tag summary

Content type

Image

Digest

Size

4.5 MB

Last updated

about 6 years ago

docker pull wouter0100/fuel-station-exporter