bisos.prometheus: Prometheus and nodeexporter via BISOS Capability Bundles
Overview
bisos.prometheus is a BISOS package for running Prometheus on a BISOS host, together with nodeexporter for the host’s own metrics, as a BISOS Capability Bundle (CBS/CBM) of systemd-planted Command Services.
A planted pointer leaf (cbmProc.spcs, at sys/cbm/collective/hereWeb/prometheus/) subprocess-invokes a Capability Bundle Specification (prometheus-cbs.pcs). The CBS declares package installation (sboms), the two systemd units (prometheus and prometheus-node-exporter), and the assembly step that makes Prometheus browsable as http://prometheus.internal.
Debian packages Prometheus, but trixie’s is 2.x and upstream is 3.x. The sbom therefore fetches the Prometheus and nodeexporter release tarballs from upstream at pinned versions, refusing either one if its checksum does not match.
It pairs with bisos.grafana, whose provisioned datasource points at this Prometheus. Neither package imports the other; both take each other’s ports from bisos.banna.
Package Documentation At Github
The information below is a subset of the full of documentation for this bisos-pip package. More complete documentation is available at: https://github.com/bisos-pip/prometheus-cs
Table of Contents TOC
-
Day-to-Day Admin: ``prometheusAdmin.cs` <#day-to-day-admin-prometheusadmincs>`__
Direct Command Cheat Sheet: ``quickPrometheus.cs` <#direct-command-cheat-sheet-quickprometheuscs>`__
-
The “secure it” layer: a login in front of prometheus.internal, listening beyond loopback
Architectures other than amd64 (pin each one’s checksum in prometheusInfo)
Alertmanager, as a second capability of this package or one of its own
Plant the CBM leaf in brorawBisos (``sys/cbm/collective/hereWeb/prometheus/`) <#plant-the-cbm-leaf-in-bro_rawbisos-syscbmcollectiveherewebprometheus>`__
The BISOS Prometheus Model
bisos.prometheus (/bisos/git/bxRepos/bisos-pip/prometheus) packages Prometheus 3.15.0 and nodeexporter 1.12.1 as a hereWeb CBS/CBM, the BISOS way rather than through Debian’s 2.x package or a container. It is built on the same pattern as bisos.kafka and bisos.grafana (the cbm-package-authorship skill): one module of facts (prometheusInfo.py), pinned and checksummed upstream binaries, config written only when absent, a read-only driftCheck, a service sbom and a usage sbom joined only by the CBS.
Out of the box Prometheus scrapes itself and this host’s nodeexporter. It is for the rawBisos layer: convenient and insecure by design (no authentication; loopback only). Securing it is a separate layer.
As of 2026-10-15 it is materialized on one host (Debian 13): both units active, both targets up, http://prometheus.internal 200, driftCheck agrees.
What Gets Installed, and Where
Every fact below lives in one place, py3/bisos/prometheus/prometheusInfo.py, which the sboms, the units, the dns and vhost files and the admin CS all read.
What |
Where |
Owner |
|---|---|---|
The prometheus account |
uid/gid 504, from bisos.banna sysAccts |
— |
Prometheus 3.15.0 (+ promtool) |
/opt/pr ometheus/prometheus- 3.15.0.linux-amd64 |
root |
Active Prometheus |
/opt/ prometheus/current -> the above |
root |
n odeexporter 1.12.1 |
/opt/prome theus/node_exporter- 1.12.1.linux-amd64 |
root |
Active n odeexporter |
/opt/promet heus/node_exporter -> the above |
root |
Scrape config |
/etc/prometh eus/prometheus.yml |
root:prometheus 640 |
Server flags |
/etc/ default/prometheus (ARGS=) |
root:prometheus 640 |
Exporter flags |
` /etc/default/promet heus-node-exporter` (ARGS=) |
root:prometheus 640 |
The TSDB |
/var/l ib/prometheus/data (15 days) |
prometheus 750 |
The account’s numbers come from banna’s registry, not from useradd’s per-host choice, so prometheus is 504 on every platform. nodeexporter runs as the same account, as Debian’s package does.
The three config files are written only when absent, so hand overrides survive re-runs of the sbom. prometheusAdmin.cs -i driftCheck reports how a live file differs from what its generator would write. The sbom checks prometheus.yml with promtool check config after writing it.
Only amd64 has a pinned checksum today; the sbom refuses another architecture rather than guess.
The 3 sboms: Server, Usage, and the CBS’s
sbom |
Installs |
Pulls in |
|---|---|---|
prometheus-sbom.pcs |
the account, Prometheus, nodeexporter, config |
nothing |
pro metheusUsage-sbom.pcs |
promtool (from the same pinned tarball) |
nothing |
p rometheusCbs-sbom.pcs |
nothing of its own |
the two above |
The server sbom does not pull in the usage sbom: materializing only the server is a normal case, and a host that only queries a remote Prometheus runs only the usage sbom. The CBS is what does both, through prometheusCbs-sbom.pcs, because a CBS names one sbom. Python libraries (prometheus-client to expose metrics, prometheus-api-client to query) go into each consumer’s own venv.
The 2 systemd Units
Unit |
Runs |
Ordering |
|---|---|---|
prometheus-node -exporter-sysd.pcs |
n ode_exporter $ARGS |
Af ter=network.target |
p rometheus-sysd.pcs |
` prometheus $ARGS`; reload sends SIGHUP |
Af ter=network.target |
Both run as User=prometheus. The exporter is listed first in the CBS, so the server’s first scrape finds it. Logs go to journald.
Listeners and Ports
Ports are assigned in bisos.banna (tcpPorts.py), never hardcoded. Every listener binds loopback only: neither Prometheus nor nodeexporter has authentication.
Listener |
Address |
banna name |
|---|---|---|
Prometheus (UI, HTTP API) |
127.0.0.1:24010 |
prometheus |
n odeexporter (/metrics) |
127.0.0.1:24012 |
prom etheusNodeExporter |
Prometheus, via nginx |
http://p rometheus.internal |
— (127.0.22.114) |
Installation
You can install bisos.prometheus with pip or pipx.
Installation With pip
If you need access to bisos.prometheus as a python module, install it with pip:
pip install bisos.prometheus
Installation With pipx
If you only need access to bisos.prometheus on the command line, install it with pipx:
pipx install bisos.prometheus
The following commands are made available:
prometheusAdmin.cs — day-to-day admin CS for this host’s prometheus.internal installation.
quickPrometheus.cs — direct-command cheat sheet: promtool, the HTTP API, the two units.
prometheus-assemble.cs — assembly step: prometheus.internal dns entry and nginx vhost.
cbmProc-prometheus.spcs — planted CBM pointer that materializes the CBS at this host.
The planted .pcs files (prometheus-cbs.pcs, the three sboms, the two -sysd.pcs, prometheus-here-dns.pcs, prometheus-wvd.pcs) are invoked directly from py3/bin/.
Usage
Materialization
prometheus-sbom.pcs -i sbom_fullUpdate # install the server only
prometheusUsage-sbom.pcs -i sbom_fullUpdate # install the usage side only (promtool)
prometheus-cbs.pcs -i cbs_materialize # both sboms + units + assemble
cbmProc-prometheus.spcs -i cbm_enable # at the planted CBM leaf, then:
cbmProc-prometheus.spcs -i cbm_materialize
Day-to-Day Admin: prometheusAdmin.cs
prometheusAdmin.cs -i hostInfo # fqdn, listeners, install/config/data paths
prometheusAdmin.cs -i servicesInfo # links for operating the 2 systemd units
prometheusAdmin.cs -i queriesInfo # PromQL through promtool and the HTTP API
prometheusAdmin.cs -i driftCheck # read-only: live config, units and links vs prometheusInfo
prometheusAdmin.cs -i fullUpdate # the three info Cmnds together
Direct Command Cheat Sheet: quickPrometheus.cs
quickPrometheus.cs
Queries
/opt/prometheus/current/promtool query instant http://127.0.0.1:24010 up
curl -s 'http://prometheus.internal/api/v1/query?query=node_load1'
Key Files
py3/bisos/prometheus/prometheusInfo.py — the single source of facts: pinned versions and checksums, paths, ports, the generators of the three config files and the units’ identity lines, the tarball-install script, and the drift helpers.
py3/bin/prometheus-cbs.pcs — CBS declaring the bundle (sbom + 2 sysd units + assemble).
py3/bin/cbmProc-prometheus.spcs — planted CBM pointer leaf that materializes the CBS.
py3/bin/prometheus-sbom.pcs, prometheusUsage-sbom.pcs, prometheusCbs-sbom.pcs — the server, usage and CBS sboms via bisos.sbom.
py3/bin/prometheus-sysd.pcs, py3/bin/prometheus-node-exporter-sysd.pcs — the two units.
py3/bin/prometheus-assemble.cs — assembly step (dns + vhost).
py3/bin/prometheus-here-dns.pcs — .internal fake-domain DNS registration for prometheus.internal.
py3/bin/prometheus-wvd.pcs — nginx vhost for prometheus.internal, proxying to Prometheus on loopback.
py3/bin/prometheusAdmin.cs, py3/bin/quickPrometheus.cs — admin CS and cheat sheet.
py3/tests/verify.sh — smoke test of every command and of prometheusInfo’s invariants.
py3/setup.py, py3/pypiProc.sh — PyPI packaging (setup.py is dblock-driven; do not hand-edit).
Part of BISOS — ByStar Internet Services Operating System
Layered on top of Debian, BISOS (By* Internet Services Operating System) is a unified and universal framework for developing both internet services and software-service continuums that use internet services. See Bootstrapping ByStar, BISOS and Blee for information about getting started with BISOS.
BISOS is a foundation for The Libre-Halaal ByStar Digital Ecosystem which is described as a cure for losses of autonomy and privacy in a book titled: Nature of Polyexistentials
bisos.prometheus is part of BISOS. It is a standalone package that can be used independently of the full BISOS environment.
Documentation and Blee-Panels
bisos.prometheus is part of the ByStar Digital Ecosystem http://www.by-star.net.
This module’s primary documentation is in the form of Blee-Panels. Blee-Panels are in the ./panels directory. From within Blee and BISOS these panels are accessible under the Blee “Panels” menu.
See file:./panels/bisos.prometheus/_nodeBase_/fullUsagePanel-en.org for a starting point.
bisos.prometheus is best developed with Blee, the By* BISOS Libre-Halaal Emacs Environment — a layer on top of Emacs and BISOS which creates a comprehensive integrated usage and development environment.
Support
Planned Improvements
TODO The “secure it” layer: a login in front of prometheus.internal, listening beyond loopback
TODO Architectures other than amd64 (pin each one’s checksum in prometheusInfo)
TODO Alertmanager, as a second capability of this package or one of its own
TODO Plant the CBM leaf in brorawBisos (sys/cbm/collective/hereWeb/prometheus/)
Metadata
Release files for bisos.prometheus 0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bisos_prometheus-0.12.tar.gz | 48.8 kB | Without provenance | Details for bisos_prometheus-0.12.tar.gz |
Release files / bisos_prometheus-0.12.tar.gz
| Download URL | bisos_prometheus-0.12.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3e4bb5b4ab8cb74f31600c1fe26c02a64f18ddd89fdf003e54fb5acd822b8ee
|
|
BLAKE2b-256 checksum How to use checksums |
12efc6f45cee9cec45d84d47fcdcdc86d89e651e2bbb009528a42dca73128016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Security for bisos.prometheus 0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.