Skip to main content

Show Uyuni server health metrics and logs

Project description

uyuni-health-check

A tool providing dashboard, metrics and logs from an Uyuni server supportconfig to visualise its health status.

Requirements

  • python3
  • podman

Building and installing

Install the tool locally into a virtual environment:

python3 -m venv venv
. venv/bin/activate
pip install .

Getting started

This tool builds and deploys the necessary containers to scrape some metrics and logs from an Uyuni server supportconfig directory. Execute the run phase of the tool as such:

uyuni-health-check -s ~/path/to/supportconfig run --logs --from_datetime=2024-01-01T00:00:00Z --to_datetime=2024-06-01T20:00:00Z

This will create and start the following containers locally:

  • uyuni-health-exporter (port 9000)
  • grafana (port 3000)
  • loki (port 9100)
  • promtail (port 9081)

After you start the containers, visit localhost:3000 and select the Supportconfig with Logs dashboard. If necessary, the default username/password for Grafana is admin:admin.

Security notes

After running this tool, and until containers are destroyed, the Grafana Dashboards (and other metrics) are exposing metrics and logs messages that may contain sensitive data and information to any non-root user in the system or to anyone that have access to this host in the network.

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

uyuni_health_check-0.0.1.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

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

uyuni_health_check-0.0.1-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file uyuni_health_check-0.0.1.tar.gz.

File metadata

  • Download URL: uyuni_health_check-0.0.1.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for uyuni_health_check-0.0.1.tar.gz
Algorithm Hash digest
SHA256 37904e063c3ec0104dc71671781f29a4bdbe42d935fb4692469645ce73c284ff
MD5 59ffca77931439a2bf12ec8dade0685d
BLAKE2b-256 a37cbd0bf8f8297e9529c52820a7e7f3ae691782d71be39f66e2ea040d275d00

See more details on using hashes here.

File details

Details for the file uyuni_health_check-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for uyuni_health_check-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 563726e67084a5b6778fa782f6a9ccc8fcecaf14d31b4bb2d384758fb980d1e4
MD5 6f27b88657b9c7b856c5fe37226885ff
BLAKE2b-256 60ac6c88ace53f5558ae06f91fd2e75d71bc4171369ef26de78a44237f439a2a

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