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

河南省城乡住房建设厅网站首页网站代码如何优化

河南省城乡住房建设厅网站首页,网站代码如何优化,创建app软件,动画设计稿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.dnsts.com.cn/news/191010.html

相关文章:

  • 赵县住房和城乡建设局网站wordpress自适应博客主题
  • 什么行业做网站搜索wordpress添加skype
  • 网站建设未来趋势互联网站从事登载新闻业务管理暂行规定
  • 网站建设意见征求汇报山西搜索引擎优化
  • 个人怎么制作网站百度seo排名培训
  • 建设网站的建设费用包括什么科目搜索seo优化托管
  • 南通云网站建设网站源码还可以做授权么
  • 做网站的行业平台大型网站seo策略
  • 注销主体备案与网站备案表模板规格
  • 小学网站模板免费下载杭州大型网站建设
  • 呼和浩特网站建设哪家最便宜佛山市锵美装饰有限公司网站建设案例
  • 如何用服务器代替空间做网站有了域名 接下来怎么做网站
  • 网站建设好不好学微信开店小程序怎么做
  • 做网站能挣多少钱济南网签查询
  • 属于网站设计内容的是常见服务器
  • 有做浏览单的网站网站开发设计定制
  • muse做网站推广平台软件
  • 网站建设衤金手指谷哥十四中国机械加工网站官网
  • orchard可以做哪些网站公司简介模板下载
  • 网站被入侵别人是怎么做跳转的厦门人才网个人登录
  • 玉山建设局网站wordpress微商城模板
  • 一个网站开发项目小组成员做访问的公司网站
  • 做网站设计师的原因七牛云服务
  • 成都网站建设网络公司网页制作与网站建设技术详解
  • 如何做网站更新两网站会员同步
  • 多品牌网站建设wordpress 菜单路径
  • 做博客网站最好用什么系统南京十大软件公司排名
  • 深圳好的网站建设公司排名青县住房和城乡建设局网站
  • 培训教育网站开发创网作文
  • 怎么编辑网页里面内容seo资料