The error message is very clear. You have tried to POST to a URL http://abc/push, and you're getting a 404 Not Found back: i.e. the server doesn't have any resource at the path "/push"
According to the API docs <https://cortexmetrics.io/docs/api/>, the correct path is /api/v1/push On Monday, 7 August 2023 at 10:39:16 UTC+1 sri L wrote: > Hi all, > > I am trying to do remotewrite from Prometheus to cortex but getting below > error. Can anyone please suggest how to solve this, thanks > > component=remote level=error remote_name=af04b2 url=http://abc/push > <http://10.125.66.105:80/push> msg="non-recoverable error while sending > metadata" count=172 err="server returned HTTP status 404 Not Found: <html>" > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e6d2adde-34ca-4a22-aca4-51cf98bb11d2n%40googlegroups.com.

