### MetricsHub
MetricsHub 1.0.00

Home
- Integration

# Prometheus integration

> Note: This integration procedure is intended for the MetricsHub Enterprise Edition. If you are using the Community Edition, please refer to Quick Start[1].

MetricsHub sends the collected metrics to a Prometheus server using the Remote Write Protocol.

## Prerequisites

Before you can start viewing the metrics collected by MetricsHub in Prometheus, you must have:

1. Installed Prometheus[2]
2. Installed MetricsHub[3] on one or more systems that has network access to the resources to be monitored
3. Configured the monitoring of your resources[4].

## Configuration

1. First, configure your Prometheus server to allow the the Remote Write feature:

   - Enable the Remote Write Receiver[5] with the `--web.enable-remote-write-receiver` option
   - Configure the Remote Write Receiver[6]

2. Then, edit the `exporters` section of the `otel/otel-config.yaml` configuration file:

       exporters:
         prometheusremotewrite/your-prom-server: # The name of your Prometheus server
           endpoint: http://your-prom-server:9090/api/v1/write # The URL of your Prometheus server
           resource_to_telemetry_conversion:
             enabled: true

3. Declare the exporter in the pipeline section of otel/otel-config.yaml:

       service:
         extensions: [health_check]
         pipelines:
           metrics:
             receivers: [otlp, prometheus/internal]
             processors: [memory_limiter, batch, resourcedetection, metricstransform]
             exporters: [prometheusremotewrite/your-prom-server] # Declare your prometheus prometheusremotewrite exporter

4. Finally, restart Prometheus then MetricsHub to ensure that the configuration changes take effect.

## More Information

- Prometheus AlertManager
- Grafana Dashboards

- Prometheus
Prometheus AlertManager Grafana Dashboards

prometheus integration monitoring observability opentelemetry otel
Links:

- [1] ../guides/quick-start-community-prometheus.html
- [2] ../guides/quick-start-community-prometheus.html#step-2-install-prometheus
- [3] ../installation/index.html
- [4] ../configuration/configure-monitoring.html
- [5] https://prometheus.io/docs/prometheus/latest/feature_flags/#remote-write-receiver
- [6] https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write

## Search Results for {{siteSearch | truncate:'50'}}

{{resultArray.length}}
{{parent.title}} {{parent.title}}

{{result.title}}

{{result.body | truncate:'400'}}

{{parent.title}}
{{result.title}}
{{result.body | truncate:'100'}}

No results.