sharkdp / bat

A cat(1) clone with wings.
Apache License 2.0
49.34k stars 1.25k forks source link

Please add support for prometheus exposition format #2508

Open kjedamzik opened 1 year ago

kjedamzik commented 1 year ago

would be great if bat supports the prometheus exposition format

keith-hall commented 1 year ago

Looks like nobody has written any syntax highlighting definition for it for Sublime yet: https://packagecontrol.io/search/prometheus

keith-hall commented 1 year ago

Highlighting it as Perl doesn't look too bad IMO (bat -l Perl path/to/prometheus_exposition_format_file):

# HELP metric_name Description of the metric
# TYPE metric_name type
# Comment that's not parsed by prometheus
http_requests_total{method="post",code="400"}  3   1395066363000

image