[sr-dev] [kamailio/kamailio] xHTTP_PROM does not include metric_type (Issue #3001)

vhernando notifications at github.com
Fri Jan 14 13:48:55 CET 2022


Hello mneirynck,

in Prometheus metrics when there is no # TYPE metadata it defaults to UNKNOWN metric type. This is suitable for xHTTP_PROM because it blindly takes Kamailio registered counters and export them. We do not know if they are Prometheus counters or if they are Prometheus gauges. 

Currently OpenMetrics recommend not to use UNKNOWN metric types 
https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#unknown 
and Cloudwatch do not support unknown Prometheus metrics 
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-metrics-conversion.html

On the other hand kamailio_exporter exports a set of metrics and defines clearly if they are counters, gauges, etc. So at this moment I recommend you to use kamailio_exporter to interface with Cloudwatch
https://github.com/florentchauveau/kamailio_exporter/blob/master/collector.go




-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3001#issuecomment-1013089715
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3001/1013089715 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220114/31b4479d/attachment.htm>


More information about the sr-dev mailing list