<p></p>
<p dir="auto">Hello mneirynck,</p>
<p dir="auto">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.</p>
<p dir="auto">Currently OpenMetrics recommend not to use UNKNOWN metric types<br>
<a href="https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#unknown">https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#unknown</a><br>
and Cloudwatch do not support unknown Prometheus metrics<br>
<a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-metrics-conversion.html" rel="nofollow">https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-metrics-conversion.html</a></p>
<p dir="auto">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<br>
<a href="https://github.com/florentchauveau/kamailio_exporter/blob/master/collector.go">https://github.com/florentchauveau/kamailio_exporter/blob/master/collector.go</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3001#issuecomment-1013089715">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKWB6VBCATYSGVDOETUWALTNANCNFSM5L2BYUTQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZIRPYAATBV4CXMFZCDUWALTPA5CNFSM5L2BYUT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHRRILMY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3001/1013089715</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3001#issuecomment-1013089715",
"url": "https://github.com/kamailio/kamailio/issues/3001#issuecomment-1013089715",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>