How to ingest Metrics into Azure Monitor via Webhhook.

Link, Jonas 0 Reputation points
2024-06-19T10:08:55.9433333+00:00

Hi,

I'm trying to ingest metrics vom Cribl to Azure Monitor managed service for Prometheus. For this I'm using a Webhook in Cribl with following data ingestion adress:
https://prometheus-cribl-dev-xxxx.germanywestcentral-1.metrics.ingest.monitor.azure.com/dataCollectionRules/dcr-67xxxxxxxxxxxxxxxx999209e539/streams/Microsoft-PrometheusMetrics/api/v1/write?api-version=2023-04-24

The Authentication with the Bearer token works, but now I'm getting the error message: Error":{"Code":"UnsupportedMediaType","Message":"Content-Type : application/json is not supported."
I already have set the Content-Type to "application/json" on the HTTP Header.

Do you have any idea how to fix this? Thanks!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,934 questions
0 comments No comments
{count} votes