aaisp-exporter

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 10 Imported by: 0

README

aaisp-exporter

Prometheus exporter for Andrews & Arnold line data via their CHAOS API

Installation

Download a binary

Grab the relevant binary for your architecture and operating system from the latest Release.

Build from source

If you want to install from source, install Go 1.16 or later, using your package manager or from the official Go site.

Then simply do -

go get -u -v -x github.com/daveio/aaisp-exporter

after which you'll have a shiny new aaisp-exporter (macOS, Linux) or aaisp-exporter.exe (Windows) binary sitting in your current directory.

Build a Docker container

A basic Dockerfile is also included, should you wish to build a container.

Configuration

Use environment variables.

Environment variable Importance Value to set
AAISP_CONTROL_USERNAME REQUIRED Your username for the control pages (aka clueless). Of the format ab123@a. Do not include .1, .2, after the username - those refer to specific lines.
AAISP_CONTROL_PASSWORD REQUIRED Your password for the control pages (aka clueless).
AAISP_EXPORTER_PORT optional, default 9902 The port for the exporter to listen on, with metrics available via HTTP on that port at path /metrics.

Liveness

Metrics are updated once per minute. If you want to contribute to the exporter, finding a way to replace this polling interval with an event-based trigger would be awesome.

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