usage: promtool [] [ ...] Tooling for the Prometheus monitoring system. Flags: -h, --[no-]help Show context-sensitive help (also try --help-long and --help-man). --[no-]version Show application version. --[no-]experimental Enable experimental commands. --enable-feature= ... Comma separated feature names to enable. Valid options: promql-experimental-functions, promql-delayed-name-removal, promql-unquoted-utf8-names. See https://prometheus.io/docs/prometheus/latest/feature_flags/ for more details Commands: help [...] Show help. check service-discovery [] Perform service discovery for the given job name and report the results, including relabeling. check config [] ... Check if the config files are valid or not. check web-config ... Check if the web config files are valid or not. check healthy [] Check if the Prometheus server is healthy. check ready [] Check if the Prometheus server is ready. check rules [] [...] Check if the rule files are valid or not. check metrics [] Pass Prometheus metrics over stdin to lint them for consistency and correctness, and optionally perform cardinality analysis. examples: $ cat metrics.prom | promtool check metrics $ curl -s http://localhost:9090/metrics | promtool check metrics --extended $ curl -s http://localhost:9100/metrics | promtool check metrics --extended --lint=none query instant [] Run instant query. query range [] Run range query. query series --match=MATCH [] Run series query. query labels [] Run labels query. query analyze --server=SERVER --type=TYPE --match=MATCH [] Run queries against your Prometheus to analyze the usage pattern of certain metrics. debug pprof Fetch profiling debug information. debug metrics Fetch metrics debug information. debug all Fetch all debug information. push metrics [] [...] Push metrics to a prometheus remote write (for testing purpose only). test rules [] ... Unit tests for rules. tsdb bench write [] [] Run a write performance benchmark. tsdb analyze [] [] [] Analyze churn, label pair cardinality and compaction efficiency. tsdb list [] [] List tsdb blocks. tsdb dump [] [] Dump data (series+samples or optionally just series) from a TSDB. tsdb dump-openmetrics [] [] [Experimental] Dump samples from a TSDB into OpenMetrics text format, excluding native histograms and staleness markers, which are not representable in OpenMetrics. tsdb create-blocks-from openmetrics [] [] Import samples from OpenMetrics input and produce TSDB blocks. Please refer to the storage docs for more details. tsdb create-blocks-from rules --start=START [] ... Create blocks of data for new recording rules. promql format Format PromQL query to pretty printed form. promql label-matchers set [] Set a label matcher in the query. promql label-matchers delete Delete a label from the query.