# Monitor Wowza/JVM metrics with prometheus

**URL:** <https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [May 5, 2021, 2:55pm UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265 "2021-05-05T14:55:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haridas\_Terhanian](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/haridas_terhanian/32/762_2.png) [@Haridas\_Terhanian](https://community.wowza.com/u/Haridas_Terhanian)\
**Post date:** [May 5, 2021, 2:55pm UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/1 "2021-05-05T14:55:34Z")

</div>

I spent a few hours figuring out how to monitor Wowza with prometheus. Sharing it here for others

### 1. Get the compiled jmx\_prometheus javaagent and create the config.yaml for it

```auto
mkdir /opt/jmx_prometheus
cd /opt/jmx_prometheus
https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.15.0/jmx_prometheus_javaagent-0.15.0.jar
echo '---
startDelaySeconds: 0
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false' > /opt/jmx_prometheus/config.yaml

```

### 2. Add javaagent to Wowza Tune.xml and restart

Add it to the VMOptions section

```auto
<VMOptions>
            <VMOption>-javaagent:/opt/jmx_prometheus/jmx_prometheus_javaagent-0.15.0.jar=8081:/opt/jmx_prometheus/config.yaml</VMOption>

```

### 3. Restart wowza

```auto
systemctl restart Wowza*

```

### 4. Check your metrics

```auto
curl http://localhost:8081/metrics

```

That’s it! Look at the jmx\_exporter repo for instructions on how to limit what metrics are shown to reduce load on Wowza server.

---

<div class="post-metadata">

**Author:** ![Chris\_Deely](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/chris_deely/32/977_2.png) [@Chris\_Deely](https://community.wowza.com/u/Chris_Deely)\
**Post date:** [November 23, 2021, 1:38am UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/2 "2021-11-23T01:38:28Z")

</div>

Thanks, this was very helpful!  
On the second line, I think you forgot to add `wget` or a similar `curl` command to download the `jar` file:

```auto
wget https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.15.0/jmx_prometheus_javaagent-0.15.0.jar

```

I’m curious if you have any Prometheus queries that you have found useful for monitoring Wowza? I am just getting started with Prometheus & Grafana, so open to any suggestions.

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [November 25, 2021, 1:23am UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/3 "2021-11-25T01:23:07Z")

</div>

I am curious to a different question here.

Why is Prometheus/Grafana more useful than wse manager here? What additional metrics are you I measuring?

---

<div class="post-metadata">

**Author:** ![Haridas\_Terhanian](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/haridas_terhanian/32/762_2.png) [@Haridas\_Terhanian](https://community.wowza.com/u/Haridas_Terhanian)\
**Post date:** [November 25, 2021, 5:32pm UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/4 "2021-11-25T17:32:19Z")

</div>

I can’t edit my post to add wget but at least someone can read yours.

The agent exposes metrics starting with these names

> java\_lang\_\*  
> jvm\_\*  
> WowzaStreamingEngine\_\*

I started with this dashboard: [JVM metrics | Grafana Labs](https://grafana.com/grafana/dashboards/14359) that already monitors jvm metrics. Then I created a single graph for all the WowzaStreamingEngine\_Connections\*\_current metrics.

In my implementation, Wowza does not release memory properly and has to be restarted on a schedule to maintain good performance. I wanted to get a better idea of what was going on internally so I’m mainly looking at connection counts and the different jvm memory pools.

 ![Screenshot from 2021-11-25 09.25.32](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/b5d7c6c22c38b8526fe6e95385f6c68649f1c8b6.png)

---

<div class="post-metadata">

**Author:** ![Haridas\_Terhanian](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/haridas_terhanian/32/762_2.png) [@Haridas\_Terhanian](https://community.wowza.com/u/Haridas_Terhanian)\
**Post date:** [November 25, 2021, 5:41pm UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/5 "2021-11-25T17:41:54Z")

</div>

I use Grafana already so I find it more convenient when I can look at all metrics in one place.

When I was investigating Wowza memory usage, after reading articles like these: [https://spring.io/blog/2019/03/11/memory-footprint-of-the-jvm](https://spring.io/blog/2019/03/11/memory-footprint-of-the-jvm) , I thought it would be useful to monitor the JVM internals which WSE does not provide.

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [November 26, 2021, 2:40pm UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/6 "2021-11-26T14:40:09Z")

</div>

Ah I see jvm stats ofcourse !

---

<div class="post-metadata">

**Author:** ![Pham\_Huy](https://avatars.discourse-cdn.com/v4/letter/p/cc9497/32.png) [@Pham\_Huy](https://community.wowza.com/u/Pham_Huy)\
**Post date:** [November 14, 2022, 2:20am UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/7 "2022-11-14T02:20:44Z")

</div>

do you can share dashboard the WowzaStreamingEngine by file json

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 14, 2022, 5:43pm UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/8 "2022-11-14T17:43:46Z")

</div>

Hello do you mean share the dashboard and stream data with a team member but without full admin access?

---

<div class="post-metadata">

**Author:** ![Pham\_Huy](https://avatars.discourse-cdn.com/v4/letter/p/cc9497/32.png) [@Pham\_Huy](https://community.wowza.com/u/Pham_Huy)\
**Post date:** [November 15, 2022, 4:31am UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/9 "2022-11-15T04:31:21Z")

</div>

how to monitor wowza with prometheus and grafana

---

<div class="post-metadata">

**Author:** ![william.cornejo](https://avatars.discourse-cdn.com/v4/letter/w/ed655f/32.png) [@william.cornejo](https://community.wowza.com/u/william.cornejo)\
**Post date:** [November 13, 2025, 4:48pm UTC](https://community.wowza.com/t/monitor-wowza-jvm-metrics-with-prometheus/93265/12 "2025-11-13T16:48:15Z")

</div>

Whenever Wowza or its pod is restarted, the metrics are lost and only new data is available to WSE Manager,

The good thing about monitoring Wowza with Prometheus/Grafana is that it enables us to store them for long term analysis.
