如何解决有什么可以将单个马拉松json转换为分组应用程序json
缩放比例:
如果我们扩展存储(TiKV), 我不确定它能否成功向PD报告其存在。 (正在努力) 因为grafana DashBoard无法正常工作(正在处理)
您知道吗,是否可以运行Tidb的任何查询以查看我有多少个TiKV惯性?要么 我有多少个区域? 哦!!记住pd-ctl:))
普罗米修斯
{
"id": "/prometheus","cmd": null,"cpus": 0.2,"mem": 1024,"disk": 0,"instances": 1,"acceptedResourceRoles": [],"container": {
"type": "DOCKER","volumes": [
{
"containerPath": "/etc/prometheus/prometheus.yml","hostPath": "/config/prometheus.yml","mode": "RO"
},{
"containerPath": "/etc/prometheus/pd.rules.yml","hostPath": "/config/pd.rules.yml","mode": "RW"
},{
"containerPath": "/etc/prometheus/tikv.rules.yml","hostPath": "/config/tikv.rules.yml",{
"containerPath": "/etc/prometheus/tidb.rules.yml","hostPath": "/config/tidb.rules.yml",{
"containerPath": "/data","hostPath": "/data","mode": "RW"
}
],"docker": {
"image": "prom/prometheus:v2.2.1","network": "BRIDGE","portMappings": [
{
"containerPort": 9090,"hostPort": 0,"servicePort": 10004,"protocol": "tcp","labels": {}
}
],"privileged": true,"parameters": [
{
"key": "label","value": "app=prometheus"
}
],"forcePullImage": false
}
},"portDeFinitions": [
{
"port": 10004,"labels": {}
}
],"args": [
"--log.level=error","--storage.tsdb.path=/data/prometheus","--config.file=/etc/prometheus/prometheus.yml"
],"backoffFactor": 5,"upgradeStrategy": {
"minimumHealthCapacity": 0,"maximumOverCapacity": 0
},"taskKillGracePeriodSeconds": 60
}
# pushgateway
{
"id": "/pushgateway","volumes": [],"docker": {
"image": "prom/pushgateway:v0.3.1","portMappings": [],"value": "app=pushgateway"
}
],"portDeFinitions": [
{
"port": 10003,"args": [
"--log.level=error"
],"taskKillGracePeriodSeconds": 60
}
# grafana
{
"id": "/grafana","volumes": [
{
"containerPath": "/etc/grafana","hostPath": "/config/grafana",{
"containerPath": "/var/lib/grafana/dashboards","hostPath": "/config/dashboards","docker": {
"image": "grafana/grafana:6.0.1","portMappings": [
{
"containerPort": 3000,"servicePort": 10002,"value": "app=grafana"
}
],"env": {
"GF_LOG_LEVEL": "error","GF_PATHS_PROVISIONING": "/etc/grafana/provisioning","GF_PATHS_CONfig": "/etc/grafana/grafana.ini"
},"portDeFinitions": [
{
"port": 10002,"taskKillGracePeriodSeconds": 60
}
# PD
{
"id": "/pd","volumes": [
{
"containerPath": "/pd.toml","hostPath": "/config/pd.toml",{
"containerPath": "/logs","hostPath": "/logs","docker": {
"image": "pingcap/pd:latest","portMappings": [
{
"containerPort": 2379,"servicePort": 10000,"labels": {}
},{
"containerPort": 2380,"servicePort": 10001,"value": "app=pd"
}
],"portDeFinitions": [
{
"port": 10000,"labels": {}
},{
"port": 10001,"args": [
"--config=/pd.toml","--log-file=/logs/pd.log"
],"taskKillGracePeriodSeconds": 60
}
# TiKV
{
"id": "/tikv","volumes": [
{
"containerPath": "/tikv.toml","hostPath": "/config/tikv.toml","docker": {
"image": "pingcap/tikv:latest","portMappings": [
{
"containerPort": 20160,"servicePort": 10005,"value": "app=tikv"
}
],"env": {
"TASK_SLOT": "{{.Task.Slot}}"
},"portDeFinitions": [
{
"port": 10005,"args": [
"--config=/tikv.toml"
],"taskKillGracePeriodSeconds": 60
}
# TiDB
{
"id": "/tidb","volumes": [
{
"containerPath": "/tidb.toml","hostPath": "/config/tidb.toml","docker": {
"image": "pingcap/tidb:latest","portMappings": [
{
"containerPort": 4000,"servicePort": 10006,{
"containerPort": 10080,"servicePort": 10007,"value": "app=tidb"
}
],"portDeFinitions": [
{
"port": 10006,"name": "default",{
"port": 10007,"labels": {}
}
]
}
到目前为止,我做到了。但是有没有人可以帮助我将这些json转换为马拉松组应用json(多层应用)json格式,以使用v2 / groups进行发布?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。