Skip to content

Output cloudrun addition#10369

Closed
crflanigan wants to merge 98 commits intoinfluxdata:masterfrom
homedepot:output-cloudrun-addition
Closed

Output cloudrun addition#10369
crflanigan wants to merge 98 commits intoinfluxdata:masterfrom
homedepot:output-cloudrun-addition

Conversation

@crflanigan
Copy link
Copy Markdown
Contributor

@crflanigan crflanigan commented Jan 3, 2022

Required for all PRs:

resolves #7913

Added an output plugin for Google Cloud Run which implements the OAuth 2.0 protocol enabling the Telegraf agent to send encrypted metric payloads into a time series metrics proxy running in GCP.

zachmares and others added 16 commits December 21, 2021 08:39
Included TODOs with outstanding items. The main outstanding items are refreshing the auth token, and adding test cases.
Corrected bug that caused "field corresponding to `timeout' in cloudrun.CloudRun cannot be set through TOML"
removed some TODOs, print statements, and unneeded code.
DONE:
- Working basic Write test case
- Removed deprecated golang.org/x/oauth2/jws package
- Removed some print statements

TODO:
- More test cases to achieve more coverage
@powersj
Copy link
Copy Markdown
Contributor

powersj commented Jan 6, 2022

@srebhan could you take a look at this please :) I think I am generally happy with where this got to.

@srebhan
Copy link
Copy Markdown
Member

srebhan commented Jan 11, 2022

@powersj your whish is my command. ;-)

Copy link
Copy Markdown
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crflanigan, @zachmares and @powersj I think this looks quite nicely already, but do have some comments... One bigger question is if it makes sense to merge this into the more general oauth implementation for other plugins to also benefit. We could add a CreateCloundRunClient function there containing this implementation...

@srebhan srebhan self-assigned this Jan 11, 2022
@srebhan srebhan added the cloud Issues or requests around cloud environments label Jan 11, 2022
@crflanigan crflanigan marked this pull request as draft May 7, 2022 01:21
zachmares added 4 commits May 7, 2022 01:23
rebased upstream/master and reset --hard origin/master
For Google API auth, the audience is the URL of the service getting invoked.
@crflanigan
Copy link
Copy Markdown
Contributor Author

crflanigan commented May 8, 2022

Closing this as the scope of this PR has drifed quite a bit based on feedback from the community. We will open a new PR with the updated code and feature description.

@srebhan
Copy link
Copy Markdown
Member

srebhan commented May 9, 2022

@crflanigan let me know about the new PR!

@reimda reimda mentioned this pull request May 11, 2022
3 tasks
@crflanigan
Copy link
Copy Markdown
Contributor Author

New PR can be found here
#11084

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/configuration feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output plugin that supports sending metrics into Google CloudRun

5 participants