Add remote write configuration for v2.26+ #5414
 <br/>All committers have signed the CLA.
Hi @cmacnaug 👋
Thanks for your pull request! Your PR is in a queue, and a writer will take a look soon. We generally publish small edits within one business day, and larger edits within three days.
Gatsby Cloud will automatically generate a preview of your request, and will comment with a link when the preview is ready (usually 20 to 30 minutes).
I think credentials needs an extra indentation to put it inside the authorization map?
Thanks, @haus!
@cmacnaug I'd love to use something with a little less passive voice.
How about: "This passes credentials in the URL. We don't recommend using it."?
@cmacnaug, there's at least one other doc page we'll need to update, I found this one as well:
Gatsby Cloud Build Report
docs-website-develop
:tada: Your build was successful! See the Deploy preview here.
Build Details
:clock1: Build time: 27m
That sounds fine to me. I'm honestly not sure that we still have a use case for this configuration mode, but didn't want to remove it in case it was useful for a user. Would the following be too verbose?
"This approach passes credentials in the URL. We don't recommend using it unless one of the above approaches doesn't work in your environment."
@cmacnaug, there's at least one other doc page we'll need to update, I found this one as well:
> * https://github.com/newrelic/docs-website/blob/develop/src/content/docs/infrastructure/prometheus-integrations/install-configure/remote-write-drop-data.mdx
Given that Tyler's testing suggests that bearer_token _may_ still work in 2.26 plus, I think it is okay to reference bearer_token on that page
I think updating the doc to reflect the latest Prometheus doc (i.e. the authorization block) makes sense to do (though I think both do work in the latest versions).
I tested and verified that the changes documented here work for Prometheus v2.30.3
~~LGTM~~
Please ignore!
No, I think that's fine. I'd change it slightly to:
"This approach passes credentials in the URL. We don't recommend using it unless one of these other approaches doesn't work in your environment."
What do you think @cmacnaug?
*This approach passes credentials in the URL. We don't recommend using it unless one of these other approaches doesn't work in your environment.*
Works for me, Thanks. I think based on Tyler's testing we should be good to go with these changes.
Looks good!
I'll get this merged in as soon as the checks pass @cmacnaug
paperclypse
cmacnaug
Prometheus made changes to the preferred way to configure remote write credentials in v2.26.