-
Notifications
You must be signed in to change notification settings - Fork 60
Bump kube-prometheus-stack for multi-cluster support #162
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
Bump kube-prometheus-stack for multi-cluster support #162
Conversation
3c53d03 to
12d5a1e
Compare
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.
Some optional suggestions but looks good to merge
cli/cmd/upgrade/upgrade.go
Outdated
| "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml", | ||
| "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml", | ||
| "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.47.0/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml", | ||
| "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.49.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml", |
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.
is there anyway we can have a test to make sure this version is aligned with the kube-prometheus-stack version? Otherwise this is very easy to forget to do.
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.
Tests definitely sound reasonable. But usually, during the kube-prometheus version bump, we read the upgrade guide in kube-prometheus helm chart to understand the changes for upgrades.
I will add the tests on this.
| @@ -0,0 +1,128 @@ | |||
| # Tobs helm values config | |||
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.
hmm. I think there are two different types of config here.
- config which you need only for things that don't use the CLI (high-availability)
- config applicable to both helm chart and CLI. (multicluster)
Type 1 is ok here. I'd move type 2 stuff into a new top-level /docs directory. It does not belong under /chart and I'd add new links from the front-page readme here.
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.
So currently using CLI we offer only abstract features with flags like HA, integration with forge, etc... all these features can also be configured within values.yaml. All the flexibility lies in the values.yaml so the intention behind creating this file is to document all possible configurations across different components in tobs.
Yes, I agree with you only config related to values.yaml will reside in this file. Anything about CLI will be in a new file in the high level root directory of this repo.
chart/docs/values-config.md
Outdated
| externalLabels: | ||
| cluster: <clusterName> | ||
| remoteRead: | ||
| - url: "<PROMSCALE_ENDPOINT>/read" |
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.
| - url: "<PROMSCALE_ENDPOINT>/read" | |
| - url: "<PROMSCALE_SERVICE_ENDPOINT_OF_DATA_AGGREGATION_CLUSTER>/read" |
| replicas: 3 | ||
| ``` | ||
|
|
||
| ## Multi-cluster support |
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.
can we have a diagram for this section showing the various clusters etc.
12d5a1e to
f24b62f
Compare
f24b62f to
8b7909a
Compare
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.
Looks good except for missing image
|
|
||
| ## Multi-cluster support | ||
|
|
||
| <img src="./../../docs/assets/multi-cluster.png" alt="multi-cluster setup diagram" width="800"/> |
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 believe you forgot to add this image in the PR?
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.
Added it to the PR here is the file: https://github.com/timescale/tobs/pull/162/files#diff-1a7cd77999e454c5a336fcb163eb5108d70057981aa40d648c619671eba20b3e
fixes: #156