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

config api #8489

Closed
wants to merge 15 commits into from
Closed

config api #8489

wants to merge 15 commits into from

Conversation

ssoroka
Copy link
Contributor

@ssoroka ssoroka commented Nov 30, 2020

config.api plugin

  • adds http listener for incoming config requests which can load and unload Telegraf plugins without restarting
  • adds storage plugins
  • persist list of running plugins and their configuration across restarts
  • makes agent the manager of running plugin list instead of config package.
  • supports json-based config
  • supports dynamically building a json description of plugin config from plugins
  • supports dynamically assigning config from json

@ssoroka ssoroka self-assigned this Nov 30, 2020
@ssoroka ssoroka changed the title config api - wip config api Jun 17, 2021
@srebhan srebhan mentioned this pull request Jul 7, 2021
2 tasks
@reimda
Copy link
Contributor

reimda commented Jul 8, 2021

Hi Steven, Jess asked us to get config api reviewed through this PR.

Your last change here was Feb 12 and there are lots of merge conflicts. Is this your latest code and is it ready for review? I took a quick look at the conflicts and most of them are trivial, but agent/agent.go is more complex. It doesn't seem productive to do a review of it without the conflicts resolved. Would you resolve them?

We're going to need the test and once command line options to be working before this can be merged. Are they still disabled?

@reimda
Copy link
Contributor

reimda commented Jul 8, 2021

The agent tests don't pass for me. In master they load a test config file (config/testdata/telegraf-agent.toml) but don't start running the plugins. It looks like in this branch they run the plugins which causes the tests to fail because they can't connect to services. I've attached the output of test -short -race ./agent/ 2>&1 > configapi_agent_test.txt

configapi_agent_test.txt

@ssoroka
Copy link
Contributor Author

ssoroka commented Jul 19, 2021

All tests are passing on the branch now. You won't see this in github because it's running it against master, not the local branch. Once you've had a pass-through we can look at updating it with the latest master branch.

@ssoroka ssoroka mentioned this pull request Jul 27, 2021
@ssoroka
Copy link
Contributor Author

ssoroka commented Jul 27, 2021

this branch has been rebased with master and moved to #9546. this can be closed when the review is done or not using this branch anymore.

@sspaink
Copy link
Contributor

sspaink commented Jul 27, 2021

Closing in favor of: #9546

@sspaink sspaink closed this Jul 27, 2021
@powersj powersj deleted the config-api-1 branch January 23, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants