Support for prometheus data/metrics files

Hey all,

for anyone using emacs and happen to have to look at output from various prometheus exporters from time to time, there is now prometheus-mode.

The package so far only has prometheus-data-mode and it’s admittedly pretty basic, but it does the following:

  1. font-locking so you eyes don’t bleed when looking at the data (that’s always nice)
  2. navigation via imenu

It’s a very quick and dirty mode. It started life as an offshoot of generic-mode, but was then changed to use (define-derived-mode) due to the imenu integration being too ugly via generic-mode.

Hope it helps!