# Better Stack Prometheus metrics

<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
  <iframe 
    style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" 
    src="https://www.youtube.com/embed/OY7sFneB43w" 
    title="YouTube video player" 
    frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" 
    referrerpolicy="strict-origin-when-cross-origin" 
    allowfullscreen>
  </iframe>
</div>

## Start collecting metrics in 5 minutes

How you would like to collect your [Prometheus metrics](https://betterstack.com/community/guides/monitoring/prometheus-metrics-explained/)?

- [Forward metrics from your Prometheus instance](#forward-metrics-from-your-prometheus-instance)
- [We scrape metrics from your Prometheus exporters and apps](../prometheus-scrape)

## Forward metrics from your Prometheus instance

Collect metrics from your Prometheus instance using [Remote-Write](https://prometheus.io/docs/concepts/remote_write_spec/).

### 1. Configure your Prometheus

Add a `remote_write` section to your Prometheus config file:

```yaml
[label prometheus.yml]
global:
  scrape_interval: 15s
  evaluation_interval: 15s

# your existing configuration

remote_write:
  - url: "https://$INGESTING_HOST/metrics"
    authorization:
      type: Bearer
      credentials: "$SOURCE_TOKEN"
```

[info]
#### Can't set the Authorization header?

Some providers allow you to set up Remote-Write using only a URL, without any additional HTTP headers. In that case, include the token in a query parameter.

Use `https://$INGESTING_HOST/metrics?source_token=$SOURCE_TOKEN`.
[/info]

### 2. Reload the configuration

Reload the configuration of your Prometheus server:

[vector-select-platform]

[vector-platform unix]
```sh
[label Reload Prometheus server]
ps -A | grep prometheus | tr -s ' ' | xargs | cut -f1 -d' ' | xargs kill -HUP
```
[/vector-platform]
[vector-platform windows]
```powershell
[label Reload Prometheus server]
powershell Invoke-RestMethod -Method Post -Uri "http://localhost:9090/-/reload"
```
[/vector-platform]

### 3. See your metrics in Better Stack 🎉

You should see your metrics in the [Prometheus dashboard](https://telemetry.betterstack.com/team/0/dashboards/platform/prometheus ";_blank").

[info]
**Does the Prometheus dashboard show unexpected results?**

[Install Node exporter](https://betterstack.com/community/guides/monitoring/monitor-linux-prometheus-node-exporter/#setting-up-node-exporter) to use our [Prometheus dashboard](https://telemetry.betterstack.com/team/0/dashboards/platform/prometheus). The dashboard requires metrics provided by the Node exporter.
[/info]

## Need help?

Please let us know at hello@betterstack.com.  
We're happy to help! 🙏
