Prometheus exporter for apk-tools
Project description
apk-exporter
apk-exporter is a Prometheus exporter for monitoring apk-tools.
It provides metrics like installed, upgradable, and orphaned packages,
which can be exported to a Prometheus Pushgateway or written to a text file to
be parsed by node-exporter.
Requirements
- Python 3.8 or higher
prometheus_clientpython libraryapkpackage manager
Usage
Run apk_exporter.py regulary (for example every hour).
Use --textfile to export as a text file, or use --pushgateway to push to a
gateway. See --help for all options.
Import text file to node-exporter
Add the destination folder (/tmp by default) as the node_exporter arguments,
like this: --collector.textfile.directory /tmp.
If you're using a node-exporter OpenRC service, you can add the arguments to
/etc/conf.d/node-exporter:
ARGS="--collector.textfile.directory /tmp"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apk_exporter-0.1.1.tar.gz.
File metadata
- Download URL: apk_exporter-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
632d0dbd93bf3afa09b05c35a472768a6d3fc7d250e048ee2e6bee374bc8a4a0
|
|
| MD5 |
8b76f62eb7fafe909663ec77ac2c75fd
|
|
| BLAKE2b-256 |
732fdb62080cef57e82ab7ec5d068337926e3977059a7d4bdc027da839b26e5f
|
File details
Details for the file apk_exporter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: apk_exporter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63c779302c65cfab1f8aa1fc85f9bcec5c99653f9d3a3406158c87fa83433428
|
|
| MD5 |
f662bb0e30cb88b1a903bd21a08e6c6b
|
|
| BLAKE2b-256 |
593a1da822323af0df32a2695d91b7cd6d0bd7960fd24b51f6a6991f24b5ceee
|