随笔分类 -  Prometheus

摘要:提前装好prometheus 在ceph node节点安装好node-exporter 编辑prometheus.yml vim /apps/prometheus/prometheus.yml - job_name: 'ceph-node-data' static_configs: - target 阅读全文
posted @ 2022-09-14 16:44 Maniana 阅读(284) 评论(0) 推荐(0)
摘要:下载并配置 [root@VM-0-15-centos ~]# wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.80.0/victoria-metrics-linux-amd64-v1.80.0- 阅读全文
posted @ 2022-08-25 13:54 Maniana 阅读(450) 评论(0) 推荐(0)
摘要:10.0.0.3 Prometheus 10.0.0.5 Prometheus联邦 10.0.0.7 Prometheus联邦 10.0.0.2 node_exporter 10.0.0.9 node_exporter 10.0.0.3、10.0.0.5、10.0.0.7都安装prometheus 阅读全文
posted @ 2022-08-25 08:14 Maniana 阅读(609) 评论(0) 推荐(0)
摘要:下载并配置 [root@k8s-node2 apps]# wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.80.0/victoria-metrics-linux-amd64-v1.80.0.ta 阅读全文
posted @ 2022-08-24 21:22 Maniana 阅读(314) 评论(0) 推荐(0)
摘要:下载并启动,9091端口有web界面 wget https://github.com/prometheus/pushgateway/releases/download/v1.4.3/pushgateway-1.4.3.linux-amd64.tar.gz -C /apps tar -xvf push 阅读全文
posted @ 2022-08-24 16:14 Maniana 阅读(384) 评论(0) 推荐(0)
摘要:自己注册一个企业微信,进入管理控制台。 在应用管理中点击创建应用 创建机器人 发送消息测试 发送消息测试,我这里可以正常收到消息 找到企业ID 找到机器人的AgentId 点击查看,把Secret保存下 查看下部门ID 添加微信告警配置 [root@harbor harbor]# vim /apps 阅读全文
posted @ 2022-08-24 13:45 Maniana 阅读(339) 评论(0) 推荐(0)
摘要:钉钉添加机器人 将webhook复制到脚本中 点一下加签复制保存下后面有用 配置告警脚本 [root@harbor apps]# cat dingding-keywords.sh #!/bin/bash source /etc/profile #PHONE=$1 #SUBJECT=$2 MESSAG 阅读全文
posted @ 2022-08-18 21:03 Maniana 阅读(1411) 评论(0) 推荐(0)
摘要:下载并配置 wget https://github.com/prometheus/alertmanager/releases/download/v0.24.0/alertmanager-0.24.0.linux-amd64.tar.gz -C /apps tar -xvf alertmanager- 阅读全文
posted @ 2022-08-17 13:47 Maniana 阅读(177) 评论(0) 推荐(0)
摘要:下载并解压 https://github.com/prometheus/blackbox_exporter/releases/download/v0.21.0/blackbox_exporter-0.21.0.linux-amd64.tar.gz tar -zxvf blackbox_exporte 阅读全文
posted @ 2022-08-12 16:53 Maniana 阅读(303) 评论(0) 推荐(0)
摘要:添加nginx-module-vts模块 # git clone https://github.com/vozlt/nginx-module-vts.git # mv nginx-module-vts /usr/local/src 配置nginx # wget http://nginx.org/do 阅读全文
posted @ 2022-08-12 15:48 Maniana 阅读(452) 评论(0) 推荐(0)
摘要:配置数据采集socket方式和haproxy-status # vim /etc/haproxy/haproxy.cfg stats socket /var/lib/haproxy/admin.sock mode 600 level admin listen stats bind :9009 sta 阅读全文
posted @ 2022-08-12 14:49 Maniana 阅读(361) 评论(0) 推荐(0)
摘要:创建数据库账号 create user 'mysql_exporter'@'localhost' IDENTIFIED BY 'imnot007*'; GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'mysql_exporter'@'loca 阅读全文
posted @ 2022-08-12 13:31 Maniana 阅读(174) 评论(0) 推荐(0)
摘要:部署redis和redis-exporter [root@k8s-master yaml]# kubectl apply -f redis-deployment.yaml [root@k8s-master yaml]# kubectl apply -f redis-exporter-svc.yaml 阅读全文
posted @ 2022-08-12 10:56 Maniana 阅读(560) 评论(0) 推荐(0)
摘要:制作tomcat镜像 [root@k8s-master tomcat-image]# ll total 473764 -rwxr-xr-x 1 root root 126 Aug 11 18:06 build-command.sh -rw-r--r-- 1 root root 697 Jun 12 阅读全文
posted @ 2022-08-11 19:19 Maniana 阅读(638) 评论(0) 推荐(0)
摘要:部署 kubectl apply -f case5-kube-state-metrics-deploy.yaml [root@k8s-master case]# cat case5-kube-state-metrics-deploy.yaml apiVersion: apps/v1 kind: De 阅读全文
posted @ 2022-08-11 16:39 Maniana 阅读(314) 评论(0) 推荐(0)
摘要:创建json配置文件 # mkdir /apps/prometheus/file_sd -p # vim /apps/prometheus/file_sd/sd_my_server.json [ { "targets": ["10.0.0.6:9100"] } ] 编辑prometheus文件添加j 阅读全文
posted @ 2022-08-11 15:08 Maniana 阅读(33) 评论(0) 推荐(0)
摘要:三台主机IP分别是10.0.0.17 10.0.0.6 10.0.0.15 配置consul wget https://releases.hashicorp.com/consul/1.13.0/consul_1.13.0_linux_amd64.zip mv consul_1.13.0_linux_ 阅读全文
posted @ 2022-08-11 14:29 Maniana 阅读(151) 评论(0) 推荐(0)
摘要:提前部署好二进制的prometheus,查找之前的博客里有笔记。 在k8s上获取token kubectl get serviceaccounts -n monitoring kubectl get serviceaccounts monitor -n monitoring -o yaml kube 阅读全文
posted @ 2022-08-10 16:59 Maniana 阅读(557) 评论(0) 推荐(0)
摘要:创建configmap [root@k8s-master case]# kubectl apply -f case3-1-prometheus-cfg.yaml configmap/prometheus-config created [root@k8s-master case]# cat case3 阅读全文
posted @ 2022-08-10 10:14 Maniana 阅读(198) 评论(0) 推荐(0)
摘要:创建ns kubectl create ns monitoring 提前准备好镜像gcr.io/cadvisor/cadvisor:v0.39.3 部署 cAdvisor模式 kubectl apply -f case1-daemonset-deploy-cadvisor.yaml [root@k8 阅读全文
posted @ 2022-08-09 16:21 Maniana 阅读(445) 评论(0) 推荐(0)