-
Notifications
You must be signed in to change notification settings - Fork 330
cluster: add new option to set VM as a remote writer #2520
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
Conversation
Signed-off-by: nolouch <nolouch@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2520 +/- ##
==========================================
+ Coverage 45.65% 50.12% +4.47%
==========================================
Files 337 337
Lines 36436 36465 +29
==========================================
+ Hits 16633 18275 +1642
+ Misses 17774 15950 -1824
- Partials 2029 2240 +211
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
xhebox
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.
Would you like to add related docs? LGTM
Signed-off-by: nolouch <nolouch@gmail.com>
|
New changes are detected. LGTM label has been removed. |
components/cluster/cluster
Outdated
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.
Remove this plz
Signed-off-by: nolouch <nolouch@gmail.com>
|
yes, I will update the document after all PR finished. |
| if monitors[0].EnableVMRemoteWrite { | ||
| vmDatasource := config.NewDatasourceConfig( | ||
| fmt.Sprintf("%s-vm", clusterName), | ||
| fmt.Sprintf("http://%s", utils.JoinHostPort(monitors[0].Host, monitors[0].NgPort)), |
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.
What If TLS enabled?
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 tested enabling TLS, but the monitoring service isn't using it. It seems TLS isn’t enabled for monitoring(only for scraping data).
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.
ptal @nexustar
| func NewDatasourceConfig(clusterName, url string) *DatasourceConfig { | ||
| return &DatasourceConfig{ | ||
| Name: clusterName, | ||
| Type: "prometheus", |
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.
Why the Type is also "prometheus" when NewConfig for vm?
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.
VM compatibility with Prometheus API. I still choose to treat the VM as Prometheus to ensure that PromQL can be used.
|
@XuHuaiyu: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kaaaaaaang The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What problem does this PR solve?
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes
Release notes: