stiebeleltron-exporter

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

ifndef::env-github[:icons: font]
ifdef::env-github[]
:status:
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
:ext-relative: {outfilesuffix}
endif::[]

= Stiebel-Eltron Exporter

ifdef::status[]
image:https://img.shields.io/github/workflow/status/ccremer/stiebeleltron-exporter/Build/master[Build,link=https://github.com/ccremer/stiebeleltron-exporter/actions?query=workflow%3ABuild]
image:https://img.shields.io/codeclimate/maintainability/ccremer/stiebeleltron-exporter[Maintainability,link=https://codeclimate.com/github/ccremer/stiebeleltron-exporter]
image:https://img.shields.io/codeclimate/coverage/ccremer/stiebeleltron-exporter[Tests,link=https://codeclimate.com/github/ccremer/stiebeleltron-exporter]
image:https://img.shields.io/github/v/release/ccremer/stiebeleltron-exporter[Releases,link=https://github.com/ccremer/stiebeleltron-exporter/releases]
image:https://img.shields.io/github/license/ccremer/stiebeleltron-exporter[License,link=https://github.com/ccremer/stiebeleltron-exporter/blob/master/LICENSE]
endif::[]

== About

Scrapes a Stiebel-Eltron ISG installation and converts sensor data to Prometheus metrics.
It has been tested with ISG 10.2.0.

== Installing


=== Binary

. Download latest binary from the https://github.com/ccremer/stiebeleltron-exporter/releases[Releases page]
. `chmod +x stiebeleltron-exporter && mv stiebeleltron-exporter /usr/local/bin/`

=== Package

Comes with systemd unit file.

. Download latest package from the https://github.com/ccremer/stiebeleltron-exporter/releases[Releases page]
. `dpkg -i stiebeleltron-exporter_linux_amd64.deb` (Debian/Ubuntu)
. `rpm -i stiebeleltron-exporter_linux_amd64.rpm` (CentOS)
. `sudo systemctl daemon-reload`
. Edit the settings in `/etc/default/stiebeleltron-exporter`
. `sudo systemctl enable stiebeleltron-exporter`
. `sudo systemctl restart stiebeleltron-exporter`

=== Docker

. `docker run -d --name stiebeleltron-exporter -p "8080:8080" ghcr.io/ccremer/stiebeleltron-exporter`

=== Helm Chart

With https://ccremer.github.io/charts/stiebeleltron-exporter[stiebeleltron-exporter]

. `helm repo add ccremer https://ccremer.github.io/charts`
. `helm install stiebeleltron ccremer/stiebeleltron-exporter`

== Usage

[source,console]
----
stiebeleltron-exporter --isg.url http://isg.ip.or.hostname
----

Upon each call to `/metrics`, the exporter will do GET requests on the given URL, and translate the HTML responses to Prometheus metrics format.

== Configuration

`stiebeleltron-exporter` can be configured with CLI flags. Call the binary with `--help` to get a list of options.

[TIP]
All flags are also configurable with Environment variables.
Replace the `.` char with `_` and uppercase the names in order for them to be recognized, e.g. `--log.level debug` becomes `LOG_LEVEL=debug`.
CLI flags take precedence though.

== Developing

Requirements:

* Go

`make help` shows a list of possible tasks.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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