Skip to main content

No project description provided

Project description

PyPI - Version Docker Image Version

Overkiz Exporter

A simple open metrics exporter for metrics yielded from overkiz api.

Metrics served

  • overkiz_exporter: Will serve various metrics about the exporter itself.
  • overkiz_measurable: Will export any float or integer value returned by the overkiz API and tag it with the device specifics.
  • overkiz_label: Will export any string values returned by the overkiz API. The string value will be placed in the label label and the value set to 1.

Used labels

Label Available on Comment
status overkiz_exporter Any value, describe the runtime status of the exporter
device_id overkiz_measurable, overkiz_label The device id of the current metric
device_label overkiz_measurable, overkiz_label The device name, may be customized
metric_namespace overkiz_measurable, overkiz_label The metric namespace, extracted from the API name (example: core, modbuslink)
metric_name overkiz_measurable, overkiz_label The metric name, extracted from the API name (example: NameState, NumberOfTankState)
label overkiz_measurable The value outputed by the API (example: Heating, `off)

Example configuration

{
    "credentials": [
        {
            "username": "<login to your atlantic account>",
            "password": "<password to your atlantic account>",
            "servertype": "ATLANTIC_COZYTOUCH"
        }
    ]
}

Running it

For the next few bits of code, we'll suppose you have a working configuration above in ~/.config/overkiz.json.

... with python:

pip install overkiz-exporter
python -m overkiz_exporter

... with docker:

 docker run -v ~/.config/:/etc/overkiz/:ro -p 9100:9100 overkiz-exporter:main

You'll then be able retrieve some values:

curl localhost:9100/metrics

# HELP overkiz_exporter
# TYPE overkiz_exporter gauge
overkiz_exporter{status="loop_interval"} 60.0
overkiz_exporter{status="credentials_count"} 1.0
overkiz_exporter{status="ok"} 1.0
overkiz_exporter{status="nok"} 0.0
[...]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

overkiz_exporter-1.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

overkiz_exporter-1.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file overkiz_exporter-1.1.1.tar.gz.

File metadata

  • Download URL: overkiz_exporter-1.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-13-generic

File hashes

Hashes for overkiz_exporter-1.1.1.tar.gz
Algorithm Hash digest
SHA256 172a58e63db2ad69c127d6841faa1e705d15da51dafd7f3415a474bfad58d8e6
MD5 ee40826d0a1bea59aec1b1def4bc025b
BLAKE2b-256 5fc41f4852ad9327329efdbee5821a611fa66049a38cedb9651e9a8c2145acd5

See more details on using hashes here.

File details

Details for the file overkiz_exporter-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: overkiz_exporter-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-13-generic

File hashes

Hashes for overkiz_exporter-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c79edd11995eabcf9d851d8cae9f29ff7d26fba61ebdc6bb2c64f7e825cf46b8
MD5 8a909a644bc8cd34faaffc17add02a43
BLAKE2b-256 af879ff2064f2ce63dd9e7d807bca7bfa5eddd4a311d8f2e2fee2b25be5ed8ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page