.TH promtool 1 promtool, version 2.7.1+ds (branch: debian/sid, revision: 2.7.1+ds-3+b11) .SH "NAME" promtool - Tooling for the Prometheus monitoring system .SH "SYNOPSIS" .TP \fBpromtool [] [ ...]\fR .SH "DESCRIPTION" Tooling for the Prometheus monitoring system. .SH "OPTIONS" .TP \fB-h, --help\fR Show context-sensitive help (also try --help-long and --help-man). .TP \fB--version\fR Show application version. .SH "COMMANDS" .SS \fBhelp [...]\fR .PP Show help. .SS \fBcheck config ...\fR .PP Check if the config files are valid or not. .SS \fBcheck rules ...\fR .PP Check if the rule files are valid or not. .SS \fBcheck metrics\fR .PP Pass Prometheus metrics over stdin to lint them for consistency and correctness. examples: $ cat metrics.prom | promtool check metrics $ curl -s http://localhost:9090/metrics | promtool check metrics .SS \fBquery instant \fR .PP Run instant query. .SS \fBquery range [] \fR .PP Run range query. .TP \fB--start=START\fR Query range start time (RFC3339 or Unix timestamp). .TP \fB--end=END\fR Query range end time (RFC3339 or Unix timestamp). .TP \fB--step=STEP\fR Query step size (duration). .SS \fBquery series --match=MATCH [] \fR .PP Run series query. .TP \fB--match=MATCH\fR Series selector. Can be specified multiple times. .TP \fB--start=START\fR Start time (RFC3339 or Unix timestamp). .TP \fB--end=END\fR End time (RFC3339 or Unix timestamp). .SS \fBquery labels \fR .PP Run labels query. .SS \fBdebug metrics \fR .PP Fetch metrics debug information. .SS \fBdebug all \fR .PP Fetch all debug information. .SS \fBtest rules ...\fR .PP Unit tests for rules.