Module: kamailio
Branch: master
Commit: 08d252e475c08b5222a7e15c4e181408defc0ea5
URL: 
https://github.com/kamailio/kamailio/commit/08d252e475c08b5222a7e15c4e181408defc0ea5

Author: Daniel Donoghue <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2026-02-06T22:57:02+01:00

xhttp_prom: add timestamp_format parameter

- add module parameter to control timestamp format in Prometheus metrics
- supported formats: "ms" (milliseconds, default), "s" (seconds),
  "sf" (seconds with fraction)
- addresses OpenMetrics compliance issues where millisecond timestamps
  are rejected by strict parsers like Grafana Alloy and Mimir
- maintains backward compatibility with "ms" as default
- updated documentation with parameter details and examples

---

Modified: src/modules/xhttp_prom/doc/xhttp_prom_admin.xml
Modified: src/modules/xhttp_prom/prom.c
Modified: src/modules/xhttp_prom/prom.h
Modified: src/modules/xhttp_prom/prom_metric.c
Modified: src/modules/xhttp_prom/xhttp_prom.c
Modified: src/modules/xhttp_prom/xhttp_prom.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/08d252e475c08b5222a7e15c4e181408defc0ea5.diff
Patch: 
https://github.com/kamailio/kamailio/commit/08d252e475c08b5222a7e15c4e181408defc0ea5.patch

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to