页面“Monitoring with prometheus”与“IT支持”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
 
 
第1行: 第1行:
==
 
  
 +
= pfSense=
  
=book=
+
[https://pfschina.org/wp/?p=825 pfSense上的OpenVPN:启用对远程LAN资源的访问]
  
[https://www.bookstack.cn/read/prometheus-book/README.md Prometheus操作指南]
+
[https://blog.csdn.net/qq_34046456/article/details/85302245 在虚拟机上安装PFsense详细图解]
=进阶=
 
以后全改成自己 docker-compose build
 
  
[https://blog.51cto.com/wzlinux/2487300 prometheus 监控概述(一)有常用监控警告]
+
[https://blog.csdn.net/qq_34046456/article/details/85302245  在虚拟机上安装PFsense详细图解]
  
[https://blog.51cto.com/wzlinux/2490670 PromQL 内置函数()]
+
[https://blog.csdn.net/myhaspl/article/details/13017061?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control  网络防火墙实战-基于pfsense(3)]
 +
== PF VPN==
 +
[https://chrislazari.com/pfsense-setting-up-openvpn-on-pfsense-2-4/  PFSense – Setting Up OpenVPN on PFSense 2.4.]
  
 +
=ros Mikrotik=
 +
[https://www.zhihu.com/question/21034719 如何评价极路由 HiWiFi]
  
 +
[https://www.jianshu.com/p/e38851f9de2f Mikrotik无线路由器快速设置教程]
  
[https://www.jb51.net/article/189679.htm  prometheus python 库编写自定义指标的方法(完整代码)]
+
https://openwrt.org/zh/start
  
=ins on docker-composer=
+
[https://blog.netlab.360.com/7500-mikrotik-routers-are-forwarding-owners-traffic-to-the-attackers-how-is-yours/ 窃听风云: 你的MikroTik路由器正在被监听]
https://gitee.com/atompi/PrometheusStackDockerCompose
 
  
=安全=
+
https://www.zhihu.com/topic/19653984/hot
<pre>
 
node exporter 添加防火墙
 
  
curl -Lo /etc/yum.repos.d/_copr_ibotty-prometheus-exporters.repo https://copr.fedorainfracloud.org/coprs/ibotty/prometheus-exporters/repo/epel-7/ibotty-prometheus-exporters-epel-7.repo
+
[https://zhuanlan.zhihu.com/p/101006349 树莓派软路由 OpenWrt 简介]
# yum install node_exporter
 
</pre>
 
  
=prometheus=
+
=路由器如何当交换机用=
[[Nginx用户密码认证配置 Basic HTTP authentication]]
+
公司的无线非常的卡 ,于是把一个坏的无线路由拿过来当作交换机 ,这样 win debian 都可以用上有钱的 当然 自己带了两段网线
  
不错的书
+
# 关掉这个路由的DHCP功能
https://yunlzheng.gitbook.io/prometheus-book/
+
#改掉LAN口IP地址
 +
#最网线不要接WAN接口  ,一个AP成功配置
  
 +
[https://product.pconline.com.cn/itbk/wlbg/hiwifi/1702/8881901.html 路由器如何当交换机用]
  
 +
[https://www.192ly.com/router-settings/mercury/mw325r-swsz.html 水星(MERCURY)MW325R路由器怎么设置]
  
 +
=双系统之win=
 +
2020年 08月 14日 星期五 15:37:29 CST
 +
如何删除双系统中的一个系统
  
[https://blog.csdn.net/lijiaocn/article/details/81865120 新型监控告警工具prometheus(普罗米修斯)的入门使用(附视频讲解)]
+
场景  本本有两个 win7  一个在ssd  ssd上的win7坏了 ,我重新安装win10 on ssd  但是又不见了 虽然第一启动是ssd
  
[https://www.lijiaocn.com/%E9%A1%B9%E7%9B%AE/2018/08/03/prometheus-usage.html#prometheus%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6 【视频】新型监控告警工具prometheus(普罗米修斯)入门使用(附视频讲解)]
+
后来 在“运行”中我们输入“msconfig”然后点击“确定”,进入系统引导盘中  系统配置--》引导  把要的设置为默认 ,不要的也可以删除  然后就好了 开机是原来在ssd上的win7有点怪 不理了
  
[https://zhuanlan.zhihu.com/p/91215371 为什么说 Prometheus 是足以取代 Zabbix 的监控神器?]
+
=进入 bios=
 +
==asus==
 +
1、按电源键开机或重启,在启动过程中,不停按ESC键;
  
[https://zhuanlan.zhihu.com/p/24811652 基于Prometheus的分布式在线服务监控实践]
+
2、调出Please Select Boot Device,这个是启动项选择界面,可以直接选择启动项,也可以从这边进BIOS,那就是按↓方向键,移动到Enter Setup这个项,然后按Enter键即可进入。
  
==usage==
+
http://www.xitongcheng.com/jiaocheng/xtazjc_article_44070.html
[https://www.jianshu.com/p/03cf0fc9c746 Grafana单图表告警邮件&面板图(Dashboard)日报邮件]
 
  
[https://prometheus.io/docs/practices/rules/ Recording rules ]
+
=缺少 api-ms-win-crt-runtime-l1-1-0.dll=
 +
==问题出现 ==
  
https://github.com/prometheus/blackbox_exporter/blob/master/blackbox.yml
+
运维组的其它小伙伴都请假了,于是我就暂时成为IT支持
  
=grafana=
+
“有个新来的同学电脑 出问题了 ” 前台妹子又出现了
<pre>
 
#防火墙  grafana ng 在 10.3.10.10
 
firewall-cmd  --permanent --add-rich-rule="rule family="ipv4" source address="10.3.10.10" port protocol="tcp" port="3000" accept "
 
firewall-cmd --reload
 
  
</pre>
 
  
 +
一同学安装画板驱动时出现如下
 +
错误:缺少 api-ms-win-crt-runtime-l1-1-0.dll
  
[https://grafana.com/docs/grafana/latest/installation/docker/ grafana.com Run Grafana Docker image]
 
  
[https://grafana.com/grafana/dashboards/8919 中文 Node Exporte for Prometheus Dashboard]
+
角斗办法 :
 +
自己选择相对应的版本下载
 +
https://support.microsoft.com/zh-cn/help/2999226/update-for-universal-c-runtime-in-windows
  
usage  creat-->import --> id  8919
+
其它小伙伴说的什么 重装 删除注册表并是是最佳 办法
  
Container
+
==参考 ==
  
 +
https://helpx.adobe.com/cn/creative-cloud/kb/error_on_launch.html
  
 
+
[[category:ops]]
https://grafana.com/grafana/dashboards/11174
 
 
 
 
docker-grafana/config.env  https://github.com/stefanwalther/docker-grafana/blob/master/config.env 
 
 
 
==grafana 添加源和数据 ==
 
 
 
[https://www.bookstack.cn/read/prometheus-book/quickstart-use-grafana-create-dashboard.md 使用Grafana创建可视化Dashboard]
 
==grafana 添加用户 ==
 
<pre>
 
1.Users-->  2.Invite -->
 
 
 
3.进行邀请
 
Email or Username:输入用户邮箱,建议先跟用户名保持相同,然后在后面在写邮箱,后面会说到,这样不会报错
 
Name:输入用户名
 
Role:配置用户权限(只读Viewer 编辑Editor 管理员Admin)
 
Send invite email:勾选时,会将新用户的设置密码的链接发到邮箱
 
 
 
点击创建之后回调到新用户设置密码
 
 
 
-->
 
 
 
4.创建好之后,点击Pending Invites
 
复制链接到浏览器的地址栏中访问(也可从邮件中收到链接)
 
进去之后是下面的界面,这里有个坑,复制的IP地址是localhost,我们这里改为自己搭建的IP地址,然后在Email填写邮箱地址,设置新用户的密码
 
设置完成后,会直接以新用户身份登陆
 
 
 
 
 
http://localhost:3000/invite/PAhyq4gzfA3ugRiw0PH2RC2vsIuSTa
 
 
 
  -->
 
 
 
</pre>
 
 
 
[https://blog.csdn.net/liuxiangyang_/article/details/86737103  grafana的用户及权限的配置]
 
 
 
[https://blog.csdn.net/GX_1_11_real/article/details/85119451  grafana的用户及权限的配置]
 
 
 
[https://blog.csdn.net/kozazyh/article/details/93759717?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase  grafana-利用Google OAuth2 身份验证]
 
 
 
==使用教程==
 
[https://yuerblog.cc/2019/01/04/grafana-usage/ grafana配置与简单使用]
 
 
 
[https://blog.csdn.net/bbwangj/article/details/81109615  Grafana使用教程]
 
 
 
[https://blog.csdn.net/Sagitarioo/article/details/102805852?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2  grafana数据可视化-使用教程]
 
 
 
[https://www.cnblogs.com/xkus/p/7462742.html  grafana快速入门 ]
 
 
 
[https://blog.csdn.net/u012062455/article/details/79214700  grafana使用教程之基本概念(basic concepts)]
 
 
 
[https://blog.csdn.net/weixin_42674978/article/details/102681969  Grafana从无到有的一个相当粗略的资料总结]
 
 
 
 
 
[https://blog.csdn.net/Sagitarioo/article/details/102805852?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2  grafana数据可视化-使用教程]
 
 
 
[https://ken.io/note/grafana-quickstart-influxdb-datasource-graph Grafana快速入门:InfluxDB数据源以及曲线图表仪表盘配置]
 
 
 
 
 
 
 
 
 
 
 
apached conf
 
<pre>
 
##/etc/httpd/conf.d/gf.conf
 
 
 
 
 
<VirtualHost *:80>
 
      ServerName gf.linuxsa.org
 
      ServerAlias gf.linuxsa.org
 
   
 
      ProxyRequests off
 
   
 
      <Proxy *>
 
        Order deny,allow
 
        Allow from all
 
      </Proxy>
 
   
 
      <Location />
 
        ProxyPass http://localhost:3000/
 
        ProxyPassReverse http://localhost:3000/
 
      </Location>
 
    </VirtualHost>
 
 
 
</pre>
 
 
 
=vm监控[[Node-exporter]]=
 
可以如上的  node
 
[[Node-exporter]]
 
 
 
=Blackbox=
 
 
 
[[Blackbox exporter]]
 
 
 
=pushgateway=
 
 
 
[[pushgateway]]
 
 
 
[https://www.cnblogs.com/xiao987334176/p/9933963.html  基于Prometheus的Pushgateway实战 ]
 
 
 
https://songjiayang.gitbooks.io/prometheus/content/pushgateway/how.html
 
 
 
=[[Process-exporter]]=
 
 
 
=应用监控=
 
==redis==
 
[[prometheus监控Redis集群]]
 
 
 
[https://blog.csdn.net/weixin_43832846/article/details/90024274  pika主备部署(redis-sentinel)+监控(prometheus+grafana)]
 
 
 
[https://blog.csdn.net/weixin_34289744/article/details/92725774?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.nonecase  Prometheus监控 Redis , redis-cli_exporter]
 
 
 
==监控MQ==
 
[https://www.rabbitmq.com/prometheus.html  Monitoring with Prometheus & Grafana ]
 
 
 
==监控ES==
 
https://github.com/slok/ecs-exporter
 
==docker==
 
[https://blog.csdn.net/palet/article/details/82889493?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-7.nonecase  Prometheus+grafana监控:cAdvisor输出的容器内存相关的指标的解读]
 
 
 
== mysql==
 
[https://blog.csdn.net/qq_25934401/article/details/82594478  prometheus 监控之 mysql 篇(含mysql报警规则)]
 
==Spring boot==
 
https://www.bookstack.cn/read/prometheus_practice/application-spring.md
 
 
 
 
 
[https://blog.csdn.net/liangcha007/article/details/86699013#7.%E5%85%B3%E4%BA%8Epushgateway  Prometheus基于java开发exporter样例以及pushgateway的应用]
 
 
 
=告警=
 
 
 
[[Alertmanager]]
 
 
 
==telegram==
 
通过 prome or grafana ?
 
 
 
 
 
[https://blog.csdn.net/weixin_34242331/article/details/91875514  基于prometheus + grafana + mysql + Telegram 监控告警]
 
https://my.oschina.net/54188zz/blog/3030618
 
 
 
=教程=
 
[https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_liunx_60_prometheus_config.html  prometheus学习系列五: Prometheus配置文件 ]
 
 
 
=see also=
 
 
 
[https://www.jianshu.com/p/93412a925da2 规划 Prometheus 的存储用量]
 
 
 
[https://blog.csdn.net/qq_21816375/article/details/80462445?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.nonecase  prometheus部署node,server以及域名加告警]
 
 
 
[https://www.cnblogs.com/chenqionghe/p/10494868.html 从零搭建Prometheus监控报警系统]
 
 
 
[https://www.jianshu.com/p/1f05476ebcee 使用prometheus自定义监控]
 
 
 
[https://zhuanlan.zhihu.com/p/91215371 为什么说 Prometheus 是足以取代 Zabbix 的监控神器?]
 
 
 
[https://blog.51cto.com/wzlinux/2487300 prometheus 监控概述(一)]
 
 
 
 
 
 
 
[[category:ops]] [[category:container]] [[category:prom]]
 

2020年11月20日 (五) 07:10的版本

pfSense

pfSense上的OpenVPN:启用对远程LAN资源的访问

在虚拟机上安装PFsense详细图解

在虚拟机上安装PFsense详细图解

网络防火墙实战-基于pfsense(3)

PF VPN

PFSense – Setting Up OpenVPN on PFSense 2.4.

ros Mikrotik

如何评价极路由 HiWiFi

Mikrotik无线路由器快速设置教程

https://openwrt.org/zh/start

窃听风云: 你的MikroTik路由器正在被监听

https://www.zhihu.com/topic/19653984/hot

树莓派软路由 OpenWrt 简介

路由器如何当交换机用

公司的无线非常的卡 ,于是把一个坏的无线路由拿过来当作交换机 ,这样 win debian 都可以用上有钱的 当然 自己带了两段网线 
  1. 关掉这个路由的DHCP功能
  2. 改掉LAN口IP地址
  3. 最网线不要接WAN接口 ,一个AP成功配置

路由器如何当交换机用

水星(MERCURY)MW325R路由器怎么设置

双系统之win

2020年 08月 14日 星期五 15:37:29 CST 如何删除双系统中的一个系统

场景 本本有两个 win7 一个在ssd ssd上的win7坏了 ,我重新安装win10 on ssd 但是又不见了 虽然第一启动是ssd

后来 在“运行”中我们输入“msconfig”然后点击“确定”,进入系统引导盘中 系统配置--》引导 把要的设置为默认 ,不要的也可以删除 然后就好了 开机是原来在ssd上的win7有点怪 不理了

进入 bios

asus

1、按电源键开机或重启,在启动过程中,不停按ESC键;

2、调出Please Select Boot Device,这个是启动项选择界面,可以直接选择启动项,也可以从这边进BIOS,那就是按↓方向键,移动到Enter Setup这个项,然后按Enter键即可进入。

http://www.xitongcheng.com/jiaocheng/xtazjc_article_44070.html

缺少 api-ms-win-crt-runtime-l1-1-0.dll

问题出现

运维组的其它小伙伴都请假了,于是我就暂时成为IT支持

“有个新来的同学电脑 出问题了 ” 前台妹子又出现了


一同学安装画板驱动时出现如下 错误:缺少 api-ms-win-crt-runtime-l1-1-0.dll


角斗办法 : 自己选择相对应的版本下载 https://support.microsoft.com/zh-cn/help/2999226/update-for-universal-c-runtime-in-windows

其它小伙伴说的什么 重装 删除注册表并是是最佳 办法

参考

https://helpx.adobe.com/cn/creative-cloud/kb/error_on_launch.html