Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fhemberger/prometheus-formatter
Browser extension which makes plain Prometheus/OpenMetrics endpoints easier to read
https://github.com/fhemberger/prometheus-formatter
chrome-extension edge-extension firefox-addon firefox-extension google-chrome-extension openmetrics prometheus
Last synced: 13 days ago
JSON representation
Browser extension which makes plain Prometheus/OpenMetrics endpoints easier to read
- Host: GitHub
- URL: https://github.com/fhemberger/prometheus-formatter
- Owner: fhemberger
- Created: 2018-02-05T10:35:15.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-08T13:29:56.000Z (about 1 year ago)
- Last Synced: 2024-10-24T21:55:26.756Z (20 days ago)
- Topics: chrome-extension, edge-extension, firefox-addon, firefox-extension, google-chrome-extension, openmetrics, prometheus
- Language: JavaScript
- Homepage:
- Size: 756 KB
- Stars: 126
- Watchers: 6
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prometheus Formatter
Browser extension which makes plain Prometheus/OpenMetrics output easier to read.
This extension is a simple syntax highlighter for Prometheus and OpenMetrics formats. For the highlighting to work, metric endpoints **must** use either HTTP Content-Type [`application/openmetrics-text`](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#overall-structure) or [`text/plain`](https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format).
For plain-text metrics, parsing is limited by default on URL paths matching '/metrics', '/federate', '/probe', '/prometheus' and '/actuator/prometheus'. By clicking on the extension's icon, you can define your own paths (Regular Expressions are supported), which will override the default list.###### Before:
![](_images/before.png)###### After:
![](_images/after.png)For highlighting in the terminal: [promcolor](https://github.com/fhemberger/promcolor).
## Installation
**Option 1** – install it from the web store:
* [Google Chrome](https://chrome.google.com/webstore/detail/prometheus-formatter/jhfbpphccndhifmpfbnpobpclhedckbb)
* [Firefox](https://addons.mozilla.org/addon/prometheus-formatter/)**Option 2** – install it from source:
* Clone or download this repo
* **Google Chrome** or **Microsoft Edge**:
* Go to `chrome://extensions/` respectively `edge://extensions/`,
* enable "Developer mode",
* click "Load unpacked extension",
* select the `extension` folder in this repo.
* **Firefox**:
* Go to `about:addons`
* From the Cog-Menu on the right choose "Install Add-On From File …"## License
[MIT](extension/LICENSE.txt)