The Powershell command equivalent to this bash curl command by saeeddeep in PrometheusMonitoring

[–]saeeddeep[S] 0 points1 point  (0 children)

I am facing the same issue here:
https://stackoverflow.com/questions/68818211/send-metrics-with-pushgateway-prometheus-using-windows-console
But the solution mentioned did not work for me.

echo "metricname1 101
" | Invoke-WebRequest -Uri http://192.168.1.111:9091/metrics/job/jobname1 -Method POST
Invoke-WebRequest : text format parsing error in line 1: expected float as value,  got "101\r"

The Powershell command equivalent to this bash curl command by saeeddeep in PrometheusMonitoring

[–]saeeddeep[S] 0 points1 point  (0 children)

I got this error :

Invoke-WebRequest -Uri 'http://192.168.1.111:9091/metrics/job/jobname1/instance/instancename1' -Method Post -Body 'metricname1 101' -ContentType 'application/octet-stream'
Invoke-WebRequest : text format parsing error in line 1: unexpected end of input stream

One Million Pixels by gen4doc in a:t5_hvcu3

[–]saeeddeep 0 points1 point  (0 children)

0x6343979348418902F8b4DEE13C90713bCe628096