# Fixing Prometheus metrics contribution

**URL:** https://discourse.orthanc-server.org/t/fixing-prometheus-metrics-contribution/6490
**Category:** General
**Tags:** rest-api
**Created:** [October 14, 2026, 4:25pm UTC](https://discourse.orthanc-server.org/t/fixing-prometheus-metrics-contribution/6490 "2026-10-14T16:25:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sergei](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Sergei](https://discourse.orthanc-server.org/u/Sergei)
#### Post date: [October 14, 2026, 4:25pm UTC](https://discourse.orthanc-server.org/t/fixing-prometheus-metrics-contribution/6490/1 "2026-10-14T16:25:47Z")

</div>

Hello Team,

I was configuring Grafana metrics collection and found that tools/metrics-prometheus returns the same value for orthanc\_uncompressed\_size\_mb and orthanc\_disk\_size\_mb. So I prepared a small patch to fix this issue.

[contribution.txt](https://discourse.orthanc-server.org/uploads/short-url/9XmXK5Jno3jXG6t6Bv3KDnzcapw.txt) (1.2 KB)
