-
Notifications
You must be signed in to change notification settings - Fork 311
Upload and Download of Prometheus configuration file #705
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
Upload and Download of Prometheus configuration file #705
Conversation
|
@skdwriting @wisererik @xing-yang Please review |
|
This is tested for Prometheus, am now extending it to the other 3rd party components too...that is a WIP |
1. renamed receiver to f from this 2. renamed path and conf constants to CamelCase
leonwanghui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean can you move the code in fileops.go to metrics.go. Because downloadconf and uploadconf is subpath under metrics.
leonwanghui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to the comments in #708.
refactored, moved into metrics.go |
|
Please rebase it. |
Done |
|
Also need a rebase. |
Update README.md
- added . in header copyright line
leonwanghui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@wisererik Please take a look at this PR. |
What this PR does / why we need it:
This PR enables us to
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #NA
Special notes for your reviewer:
The similar API is going to be used to upload and download configuration files for all telemetry 3rd party components, like Prometheus, Alert manager, Node exporter etc. The general flow is as below
Upload
Release note:
Upload API
Download API