Skip to main content

A visualiser for available Prometheus metrics

Project description

promls : Explore Prometheus metrics

promls lets you explore prometheus metrics for your services. Target the metrics endpoint of your service and search for relevant metrics.

Installation

The promls cli is available in a Python package. You can install it directly with pipx:

pipx install alpacloud-promls

Usage

CLI

promls has cli modes. Filter for metrics by name, path, or any field.

> promls name --filter cpu http://localhost:9402/metrics
process_cpu_seconds_total (counter) Total user and system CPU time spent in seconds.

You can output the metrics in several formats:

  • flat: a compact list, useful for humans
    process_cpu_seconds_total (counter) Total user and system CPU time spent in seconds.
    
  • json: for scripting
    {
    "process_cpu_seconds_total": {
        "name": "process_cpu_seconds_total",
        "help": "Total user and system CPU time spent in seconds.",
        "type": "counter"
      }
    }
    
  • tree: use the words as nodes in a tree
    process
      cpu
        seconds
          total : process_cpu_seconds_total (counter) Total user and system CPU time spent in seconds.
    
  • full: like the prometheus metric format
    # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
    # TYPE process_cpu_seconds_total counter
    process_cpu_seconds_total
    

TUI

Interactively filter and explore the metrics. browse.svg

Bibliography

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

alpacloud_promls-0.3.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

alpacloud_promls-0.3.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file alpacloud_promls-0.3.0.tar.gz.

File metadata

  • Download URL: alpacloud_promls-0.3.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for alpacloud_promls-0.3.0.tar.gz
Algorithm Hash digest
SHA256 055c76dfa51cd453c31c1b73ab30a13c8ca3e750747421979efaa68163f71a2c
MD5 0ad5a7068ad51d874efb169a0a8907fc
BLAKE2b-256 15e76b56316ef3bb506da32940a2791c9be6216f7546098930da5e75e82d4ea1

See more details on using hashes here.

File details

Details for the file alpacloud_promls-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alpacloud_promls-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7da8edb1185efb57cdffbaa3ff16055a0e4a37546131a8412fcd2597b538875
MD5 d623b988b756a6d7c2c9cbb3fe35ed59
BLAKE2b-256 2c8de406084e600949c62ba75f3e2786323acd4413049c77407eaaedf3db276a

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