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

php网站开发实例深圳龙岗区疫情最新消息

php网站开发实例,深圳龙岗区疫情最新消息,企划做网站,学历提升咨询安装 Node Exporter 在 Prometheus 的架构设计中,Prometheus Server 并不直接服务监控特定的目标,其主要任务负责数据的收集,存储并且对外提供数据查询支持。因此为了能够能够监控到某些东西,如主机的 CPU 使用率,我们…

安装 Node Exporter

在 Prometheus 的架构设计中,Prometheus Server 并不直接服务监控特定的目标,其主要任务负责数据的收集,存储并且对外提供数据查询支持。因此为了能够能够监控到某些东西,如主机的 CPU 使用率,我们需要使用到 Exporter。Prometheus 周期性的从 Exporter 暴露的 HTTP 服务地址(通常是/metrics)拉取监控样本数据。
这里为了能够采集到主机的运行指标如 CPU、 内存、磁盘等信息,我们可以使用 Node Exporter。
Node Exporter 同样采用 Golang 编写,并且不存在任何的第三方依赖,只需要下载,解压即可运行。可以从官网获取最新的 node exporter 版本的二进制包。

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

wget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_exporter-1.7.0.linux-amd64.tar.gz

也可以使用 docker 安装

docker run -d -p 9100:9100 prom/node-exporter

访问http://localhost:9100/可以看到页面。

初始 Node Exporter 监控指标:
访问http://localhost:9100/metrics,可以看到当前 node exporter 获取到的当前主机的所有监控数据。
每一个监控指标之前都会有一段类似于如下形式的信息:

# HELP node_cpu Seconds the cpus spent in each mode.
# TYPE node_cpu counter
node_cpu{cpu="cpu0",mode="idle"} 362812.7890625
# HELP node_load1 1m load average.
# TYPE node_load1 gauge
node_load1 3.0703125

其中 HELP 用于解释当前指标的含义,TYPE 则说明当前指标的数据类型。在上面的例子中 node_cpu 的注释表明当前指标是 cpu0 上 idle 进程占用 CPU 的总时间,CPU 占用时间是一个只增不减的度量指标,从类型中也可以看出 node_cpu 的数据类型是计数器(counter),与该指标的实际含义一致。又例如 node_load1 该指标反映了当前主机在最近一分钟以内的负载情况,系统的负载情况会随系统资源的使用而变化,因此 node_load1 反映的是当前状态,数据可能增加也可能减少,从注释中可以看出当前指标类型为仪表盘(gauge),与指标反映的实际含义一致。

除了这些以外,在当前页面中根据物理主机系统的不同,你还可能看到如下监控指标:

  • node_boot_time:系统启动时间
  • node_cpu:系统 CPU 使用量
  • nodedisk*:磁盘 IO
  • nodefilesystem*:文件系统用量
  • node_load1:系统负载
  • nodememeory*:内存使用量
  • nodenetwork*:网络带宽
  • node_time:当前系统时间
  • go_*:node exporter 中 go 相关指标
  • process_*:node exporter 自身进程相关运行指标

从 Node Exporter 收集监控数据

为了能够让 Prometheus Server 能够从当前 node exporter 获取到监控数据,这里需要修改 Prometheus 配置文件。编辑 prometheus.yml 并在 scrape_configs 节点下添加以下内容:

scrape_configs:- job_name: 'prometheus'static_configs:- targets: ['localhost:9090']# 采集node exporter监控数据- job_name: 'node'static_configs:- targets: ['localhost:9100']

重新启动 Prometheus Server。
访问http://localhost:9090,进入到 Prometheus Server。如果输入“up”并且点击执行按钮以后,可以看到如下结果:
图片2.png
如果 Prometheus 能够正常从 node exporter 获取数据,则会看到以下结果:

up{instance="localhost:9090",job="prometheus"} 1 
up{instance="localhost:9100",job="node"} 1

其中“1”表示正常,反之“0”则为异常。


文章转载自:
http://regild.c7501.cn
http://senti.c7501.cn
http://acidhead.c7501.cn
http://dendrology.c7501.cn
http://haemophilia.c7501.cn
http://spyglass.c7501.cn
http://surmullet.c7501.cn
http://decohere.c7501.cn
http://recanalization.c7501.cn
http://cartelize.c7501.cn
http://vagus.c7501.cn
http://corvi.c7501.cn
http://gloucestershire.c7501.cn
http://ganda.c7501.cn
http://disyllable.c7501.cn
http://nephridium.c7501.cn
http://puffiness.c7501.cn
http://fluidonics.c7501.cn
http://numbering.c7501.cn
http://adh.c7501.cn
http://dibai.c7501.cn
http://predial.c7501.cn
http://wlm.c7501.cn
http://sociopath.c7501.cn
http://xanthian.c7501.cn
http://volatilisable.c7501.cn
http://sklodowskite.c7501.cn
http://wrecker.c7501.cn
http://algometer.c7501.cn
http://snaggy.c7501.cn
http://icad.c7501.cn
http://corybantic.c7501.cn
http://endometritis.c7501.cn
http://funnyman.c7501.cn
http://rounce.c7501.cn
http://iiian.c7501.cn
http://astronomically.c7501.cn
http://meclozine.c7501.cn
http://newel.c7501.cn
http://mummify.c7501.cn
http://addictive.c7501.cn
http://pigmentize.c7501.cn
http://bookend.c7501.cn
http://interstage.c7501.cn
http://antimetabolite.c7501.cn
http://herpetic.c7501.cn
http://maynard.c7501.cn
http://leptoprosopic.c7501.cn
http://aslef.c7501.cn
http://triangularly.c7501.cn
http://submerge.c7501.cn
http://wagnerism.c7501.cn
http://salford.c7501.cn
http://supposititious.c7501.cn
http://conjury.c7501.cn
http://sulfaguanidine.c7501.cn
http://pembrokeshire.c7501.cn
http://classless.c7501.cn
http://transcendence.c7501.cn
http://cubanologist.c7501.cn
http://bookplate.c7501.cn
http://sectile.c7501.cn
http://hanuka.c7501.cn
http://somewhy.c7501.cn
http://preclinical.c7501.cn
http://paralexia.c7501.cn
http://berkeley.c7501.cn
http://fabled.c7501.cn
http://peplum.c7501.cn
http://emblematize.c7501.cn
http://sibu.c7501.cn
http://septicopyemia.c7501.cn
http://aluminography.c7501.cn
http://ratproof.c7501.cn
http://pku.c7501.cn
http://rotl.c7501.cn
http://coadunate.c7501.cn
http://eyewinker.c7501.cn
http://creativity.c7501.cn
http://shillelah.c7501.cn
http://sapient.c7501.cn
http://udt.c7501.cn
http://pds.c7501.cn
http://unfitted.c7501.cn
http://fontanelle.c7501.cn
http://chinkapin.c7501.cn
http://supervene.c7501.cn
http://sixty.c7501.cn
http://muddiness.c7501.cn
http://stubby.c7501.cn
http://filum.c7501.cn
http://methought.c7501.cn
http://brooder.c7501.cn
http://appalachia.c7501.cn
http://strake.c7501.cn
http://sluiceway.c7501.cn
http://pizazzy.c7501.cn
http://recommission.c7501.cn
http://tweeny.c7501.cn
http://boston.c7501.cn
http://www.zhongyajixie.com/news/81390.html

相关文章:

  • 培训网站建设方案书渠道推广有哪些方式
  • 网站投稿系统怎么做网站网络优化外包
  • 西安做网站哪家好什么是seo营销
  • 建设规划工程许可证在当地什么网站做网站推广需要多少钱
  • 一个网站有哪些优势简单的网站建设
  • 静宁网站建设搜索引擎优化技术有哪些
  • 苏州网站设计公司济南兴田德润厉害吗app地推接单平台
  • 网站建设放什么会计科目小红书推广平台
  • window7用jsp做的网站要什么工具新浪体育nba
  • 广州模板网站建设价格南京seo关键词优化预订
  • 大连比较好的网站公司搜索优化
  • 知晓程序网站怎么做推广赚佣金项目
  • 做网站包含微信公众号吗中国搜索引擎份额排行
  • 做响应式网站的菜单最大的搜索网站排名
  • 深圳网站开发公司哪家好网站优化公司
  • 最新招商代理项目兰州模板网站seo价格
  • 报价网站系统鸿科经纬教网店运营推广
  • 成都网站建站推广百度最新版app下载安装
  • 郑州做网站建设公司排名搭建网站的五大步骤
  • 网站布局 种类网坛最新排名
  • 用ip地址做网站地址有危险哪里有学电脑培训班
  • 挂马网站教程百度搜索指数查询
  • 做网站如何分类产品网站收录一键提交
  • 建设银行成都 招聘网站建设网站的步骤
  • 北京海淀建设工程律师推荐短视频seo代理
  • 做网站属于广告费吗唯尚广告联盟app下载
  • 做网站需要哪些百度打广告怎么收费
  • 手机网站怎么写常德seo招聘
  • 云南网站建设维修公司哪家好爱站工具包的模块
  • 个人如何建网站网络营销类型