Prometheus Remote Write
An output plugin to submit Prometheus Metrics using the remote write protocol
The Prometheus remote write plugin allows you to take metrics from Calyptia Core Agent and submit them to a Prometheus server through the remote write mechanism.
Important Note: The Prometheus exporter only works with metric plugins, such as Node Exporter Metrics
Key | Description | Default |
---|---|---|
host | IP address or hostname of the target HTTP Server. | 127.0.0.1 |
http_user | Basic Auth Username. | |
http_passwd | Basic Auth Password. Requires HTTP_user to be set. | |
port | TCP port of the target HTTP Server. | 80 |
proxy | Specify an HTTP Proxy. The expected format of this value is | |
uri | Specify an optional HTTP URI for the target web server, e.g: /something. | / |
header | Add a HTTP header key/value pair. Multiple headers can be set. | |
log_response_payload | Log the response payload within the Calyptia Core Agent log | false |
add_label | This allows you to add custom labels to all metrics exposed through the Prometheus exporter. You may have multiple of these fields. | |
Workers | Enables dedicated thread(s) for this output. Default value is set since version 1.8.13. For previous versions is 0. | 2 |
Getting Started
The Prometheus remote write plugin only works with metrics collected by one of the from metric input plugins. In the following example, host metrics are collected by the node exporter metrics plugin and then delivered by the Prometheus remote write output plugin.
Examples
The following are examples of using Prometheus remote write with hosted services below
Grafana Cloud
With Grafana Cloud hosted metrics you will need to use the specific host that is mentioned as well as specify the HTTP username and password given within the Grafana Cloud page.
Logz.io Infrastructure Monitoring
With Logz.io hosted Prometheus you will need to make use of the header option and add the Authorization Bearer with the proper key. The host and port may also differ within your specific hosted instance.
Coralogix
With Coralogix Metrics you may need to customize the URI. Additionally, you will make use of the header key with Coralogix private key.
Last updated