Skip to main content

Pygments lexer for prometheus metrics

Project description

Overview

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

Installation

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)

Changelog

1.0 - 2018-11-08

  • Initial release.

Project details


Release history Release notifications

This version

1.0

Download files

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

Files for pygments-prometheus, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size pygments_prometheus-1.0-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pygments-prometheus-1.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page