Prometheus Remote Write
Last updated
Last updated
Apica Ascent can collect Prometheus metrics from externally hosted Prometheus. Apica Ascent uses the remote_write
capabilities to help you do so.
To send metrics from Prometheus to Apica Ascent endpoint, use the configuration below.
You may also want to add a relabel configuration section to make sure the metrics from your prometheus instance are prefixed for easier identification See Section below.
Prometheus helm
Helm Chart for Prometheus document is found here:
The configuration for remote write in the Helm values.yaml file differs slightly from that in the prometheus.yml file. Note that in the values.yaml file, the configuration file under the server section uses the remoteWrite keyword instead of remote_write, which is used in the prometheus.yml file. This distinction in syntax is important to ensure that the remote write functionality is correctly configured in your deployment.
To ensure that your metrics are easily identifiable, replace <prefix> in the replacement attribute within the write_relabel_configs section with a descriptive prefix of your choice. This prefix will be appended to the beginning of all metrics sent to the output stream, allowing you to easily differentiate them from other metrics in your system.
The Prometheus Remote Write Exporter can be used to send OpenTelemetry metrics to Prometheus remote write compatible backends. By leveraging this capability, you can easily visualize these metrics on the Apica Ascent platform, allowing you to gain valuable insights into the performance of your system.
VictoriaMetrics is a fast, cost-effective, and scalable monitoring solution and time-series database. vmagent
is an agent which helps you collect metrics from various sources and store them in VictoriaMetrics or any other Prometheus-compatible storage systems that support the remote_write
protocol. VMagent has the ability to push metrics additionally to pulling them; push model is a traditional model of the client sending data to the server:
Run the vmagent as shown below and pass the below parameters
remoteWrite.tls.url=https://<apica-ascent-endpoint>/api/v1/receive
remoteWrite.tlsInsecureSkipVerify