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

k8s-1.28.2 部署prometheus

一、prometheus  helm仓库

## 网站地址
# https://artifacthub.io/## prometheus 地址
# https://artifacthub.io/packages/helm/prometheus-community/prometheus

.

# helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

# helm repo update

二、下载及解压

# helm search repo prometheus-community

# helm pull prometheus-community/kube-prometheus-stack

三、修改values.yaml文件

# alertmanager: 修改ingress:enabled: trueingressClassName: nginxannotations: {}labels: {}hosts:- alertmanager.kyc.compaths:- /
storage:volumeClaimTemplate:spec:storageClassName: nfs-logsaccessModes: ["ReadWriteOnce"]resources:requests:storage: 50Gi# grafana  修改
ingress:enabled: trueingressClassName: nginxannotations: {}labels: {}hosts:- grafana.kyc.compath: /# prometheus: 修改
ingress:enabled: trueingressClassName: nginxannotations: {}labels: {}hosts:- prometheus.kys.compaths:- /
## Prometheus StorageSpec for persistent data## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/storage.md##storageSpec:## Using PersistentVolumeClaim##volumeClaimTemplate:spec:storageClassName: nfs-logsaccessModes: ["ReadWriteOnce"]resources:requests:storage: 70Gi

# helm upgrade --install prometheus ./ -f values.yaml  -n prometheus

四、测试

grafana:

密码:

# kubectl get secret -n prometheus prometheus-grafana -o jsonpath="{.data.admin-password}"|base64 --decode

五、添加数据源

有默认的,不用配置。

六、下载模板

下载模板:Grafana dashboards | Grafana Labs

七、导入dashboard

http://www.lryc.cn/news/512828.html

相关文章:

  • 记录第一次跑YOLOV8做目标检测
  • 使用Python爬取BOSS直聘职位数据并保存到Excel
  • node.js之---集群(Cluster)模块
  • SSM-Spring-IOC/DI对应的配置开发
  • 一文大白话讲清楚CSS元素的水平居中和垂直居中
  • 航顺芯片推出HK32A040方案,赋能汽车矩阵大灯安全与智能化升级
  • 智能工厂的设计软件 应用场景的一个例子:为AI聊天工具添加一个知识系统 之12 方案再探:特定于领域的模板 之2 首次尝试和遗留问题解决
  • redis zset底层实现
  • go.Bar如何让hovertext显示为legend
  • 【Vue】分享一个快速入门的前端框架以及如何搭建
  • Flink源码解析之:如何根据JobGraph生成ExecutionGraph
  • UE(虚幻)学习(三) UnrealSharp插件中调用非托管DLL
  • leetcode 3219. 切蛋糕的最小总开销 II
  • vant 地址记录
  • Lua语言入门 - Lua常量
  • 在Microsoft Windows上安装MySQL
  • windows下vscode使用msvc编译器出现中文乱码
  • Git 解决 everything up-to-date
  • Windows配置cuda,并安装配置Pytorch-GPU版本
  • Neo4j 图数据库安装与操作指南(以mac为例)
  • 2024年12月个人工作生活总结
  • PHP:IntelliJ IDEA 配置 PHP 开发环境及导入PHP项目
  • 【嵌入式C语言】指针数组结构体
  • 国产数据库TiDB从入门到放弃教程
  • 深入解析 Spring 属性:spring.codec.max-in-memory-size
  • 在K8S中,如何查看Pod状态的详情?事件显示cpu不足如何处理?
  • ArcGIS教程(009):ArcGIS制作校园3D展示图
  • REDIS2.0
  • 算法练习——模拟题
  • 京东供应链创新与实践:应用数据驱动的库存选品和调拨算法提升履约效率