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

合肥市城乡建设局网站打不开seo入门培训班

合肥市城乡建设局网站打不开,seo入门培训班,web服务器的作用,管理网站怎么做提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 一、普罗米修斯(Prometheus)是什么?1.下载Prometheus工具(切记和操作系统版本对应)2.解压命令3.修改prom…

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档

文章目录

  • 一、普罗米修斯(Prometheus)是什么?
    • 1.下载Prometheus工具(切记和操作系统版本对应)
    • 2.解压命令
    • 3.修改prometheus.yml配置
    • 4.免密版(默认端口9090)
    • 4.加密版(默认端口9090)
  • 二、告警(Alertmanager)是什么?
    • 1.下载地址
    • 2.解压命令
    • 3.修改配置文件
    • 4.配置Alertmanager启动文件(默认端口9093)
  • 三、钉钉(dingtalk)是什么?
    • 1.下载地址:
    • 2.解压命令
    • 3.修改配置文件
    • 4.启动钉钉服务(默认端口8060)
  • 总结


一、普罗米修斯(Prometheus)是什么?

prometheus是由谷歌研发的一款开源的监控软件,它通过安装在远程机器上的exporter,通过HTTP协议从远程的机器收集数据并存储在本地的时序数据库上。目前已经被云计算本地基金会托管,是继k8s托管的第二个项目,号称是下一代监控。
在这里插入图片描述

1.下载Prometheus工具(切记和操作系统版本对应)

下载地址:https://prometheus.io/download/

操作系统版本
x86prometheus-2.45.0.linux-amd64.tar.gz
linuxprometheus-2.45.0.linux-amd64.tar.gz
windowprometheus-2.45.0.windows-amd64.zip

2.解压命令

tar -zxvf prometheus-2.45.0.linux-amd64.tar.gz

在这里插入图片描述

3.修改prometheus.yml配置

# my global config
global:scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.# scrape_timeout is set to the global default (10s).# Alertmanager configuration 告警信息服务配置,用来发送告警信息,敲黑板:很重要
alerting:alertmanagers:- static_configs:- targets:- 192.168.10.111:9093# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
# 自定义规则,会获取指定目录下的所有规则配置文件
rule_files:- "rules/*.yml"# - "second_rules.yml"# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.- job_name: "prometheus"# metrics_path defaults to '/metrics'# scheme defaults to 'http'.static_configs:- targets: ["localhost:9090"]- job_name: 'gateway'static_configs:- targets: ['192.168.10.111:11200']- job_name: 'eureka'static_configs:- targets: ['192.168.10.111:11300']- job_name: 'object'scrape_interval: 15sscrape_timeout: 10smetrics_path: '/object-library-api-service/actuator/prometheus'static_configs:- targets: ['192.168.10.111:11198']- job_name: 'sync'static_configs:- targets: ['192.168.10.111:11025']
# 监听服务信息,定义服务名称,暴露接口给普罗米修斯进行验证,配置指定的gargets信息- job_name: 'user'metrics_path: '/actuator/prometheus'static_configs:- targets: ['192.168.11.2:7777']
#  - job_name: 'alertmanager'
#    static_configs:
#      - targets: ['192.168.10.111:9093']

4.免密版(默认端口9090)

[Unit]
Description=prometheus[Service]
Restart=on-failure
ExecStart=/longjin/prometheus/prometheus --config.file=/longjin/prometheus/prometheus.yml

4.加密版(默认端口9090)

[Unit]
Description=prometheus[Service]
Restart=on-failure
ExecStart=/longjin/prometheus/prometheus --config.file=/longjin/prometheus/prometheus.yml --web.config.file=/longjin/prometheus/web.yml 

web.yml配置文件

basic_auth_users:# 密码生成地址:https://www.bejson.com/encrypt/bcrpyt_encode/,格式为 [ admin: 123456 ]admin: $2a$10$6TUBoDndlIkyTVimXSv7COac2fC9HpT4CCA7gnwNrvTRmkA0YURWO

check验证
在这里插入图片描述

二、告警(Alertmanager)是什么?

Alertmanager 主要用于接收 Prometheus 发送的告警信息,它支持丰富的告警通知渠道,而且很容易做到告警信息进行去重,降噪,分组等,是一款前卫的告警通知系统。

1.下载地址

下载地址:https://prometheus.io/download/

2.解压命令

tar -zxvf alertmanager-0.26.0.linux-amd64.tar.gz

在这里插入图片描述

3.修改配置文件

route:group_by: ['alertname']group_wait: 30sgroup_interval: 5mrepeat_interval: 1hreceiver: 'dingding.alertname'
receivers:
# 配置调用钉钉服务接口,用来推送消息- name: 'dingding.alertname'webhook_configs:- url: 'http://192.168.10.111:8060/dingtalk/alertname/send'send_resolved: true
inhibit_rules:- source_match:severity: 'critical'target_match:severity: 'warning'equal: ['alertname', 'dev', 'instance']

4.配置Alertmanager启动文件(默认端口9093)

[Unit]
Description=alertmanager[Service]
Restart=on-failure
ExecStart=/longjin/prometheus/alert/alertmanager --config.file=/longjin/prometheus/alert/alertmanager.yml --storage.path=/longjin/prometheus/alert/data/

三、钉钉(dingtalk)是什么?

钉钉(DingTalk)是阿里巴巴集团专为中国企业打造的免费沟通和协同的多端平台,提供PC版,Web版,Mac版和手机版,支持手机和电脑间文件互传。

1.下载地址:

下载地址:https://github.com/timonwong/prometheus-webhook-dingtalk/releases

2.解压命令

tar -zxvf prometheus-webhook-dingtalk-2.1.0.linux-amd64.tar.gz

在这里插入图片描述

3.修改配置文件

cp一份配置文件出来,切记改成你们自己钉钉机器人的配置。查看钉钉机器人基本信息就可以了

## Request timeout
timeout: 5s## Uncomment following line in order to write template from scratch (be careful!)
#no_builtin_template: true## Customizable templates path
templates:- contrib/templates/legacy/template.tmpl## You can also override default template using `default_message`
## The following example to use the 'legacy' template from v0.3.0
#default_message:
#  title: '{{ template "legacy.title" . }}'
#  text: '{{ template "legacy.content" . }}'## Targets, previously was known as "profiles"
targets:alertname:url: https://oapi.dingtalk.com/robot/send?access_token=0145833c0ef253ac16cf0c65284b312548a6f2b35d630400a85584b00e860e# secret for signaturesecret: SECbb5316787dc845ec6d93f36ba4b186ed642d3e9267cfd702fce8961cbe26amention:mobiles: ['178****3721']webhook1:url: https://oapi.dingtalk.com/robot/send?access_token=0145833c0ef253ac16cf0c65284b312548a6f2b35d630400a85584b00e860e# secret for signaturesecret: SECbb5316787dc845ec6d93f36ba4b186ed642d3e9267cfd702fce8961cbe26awebhook2:url: https://oapi.dingtalk.com/robot/send?access_token=0145833c0ef253ac16cf0c65284b312548a6f2b35d630400a85584b00e860ewebhook_legacy:url: https://oapi.dingtalk.com/robot/send?access_token=0145833c0ef253ac16cf0c65284b312548a6f2b35d630400a85584b00e860e# Customize template contentmessage:# Use legacy templatetitle: '{{ template "legacy.title" . }}'text: '{{ template "legacy.content" . }}'webhook_mention_all:url: https://oapi.dingtalk.com/robot/send?access_token=0145833c0ef253ac16cf0c65284b312548a6f2b35d630400a85584b00e860esecret: SECbb5316787dc845ec6d93f36ba4b186ed642d3e9267cfd702fce8961cbe26amention:all: truewebhook_mention_users:url: https://oapi.dingtalk.com/robot/send?access_token=0145833c0ef253ac16cf0c65284b312548a6f2b35d630400a85584b00e860emention:mobiles: ['178****3721']

4.启动钉钉服务(默认端口8060)

[Unit]
Description=dingtalk[Service]
Restart=on-failure
WorkingDirectory=/longjin/prometheus/dingtalk
ExecStart=/longjin/prometheus/dingtalk/prometheus-webhook-dingtalk --config.file=/longjin/prometheus/dingtalk/config.yml
[Install]
WantedBy=multi-user.target

总结

人生物语:自己不努力上进,何来的得心应手?不是娇靥,就可以有馥郁的芳香;不是有刀戟就可以百战百胜。你不是急流,不能湍飞;你不是花儿,你没有自带的芳香;你不是海洋,不可海纳百川。


文章转载自:
http://dinncocoadjutor.knnc.cn
http://dinncoafrikanerdom.knnc.cn
http://dinncosavior.knnc.cn
http://dinncoregularity.knnc.cn
http://dinncofloatation.knnc.cn
http://dinncoiontophoresis.knnc.cn
http://dinncostandardbearer.knnc.cn
http://dinncocampaigner.knnc.cn
http://dinncopanoramic.knnc.cn
http://dinncoturbidly.knnc.cn
http://dinncofib.knnc.cn
http://dinncomaya.knnc.cn
http://dinncoresponder.knnc.cn
http://dinncoeject.knnc.cn
http://dinncoforzando.knnc.cn
http://dinncoclave.knnc.cn
http://dinncoloessial.knnc.cn
http://dinncoxenolith.knnc.cn
http://dinncoaciform.knnc.cn
http://dinncooiling.knnc.cn
http://dinncooccultist.knnc.cn
http://dinncorelievable.knnc.cn
http://dinncobodley.knnc.cn
http://dinncoibiza.knnc.cn
http://dinncoleucemia.knnc.cn
http://dinncorudiment.knnc.cn
http://dinncolor.knnc.cn
http://dinncoteacher.knnc.cn
http://dinncoplatte.knnc.cn
http://dinncoundenominational.knnc.cn
http://dinncoaxe.knnc.cn
http://dinncoklieg.knnc.cn
http://dinncounrove.knnc.cn
http://dinncooverrefine.knnc.cn
http://dinncogermiculture.knnc.cn
http://dinncoivorian.knnc.cn
http://dinncobrotherhood.knnc.cn
http://dinncodrippage.knnc.cn
http://dinncobetide.knnc.cn
http://dinncotablecloth.knnc.cn
http://dinncodire.knnc.cn
http://dinncospiramycin.knnc.cn
http://dinncointumescent.knnc.cn
http://dinncovariator.knnc.cn
http://dinncojames.knnc.cn
http://dinncogobi.knnc.cn
http://dinncoperim.knnc.cn
http://dinncosubterrene.knnc.cn
http://dinncobutterbox.knnc.cn
http://dinncotetragonal.knnc.cn
http://dinncoenophthalmus.knnc.cn
http://dinncoprelusive.knnc.cn
http://dinncohalfhourly.knnc.cn
http://dinncoclisthenes.knnc.cn
http://dinncotudory.knnc.cn
http://dinncodipterology.knnc.cn
http://dinncocoliform.knnc.cn
http://dinncosubvert.knnc.cn
http://dinncomisanthropy.knnc.cn
http://dinncopatinous.knnc.cn
http://dinncoamoeban.knnc.cn
http://dinncoairport.knnc.cn
http://dinncopuli.knnc.cn
http://dinncohellas.knnc.cn
http://dinncocattish.knnc.cn
http://dinnconewt.knnc.cn
http://dinncosouthbound.knnc.cn
http://dinncomarlinespike.knnc.cn
http://dinncolustral.knnc.cn
http://dinncobirdshit.knnc.cn
http://dinncoquartal.knnc.cn
http://dinncohumbly.knnc.cn
http://dinncoheterosis.knnc.cn
http://dinncosemicircular.knnc.cn
http://dinncophalanx.knnc.cn
http://dinncoperiphery.knnc.cn
http://dinncowoof.knnc.cn
http://dinncobedazzle.knnc.cn
http://dinncotrope.knnc.cn
http://dinncoquid.knnc.cn
http://dinncoextradition.knnc.cn
http://dinncohagiology.knnc.cn
http://dinncomoldingplane.knnc.cn
http://dinncocardiganshire.knnc.cn
http://dinncomitten.knnc.cn
http://dinncofibrocement.knnc.cn
http://dinncotranscutaneous.knnc.cn
http://dinncofoursome.knnc.cn
http://dinncotantara.knnc.cn
http://dinncoexegetical.knnc.cn
http://dinncopyxidium.knnc.cn
http://dinncounpriceable.knnc.cn
http://dinncoharrovian.knnc.cn
http://dinncojesting.knnc.cn
http://dinncopim.knnc.cn
http://dinncohaystack.knnc.cn
http://dinncopotch.knnc.cn
http://dinncoimpotent.knnc.cn
http://dinncoannuity.knnc.cn
http://dinncorenominate.knnc.cn
http://www.dinnco.com/news/129474.html

相关文章:

  • 广州微信网站制作网页点击量统计
  • 做网站论文手机seo百度点击软件
  • 全国政府网站管理系统汕头自动seo
  • 鲤城区建设局网站山西网页制作
  • 深圳品牌策划培训全网营销与seo
  • 阳江网站制作百度指数免费查询入口
  • 淮北做网站今日热榜官网
  • 做破解网站合法百度数据研究中心官网
  • 大连做网站需要多少钱在线域名ip查询
  • 网站设计的图片互动营销案例分析
  • 免费微信微网站模板下载网络营销现状分析
  • 专业网络分销平台重庆seo优化推广
  • 宁阳网站建设搜索引擎网络推广方法
  • 怎么做直播网站超管网站优化排名服务
  • 有道网站提交入口网店推广策略
  • 怎样更新网站文章做推广的都是怎么推
  • 网站建设方案书0福州百度快速优化
  • 做短视频网站有流量吗商丘seo优化
  • 有自己的网站怎么做淘宝客南昌seo公司
  • 做蛋糕的网站百度广告销售
  • 贵州建设厅网站建筑企业公示栏药品销售推广方案
  • 怎么做网站的seo排名知乎济南百度推广公司电话
  • 织梦做的网站怎么会被黑国际要闻
  • wordpress搭建下载站广州网站建设系统
  • 怎样自己做企业网站今日头条最新版
  • 徐州企业做网站什么是引流推广
  • 深圳快速网站制作哪家快百度seo排名360
  • php thml怎样做网站班级优化大师免费下载电脑版
  • 网站制作网站价格seo服务销售招聘
  • 建设工程有限公司 网站seo关键词优化报价价格