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

  • daemon: 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.

Note:

  • the daemon metric name is configurable through by editing daemon.metricname
  • the daemon name label is configurable by editing daemon.namelabel

Used labels

Label Available on Comment
status daemon Any value, describe the runtime status of the exporter
name daemon The value set in the configuration under the daemon.namelabel key
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 daemon
# TYPE daemon gauge
daemon{name="overkiz-exporter",section="config",status="loop_interval"} 60.0
daemon{name="overkiz-exporter",section="config",status="items-count"} 1.0
daemon{name="overkiz-exporter",section="exec",status="items-ok"} 1.0
daemon{name="overkiz-exporter",section="exec",status="items-ko"} 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.4.tar.gz (3.2 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.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: overkiz_exporter-1.1.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Linux/6.14.0-22-generic

File hashes

Hashes for overkiz_exporter-1.1.4.tar.gz
Algorithm Hash digest
SHA256 d0e75a679e4194246b07ae441d3b4854aaf33ade04d4d4fb6711ca208d7e43a4
MD5 adf6a3ac910fa492f545c7f448c0a2f5
BLAKE2b-256 7860bcc2129c5cb8b3b785d7481acbc16d8809839c2ff2dda1e53d810aea93e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: overkiz_exporter-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Linux/6.14.0-22-generic

File hashes

Hashes for overkiz_exporter-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4f88696c983f85f440bb41c45305118d6a87bd3d88a97d7525384ea838860f0e
MD5 c8e422ee8c9069d9c3e2e72f5c3b2afe
BLAKE2b-256 e99e7fe65a1b70f3465c53b6a59ecf2fc7b29e1c24d7f7a0703afc2b48c6d27a

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