当前位置:网站首页>Prometheus Operator 通过additional 添加target
Prometheus Operator 通过additional 添加target
2022-08-09 18:53:00 【叱咤少帅(少帅)】
前言
Proms Operator 添加自定义监控可以通过如下两种方式实现,本文是 additional 方式。
- additional 方式
- serviceMonitor方式
官网
安装参考这个专栏里以前的博文。
##
https://github.com/prometheus-operator/kube-prometheus#quickstart
按照官网的部署,这个方式部署起来的prometheus还有很多的缺陷,不能直接用于生产环境使用,具体问题点如下:
官网
##
https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/additional-scrape-config.md
vim prometheus-prometheus.yaml
末尾添加:
additionalScrapeConfigs:
name: additional-scrape-configs
key: prometheus-additional.yaml
vim prometheus-additional.yaml
- job_name: "base-linux"
static_configs:
- targets: ["192.168.0.36:9090","192.168.0.11:9090"]
- job_name: "kafka-explorer"
static_configs:
- targets: ["192.168.0.11:9000"]
添加secret
kubectl create secret generic additional-scrape-configs --from-file=prometheus-additional.yaml --dry-run=client -oyaml > additional-scrape-configs.yaml
Next, apply the generated kubernetes manifest
##
kubectl apply -f additional-scrape-configs.yaml -n monitoring
查看
边栏推荐
猜你喜欢
《痞子衡嵌入式半月刊》 第 60 期
WPF 实现带蒙版的 MessageBox 消息提示框
[免费专栏] Android安全之动态代码注入技术(利用JDB调试APK)
C#/VB.NET: Extract text and pictures from PowerPoint document
启动 CM agent 报错——ImportError: libssl.so.10: cannot open shared object file: No such file or directory
小满nestjs(第四章 前置知识装饰器-实现一个GET请求)
[免费专栏] Android安全之和平精英(FZ)APK逆向分析
[免费专栏] Android安全之Android奇淫run-as命令
真香|持一建证书央企可破格录取
Toronto Research Chemicals单羟基舒更葡糖钠说明书
随机推荐
奥特曼卡牌隐藏的百亿市场
『百日百题 · 基础篇』备战面试,坚持刷题 第五话——循环语句(2)!
[免费专栏] Android安全之安卓APK浅析
2022.08.06_每日一题
Swift--多条件排序
Openharmony Lightweight System Experiment--GPIO Lighting
工大科雅深交所上市:市值45亿 齐承英家族是大股东
渗透测试-对新型内存马webshell的研究
有文章说明或者证明MYSQL 嵌套子查询不足之处吗?
php删除字符串的空格
解决执行Command报错executable file not found in $PATH
[免费专栏] Android安全之Root检测和绕过(浅析)
渗透测试——CFS三层靶机内网渗透实操
Flume (六) --------- Flume 数据流监控
Laravel DB批量更新的方法
39. 组合总和 && 40. 组合总和2 && 216. 组合总和3
Samsung's flagship discount is 1,800, Apple's discount is over 1,000, and the domestic flagship is only reduced by 500 to send beggars
小满nestjs(第四章 前置知识装饰器-实现一个GET请求)
Open Source Summer | List Details Display Based on Ruoyi Architecture
超多AI开发者等你来玩转,一起燃动昇腾AI创享日南京站!