Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with posting custom metrics using the monitoring endpoint #404

Open
fuzziebrain opened this issue Jan 27, 2023 · 2 comments
Open
Labels
Monitoring Issue pertains to the Monitoring service

Comments

@fuzziebrain
Copy link

fuzziebrain commented Jan 27, 2023

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

@KartikShrikantHegde
Copy link

Hi @fuzziebrain , yes you are right, from SDKs, setting the client’s Host value is the way to change the endpoint manually. But understandably this is not an ideal experience for you. We will be creating a ticket against the service team to take a look at it. Thanks for reporting the issue.

@KartikShrikantHegde KartikShrikantHegde added the Monitoring Issue pertains to the Monitoring service label Feb 1, 2023
@fuzziebrain
Copy link
Author

Thanks Kartik. Very much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitoring Issue pertains to the Monitoring service
Projects
None yet
Development

No branches or pull requests

2 participants