Metrics
/metricsRetrieve workload performance metrics
Returns metrics about the workload performance of an InfluxDB instance.
Use this endpoint to get performance, resource, and usage metrics.
Related guides
- For the list of metrics categories, see InfluxDB OSS metrics.
- Learn how to use InfluxDB to scrape Prometheus metrics.
- Learn how InfluxDB parses the Prometheus exposition format.
Parameters
Header parameters
Zap-Trace-Span
stringcurl --request GET \
"http://localhost:8086/metrics" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
Success. The response body contains metrics in Prometheus plain-text exposition format Metrics contain a name, an optional set of key-value pairs, and a value.
The following descriptors precede each metric:
HELP: description of the metricTYPE: Prometheus metric type (counter,gauge,histogram, orsummary)
code
required
stringinternal error
, not implemented
, not found
, conflict
, invalid
, unprocessable entity
, empty value
, unavailable
, forbidden
, too many requests
, unauthorized
, method not allowed
, request too large
, unsupported media typeerr
stringmessage
stringop
stringWas this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.