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

口碑好的秦皇岛网站建设价格网站登录记录怎么删除

口碑好的秦皇岛网站建设价格,网站登录记录怎么删除,郴州卖房网站,二人世界视频免费Pushgateway允许短暂和批量作业将其指标暴露给 Prometheus。由于这些工作的生命周期可能不足够长#xff0c;不能够存在足够的时间以让 Prometheus 抓取它们的指标。Pushgateway 允许它们可以将其指标推送到 Pushgateway#xff0c;然后 Pushgateway 再将这些指标暴露给 Prom… Pushgateway允许短暂和批量作业将其指标暴露给 Prometheus。由于这些工作的生命周期可能不足够长不能够存在足够的时间以让 Prometheus 抓取它们的指标。Pushgateway 允许它们可以将其指标推送到 Pushgateway然后 Pushgateway 再将这些指标暴露给 Prometheus 抓取。 盲目的使用Pushgateway来代替Prometheus常用的拉动模型(pull model)来收集指标会有以下几种问题 1.通过单个 Pushgateway 监控多个实例时 Pushgateway 将会成为单点故障和潜在瓶颈 2.当你通过 up 命令(每次擦出时生成)将丢失 Prometheus 自动实例运行状态监控 3.Pushgateway 不会忘记推送时间序列并将永远暴露给 Prometheus除非这些序列是通过 Pushgateway 的 API 手动删除的 1、下载pushgateway 下载地址 https://github.com/prometheus/pushgateway/releases/download/v1.5.1/pushgateway-1.5.1.windows-amd64.zip 2、修改prometheus的配置 修改prometheus.yml添加pushgateway的job # 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:# - alertmanager:9093# Load rules once and periodically evaluate them according to the global evaluation_interval. rule_files:# - first_rules.yml# - second_rules.yml# A scrape configuration containing exactly one endpoint to scrape: # Here its Prometheus itself. scrape_configs:# The job name is added as a label jobjob_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: station # metrics_path: /prometheus # static_configs: # - targets: [localhost:14501]- job_name: pushgatewayhonor_labels: truestatic_configs:- targets: [localhost:9091]labels:instance: pushgateway3、启动pushgateway 解压pushgateway 点击pushgateway.exe运行 4、测试推送数据到pushgateway(java) 引入依赖 dependenciesdependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactId/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-actuator/artifactId/dependencydependencygroupIdio.micrometer/groupIdartifactIdmicrometer-registry-prometheus/artifactId/dependencydependencygroupIdio.prometheus/groupIdartifactIdsimpleclient_pushgateway/artifactIdversion0.16.0/version/dependency/dependenciesAutowired private CollectorRegistry collectorRegistry;PushGateway pushGateway new PushGateway(http://localhost:9091); Guage stationSystemCpuTotal Gauge.build().name(cpu_total).help(Number of CPU cores on the station.).unit(C).labelNames(a,b).register(collectorRegistry); stationSystemCpuTotal.labels(A, B).set(10); MapString, String groupingKey new HashMap() {{put(collector_name, cpu);}}; pushGateway.pushAdd(stationSystemCpuTotal , test-job, groupingKey);5、查看pushgatway 6、查看Prometheus
http://www.yayakq.cn/news/1543/

相关文章:

  • 网站降权分析新媒体做图网站
  • 长沙微网站建设wordpress与论坛
  • redux wordpress白云网站 建设seo信科
  • 营销网站建设大概费用济南网站建设 齐鲁文化创意基地
  • 企石镇做网站八戒影视
  • 广东网页空间网站网站过期查询
  • 网站上的网站地图怎么做怎么把做的网站优化到百度
  • 电商网站前端设计方案个人网站托管
  • asp是网站开发吗广州小程序开发的公司排名
  • 视频网站开发有哪些功能南京网站设计收费标准
  • 注册网站账号违法吗财务公司协会
  • 网站域名被黑网站内做营销活动使用工具
  • 做气体检测仪的网站网页版微博
  • 南京网站定制开发公司标杆网站建设
  • 菏泽住房和城乡建设局网站珠海优化seo
  • jsp网站开发怎么调试江苏省住建厅官方网
  • 小橘子被做h网站seo招聘的关键词
  • 长治一般建一个网站需要多少钱搜索引擎关键词排名
  • 网站备案模板无极网站建设质量
  • 游戏代理平台一天结一次如何优化搜索引擎的准确性
  • 网站制作自学百度云wordpress linux安装
  • 手机网站建设yu天天想你视频免费观看西瓜
  • 网站建设与管理教学设计深圳市建设网站
  • ai生成作文网站小红书怎么做关键词排名优化
  • 丰宁县建设局网站免费广告发布平台app
  • 误给传销公司做网站算犯罪吗外贸网站代运营
  • 网站建设 凡科质量好的购物平台
  • 网站开发工程师项目经验长春市建设工程信息网
  • 2021年简短新闻20字郴州网站seo外包
  • 谢岗网站仿做wordpress禁止图片压缩插件