-
Notifications
You must be signed in to change notification settings - Fork 499
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
Support-Multi-version-TiDB-monitor #666
Conversation
charts/tidb-cluster/values.yaml
Outdated
@@ -330,6 +330,10 @@ monitor: | |||
persistent: false | |||
storageClassName: local-storage | |||
storage: 10Gi | |||
initializer: | |||
create: true | |||
image: pingcap/tidb-monitor-initializer:v3.0.0-rc.1 |
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.
$ docker pull pingcap/tidb-monitor-initializer:v3.0.0-rc.1
Error response from daemon: pull access denied for pingcap/tidb-monitor-initializer, repository does not exist or may require 'docker login'
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.
https://github.com/pingcap/monitoring The images here are note uploaded to DockerHub yet.
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.
The values in other places like test, terraform also have to be updated.
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.
We could have a CI check to tell us that terraform values are out of date.
/run-e2e-tests |
@@ -181,23 +185,10 @@ spec: | |||
- key: dashboard-config | |||
path: dashboards.yaml | |||
name: dashboards-provisioning | |||
- emptyDir: {} |
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 it better to use the same directory as the data directory?
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.
数据目录是 PV,配置不需要PV
Signed-off-by: qiffang <947321353@qq.com>
@@ -11,6 +11,9 @@ metadata: | |||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | |||
spec: | |||
replicas: 1 | |||
strategy: | |||
type: Recreate | |||
rollingUpdate: null |
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?
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这个会有问题
Error: UPGRADE FAILED: Deployment.apps “tikv200-monitor” is invalid: spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy `type` is ‘Recreate’
需要显示把这个置为null
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.
ok
/run-e2e-tests |
Signed-off-by: qiffang <947321353@qq.com>
…ng/tidb-operator into Multi-version-TiDB-monitor
/run-e2e-tests |
value: /grafana-dashboard-definitions/tidb | ||
- name: TIDB_CLUSTER_NAME | ||
value: {{ template "cluster.name" . }} | ||
- name: TIDB_ENABLE_BINLOG |
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 add this env? TIDB_ENABLE_BINLOG
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.
This env is used to decide whether Grafana show BinLog dashboard.
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
Signed-off-by: qiffang <947321353@qq.com>
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
/run-e2e-tests |
(cherry picked from commit 5a227d8)
Signed-off-by: Ran <huangran@pingcap.com>
What problem does this PR solve?
In this PR, it contains 3 functions
1.TiDB multi version
In this PR, Every TiDB has own monitor initializer image.
And the docker receive 4 variables
TiDB Operator use the new monitor way to replace the old.
2.Dynamic update alert rules
In reload, it support a UI to update alert rules and it will call reload of Promtheus.
The UI likes this
What is changed and how does it work?
Delete the old way and import a tidb-monitor-initializer image to init grafana dashboards and prometheus rules.
Check List
Tests
Related changes
Does this PR introduce a user-facing change?: