<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Interpreting FusionAuth&#x27;s Prometheus metrics]]></title><description><![CDATA[<p dir="auto">Hello everyone,<br />
I'm setting up a Grafana dashboard for our FusionAuth instances and I've run into some confusion regarding the interpretation of several key metrics, particularly those exported as Dropwizard Histograms/Prometheus Summaries.</p>
<p dir="auto">I would be grateful if anyone who has successfully instrumented and analyzed these metrics could share their insights, especially concerning the units and the meaning of the quantile alignment.</p>
<p dir="auto">One of the confusing metrics are <code>Database_primary_pool_*</code><br />
one example scrape showed<br />
<code>Database_primary_pool_MaxConnections: 20.0</code><br />
but<br />
<code>Database_primary_pool_Usage{quantile="0.999"}: 45.0</code><br />
and at some point I saw a <code>1300</code> peak.<br />
Can I assume that in this case the quantile metric is the "time", specifically in milliseconds, consumed in the primary pool connection?</p>
<p dir="auto">Is there any documentation on how to interpret all metrics exposed by <code>/api/prometheus/metrics/</code>?<br />
I found this page <a href="https://fusionauth.io/docs/operate/monitor/prometheus" rel="nofollow ugc">https://fusionauth.io/docs/operate/monitor/prometheus</a> but there's no reference or documentation for the metrics</p>
<p dir="auto">Thank you in advance for any hint<br />
_<br />
Fabio</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3077/interpreting-fusionauth-s-prometheus-metrics</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 12:47:50 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3077.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Dec 2025 08:51:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Interpreting FusionAuth&#x27;s Prometheus metrics on Tue, 09 Dec 2025 15:52:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3709">@dalamenona</a> I see your point about the Database_primary_pool_MaxConnections being set to 20 on the value for usage being reported above that. Browsing around the web, I came across something that said Database_primary_pool_Usage is over the lifetime of the application, but can't seem to find the source now. You also make a valid point about around the other data defenitions. It may make sense to do a deeper dive into <a href="https://github.com/brettwooldridge/HikariCP?tab=readme-ov-file#spike-demand-pool-comparison" rel="nofollow ugc">HikariCP</a> sources in general.  There may be some answers there.</p>
<p dir="auto">Anyone here familiar with these numbers?</p>
<p dir="auto">It may also make sense for you to <a href="https://github.com/fusionauth/fusionauth-issues/issues" rel="nofollow ugc">open an issue</a> with FusionAuth as it is not clear to me if these numbers are coming from FusionAuth or HikariCP.</p>
]]></description><link>https://fusionauth.io/community/forum/post/8441</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8441</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Tue, 09 Dec 2025 15:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to Interpreting FusionAuth&#x27;s Prometheus metrics on Mon, 08 Dec 2025 15:25:08 GMT]]></title><description><![CDATA[<p dir="auto">hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a><br />
thank you very much to take the time to look into this.<br />
I've also asked the LLM and got a similar answer,<br />
as you suggested the <code>Database_primary_pool_Usage</code> indicates "how much of the primary database connection pool is currently in use"<br />
but this cannot be the number of connections because the metrics reported are often way above the max value of <code>Database_primary_pool_MaxConnections</code> which is set to 20, so for example a reported value of 45 or 100 makes no sense.<br />
For this I suspect that the quantile metric reported is the time consumed by the application in milliseconds, but this is just my best guess and I could be completely off.<br />
Also this metric: <code>Database_primary_pool_Usage_count</code> sems to be a monotonic counter, is this the size of the sample used to calculate the percentiles? If this never reset as long as the application is running, how large is the sample pool used to generate the quantiles?<br />
Sadly the page mentioned only helps you setting up Prometheus scraping, it's not a real reference for exported metrics.<br />
<strong>It would be very helpful to have a reference page for this metrics.</strong><br />
The Prometheus HELP that comes along with the metrics is not telling the unit either, but it's a generic summary:</p>
<pre><code># HELP Database_primary_pool_Usage Generated from Dropwizard metric import (metric=Database-primary.pool.Usage, type=com.codahale.metrics.Histogram)
# TYPE Database_primary_pool_Usage summary
</code></pre>
<p dir="auto">Same problem with other similar metrics:</p>
<pre><code># HELP Database_primary_pool_Wait Generated from Dropwizard metric import (metric=Database-primary.pool.Wait, type=com.codahale.metrics.Timer)
# TYPE Database_primary_pool_Wait summary
Database_primary_pool_Wait{quantile="0.5",} 3.7480000000000004E-6
Database_primary_pool_Wait{quantile="0.75",} 0.001360131
Database_primary_pool_Wait{quantile="0.95",} 0.0014736360000000002
Database_primary_pool_Wait{quantile="0.98",} 0.001568443
Database_primary_pool_Wait{quantile="0.99",} 0.0016282640000000001
Database_primary_pool_Wait{quantile="0.999",} 0.0023040590000000002
Database_primary_pool_Wait_count 1419.0
</code></pre>
<p dir="auto">Sorry for this rant, but it seems to be hard to have some meningful metrics in Grafana.<br />
My kindest regards<br />
_<br />
Fabio</p>
]]></description><link>https://fusionauth.io/community/forum/post/8438</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8438</guid><dc:creator><![CDATA[dalamenona]]></dc:creator><pubDate>Mon, 08 Dec 2025 15:25:08 GMT</pubDate></item><item><title><![CDATA[Reply to Interpreting FusionAuth&#x27;s Prometheus metrics on Fri, 05 Dec 2025 15:44:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3710">@fabio-venturi</a> I am not familiar with Prometheus, but I asked the AI on the FusionAuth site and it came back with.</p>
<p dir="auto"><code>Database_primary_pool_Usage</code> is a Prometheus metric exposed by FusionAuth which reports how much of the primary database connection pool is currently in use. It lets you see whether your HikariCP pool is close to exhaustion and is useful for capacity and health monitoring. [<a href="https://fusionauth.io/docs/operate/monitor/prometheus#run-prometheus-to-monitor-fusionauth" rel="nofollow ugc">Monitor Prometheus</a>]</p>
<p dir="auto">In the Prometheus UI you can graph it by entering <code>Database_primary_pool_Usage</code> in the expression box and executing the query. [<a href="https://fusionauth.io/docs/operate/monitor/prometheus#run-prometheus-to-monitor-fusionauth" rel="nofollow ugc">Monitor Prometheus</a>]</p>
<p dir="auto">It said it based the answer on the page you found, but I don't know enough to say for certain. Does this make sense to you?</p>
]]></description><link>https://fusionauth.io/community/forum/post/8437</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8437</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Fri, 05 Dec 2025 15:44:36 GMT</pubDate></item></channel></rss>