当前位置: 首页 > news >正文

小程序与手机网站区别阿里云官网首页

小程序与手机网站区别,阿里云官网首页,网站怎么发内容优化,制作微信小程序商城获取Grafana dashboards的JSON文件 这里是获取已经编辑好的Grafana dashboards的JSON文件;以便内置到Kube-Prometheus-Stack的helm charts的安装zip文件中。 编辑自定义dashboards JSON文件 获取dashboards JSON文件模板 其实Kube-Prometheus-Stack内部本身已经内…

获取Grafana dashboards的JSON文件

在这里插入图片描述

这里是获取已经编辑好的Grafana dashboards的JSON文件;以便内置到Kube-Prometheus-Stack的helm charts的安装zip文件中。

编辑自定义dashboards JSON文件

获取dashboards JSON文件模板

其实Kube-Prometheus-Stack内部本身已经内置了大量kubenetes监控的dashboards。 进入目录,从这里目录复制任意一个作为模板。

cd kube-prometheus-stack/templates/grafana/dashboards-1.14
cp alertmanager-overview.yaml my-dashboard.yaml

对 my-dashboard.yaml 文件进行修改

  • 删除头部的注释
{{- /*
Generated from 'alertmanager-overview' from https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/2a14b95595fd6767bdeb03ca7460b15a3793d503/manifests/grafana-dashboardDefinitions.yaml
Do not change in-place! In order to change this file first read following link:
https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack
*/ -}}
  • 修改ConfigMap的名称

在这里插入图片描述

  name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "my-dashboard" | trunc 63 | trimSuffix "-" }}
  • 修改data的键和值

  my-dashboard.json: |-{"annotations":{"list":[{"builtIn":1,"datasource":{"type":"grafana","uid":"-- Grafana --"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","type":"dashboard"}]},"editable":true,"fiscalYearStartMonth":0,"graphTooltip":0,"id":86,"links":[],"panels":[{"datasource":{"type":"prometheus","uid":"prometheus"},"fieldConfig":{"defaults":{"color":{"mode":"palette-classic"},"custom":{"axisBorderShow":false,"axisCenteredZero":false,"axisColorMode":"text","axisLabel":"","axisPlacement":"auto","barAlignment":0,"drawStyle":"line","fillOpacity":0,"gradientMode":"none","hideFrom":{"legend":false,"tooltip":false,"viz":false},"insertNulls":false,"lineInterpolation":"linear","lineWidth":1,"pointSize":5,"scaleDistribution":{"type":"linear"},"showPoints":"auto","spanNulls":false,"stacking":{"group":"A","mode":"none"},"thresholdsStyle":{"mode":"off"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null},{"color":"red","value":80}]}},"overrides":[]},"gridPos":{"h":8,"w":12,"x":0,"y":0},"id":1,"options":{"legend":{"calcs":[],"displayMode":"list","placement":"bottom","showLegend":true},"tooltip":{"maxHeight":600,"mode":"single","sort":"none"}},"targets":[{"datasource":{"type":"prometheus","uid":"prometheus"},"editorMode":"code","expr":"up","instant":false,"legendFormat":"__auto","range":true,"refId":"A"}],"title":"启动情况面板","type":"timeseries"}],"schemaVersion":39,"tags":[],"templating":{"list":[]},"time":{"from":"now-6h","to":"now"},"timeRangeUpdatedDuringEditOrView":false,"timepicker":{},"timezone":"browser","title":"自定义资源视图","uid":"ce0svip2ggmwwf","version":1,"weekStart":""}

这样就增加了一个自定义的Grafana dashboards;然后使用如下命令安装Kube-Prometheus-Stack;即可在安装时带入自定义的dashboard。

helm install kube-promethues-stack . -n kube-prom --debug

参考:

https://www.doit.com/how-to-add-custom-grafana-dashboards-in-code-using-the-kube-prometheus-stack-helm-chart/
http://www.ds6.com.cn/news/63860.html

相关文章:

  • 浅灰色做网站背景苹果被曝开发搜索引擎对标谷歌
  • 兼容手机的网站厦门百度广告开户
  • 建筑智库免费网站短视频运营是做什么的
  • jsp做的知名网站百度的竞价排名是哪种方式
  • 申请域名哪个网站好计算机培训机构哪个最好
  • 在国外做盗版电影网站免费推广途径与原因
  • 百度竞价网站建设中国最新消息新闻
  • 长沙手机网站设计公司今天最火的新闻头条
  • ecshop做门户网站自助搭建平台
  • 赣州推广团队北京网站seo优化推广
  • 小程序源码无需服务器智能网站排名优化
  • 做vr网站优化科技
  • 网站建设方案-奢侈品360建站官网
  • 梦织做网站十大教育培训机构排名
  • 企业网站建设策划书公司快速建站
  • 动力网站代码广告推广投放平台
  • 初期做网站福州百度seo排名软件
  • 苏州建设网站免费网站制作软件平台
  • wordpress网站响应速度插件南宁seo排名外包
  • 苏州市住房城乡建设局网站首页软件开发培训机构
  • 什么网站做问卷好百度资源
  • 贵州萝岗seo整站优化seo营销推广多少钱
  • 网站推广与维护设计方案百度seo是什么
  • 重庆有几个区几个县北京seo业务员
  • 网上购物app有哪些谷歌seo网络公司
  • 网页设计网站设计哪个好视频外链在线生成
  • 怎么做自己的淘客网站推广产品的软文
  • 网站栏目变了怎么做跳转百度代理查询
  • wordpress心理教育网站关键词推广计划
  • 咸阳做网站的公司建立网站的基本流程