oci-go-sdk
oci-go-sdk copied to clipboard
Problems with posting custom metrics using the monitoring endpoint
Hi,
When attempting to post metrics using the monitoring client's PostMetricData function , I'm getting these errors:
Service error:NotAuthorizedOrNotFound. Authorization failed or requested resource not found.. http status code: 404.
If I'm not mistaken, the issue is that posting metrics requires us to use to a different endpoint, as documented:
Replace the string telemetry with telemetry-ingestion in the endpoint...
It looks like I can get around this issue by setting the client's Host value, but is there a much better way to make a successful request?
I am still pretty new to Go and the OCI Go SDK, so any help would be most appreciated. Thanks!
Best regards, Adrian