Skip to main content

Pygments lexer for prometheus metrics

Project description


This package provides a prometheus metrics language lexer for Pygments. THe lexer is published as an entry point and, once installed, Pygments will pick it up automatically.

You can then use the prom langauge with Pygments:

$ pygmentize -l prom metrics.prom


Use your favorite installer to install pygments-prometheus into the same Python you have installed Pygments. for example:

$ pip install pygments-prometheus

TO verify the installation run:

$ pygmentize -L lexer | grep -A1 -i prometheus
  * prometheus:
    prom (filenames *.prom)


1.0 - 2018-11-08

  • Initial release.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments-prometheus-1.0.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page