Prometheus remote read and write API support
InfluxDB support for the Prometheus remote read and write API adds the following two HTTP endpoints to the InfluxDB
To enable the use of the Prometheus remote read and write API with InfluxDB, you need to add URL values to the following settings in the Prometheus configuration file:
Example (Prometheus configuration):
# Remote write configuration (for Graphite, OpenTSDB, or InfluxDB). remote_write: * url: "http://localhost:8086/api/v1/prom/write?u=paul&p=foo&db=prometheus" # Remote read configuration (for InfluxDB only at the moment). remote_read: * url: "http://localhost:8086/api/v1/prom/read?u=paul&p=foo&db=prometheus"
You can use query parameters to pass in the database to write data to and optional user and password.
Note: Including the password in the config file is not ideal. See Prometheus issue: “Support for environment variable substitution in configuration file”.