Prometheus Metric Exposition Generator
Feed a name, a type, help text and a value; out come the HELP, TYPE and sample lines, with the name checked against the naming regex and _total hints.
YAML
—
A metric in the Prometheus exposition format
The format Prometheus reads is plain text and deceptively strict: one help line, one type line and one per sample. It looks like something you can assemble by concatenating strings, and that is where the metric starts being rejected by the collector with nobody understanding why — almost always over a character the grammar does not accept.
Fill in name, type, help text and value, and the page assembles the block while validating what matters. The name has its own grammar: it starts with a letter, underscore or colon, and continues with those plus digits. Hyphens, spaces and accents make the line invalid — and the hyphen is the commonest mistake from people coming from other metric systems, where it is conventional.
The page also flags the naming conventions, which are not mandatory but matter to whoever reads the dashboard later: counters end in total, duration metrics end in seconds with the unit in the name, and the counter suffix should not appear on a gauge. The unit belongs in the name because Prometheus stores it nowhere else — if it is not there, nobody knows whether that number is milliseconds or seconds.
Frequently asked questions
What is the difference between a counter and a gauge?
Why does the unit go in the name?
How do I add labels?
Related Tools
Cron Parser (describe expression)
Paste a cron expression and see in plain text when it will fire (e.g. "every day at 9am" for `0 9 * * *`). Lists the next N runs. Everything in your browser.
SVG Optimizer
Reduce SVG file size by removing metadata, comments, editor attributes (Inkscape, Illustrator) and unnecessary whitespace. Processed in your browser.
Cubic Bezier Generator
Create and visualize cubic-bezier curves for CSS animations. Drag control points, preview the animation and copy the value. Includes presets (ease, ease-in, ease-out). Everything in your browser.
Supervisord Program Generator
Create a [program:name] section for supervisord with command, autostart, autorestart, stdout_logfile and environment.
.htpasswd bcrypt Generator
Build the .htpasswd line with a real bcrypt hash ($2y$ prefix), the scheme Apache recommends. You pick the cost and everything is computed in your browser.
.env File Diff
Compare two .env files showing keys only in A, only in B, and differing.