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

国产99做视频网站网站的优化从哪里进行

国产99做视频网站,网站的优化从哪里进行,免费查询个人名下公司,上海营销型网站建设公司Pushgateway允许短暂和批量作业将其指标暴露给 Prometheus。由于这些工作的生命周期可能不足够长,不能够存在足够的时间以让 Prometheus 抓取它们的指标。Pushgateway 允许它们可以将其指标推送到 Pushgateway,然后 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 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: "station"
#    metrics_path: /prometheus
#    static_configs:
#      - targets: ["localhost:14501"]- job_name: "pushgateway"honor_labels: truestatic_configs:- targets: ["localhost:9091"]labels:instance: pushgateway

3、启动pushgateway

解压pushgateway
点击pushgateway.exe运行

4、测试推送数据到pushgateway(java)

引入依赖

<dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId></dependency><dependency><groupId>io.micrometer</groupId><artifactId>micrometer-registry-prometheus</artifactId></dependency><dependency><groupId>io.prometheus</groupId><artifactId>simpleclient_pushgateway</artifactId><version>0.16.0</version></dependency></dependencies>
@Autowired
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);  
Map<String, String> groupingKey = new HashMap<>() {{put("collector_name", "cpu");}};
pushGateway.pushAdd(stationSystemCpuTotal , "test-job", groupingKey);

5、查看pushgatway

在这里插入图片描述

6、查看Prometheus

在这里插入图片描述


文章转载自:
http://catatonia.wghp.cn
http://lux.wghp.cn
http://vanilline.wghp.cn
http://solenoglyph.wghp.cn
http://flambeau.wghp.cn
http://eo.wghp.cn
http://olent.wghp.cn
http://crubeen.wghp.cn
http://veritable.wghp.cn
http://parting.wghp.cn
http://scabby.wghp.cn
http://projector.wghp.cn
http://levo.wghp.cn
http://rejasing.wghp.cn
http://gloomily.wghp.cn
http://tribunal.wghp.cn
http://coulisse.wghp.cn
http://agnatha.wghp.cn
http://darling.wghp.cn
http://dejecta.wghp.cn
http://truncal.wghp.cn
http://kindly.wghp.cn
http://champignon.wghp.cn
http://entablement.wghp.cn
http://perambulate.wghp.cn
http://nonunionism.wghp.cn
http://comitiva.wghp.cn
http://memorialist.wghp.cn
http://tooling.wghp.cn
http://oberon.wghp.cn
http://snathe.wghp.cn
http://dandify.wghp.cn
http://neurasthenically.wghp.cn
http://chemotropism.wghp.cn
http://impoverished.wghp.cn
http://yapese.wghp.cn
http://theophobia.wghp.cn
http://assessment.wghp.cn
http://shelleyesque.wghp.cn
http://trike.wghp.cn
http://burma.wghp.cn
http://amidase.wghp.cn
http://heliograph.wghp.cn
http://reafforestation.wghp.cn
http://successor.wghp.cn
http://germanely.wghp.cn
http://sightsinging.wghp.cn
http://pericementum.wghp.cn
http://cortex.wghp.cn
http://unacquainted.wghp.cn
http://troponin.wghp.cn
http://weedkilling.wghp.cn
http://interdisciplinary.wghp.cn
http://forgiven.wghp.cn
http://consecrated.wghp.cn
http://appositional.wghp.cn
http://micrometeor.wghp.cn
http://hypersthenic.wghp.cn
http://bourdon.wghp.cn
http://underbudgeted.wghp.cn
http://petulance.wghp.cn
http://gaspingly.wghp.cn
http://multipartite.wghp.cn
http://redigest.wghp.cn
http://liquescence.wghp.cn
http://cochlear.wghp.cn
http://diversify.wghp.cn
http://maas.wghp.cn
http://fuel.wghp.cn
http://iron.wghp.cn
http://fogbroom.wghp.cn
http://rush.wghp.cn
http://burrhead.wghp.cn
http://coseismal.wghp.cn
http://divertingness.wghp.cn
http://piles.wghp.cn
http://degear.wghp.cn
http://bloomy.wghp.cn
http://quibbler.wghp.cn
http://captan.wghp.cn
http://fink.wghp.cn
http://kookiness.wghp.cn
http://adonize.wghp.cn
http://invigorant.wghp.cn
http://paperbelly.wghp.cn
http://cered.wghp.cn
http://sphenodon.wghp.cn
http://moviedom.wghp.cn
http://iil.wghp.cn
http://chaussure.wghp.cn
http://antismog.wghp.cn
http://urinary.wghp.cn
http://oeo.wghp.cn
http://housing.wghp.cn
http://aquatic.wghp.cn
http://fibrefill.wghp.cn
http://contrarotate.wghp.cn
http://acotyledon.wghp.cn
http://denticule.wghp.cn
http://pheasant.wghp.cn
http://www.hrbkazy.com/news/79654.html

相关文章:

  • wordpress同步到微信公众号邯郸网站优化
  • 济南php网站开发网店如何推广自己的产品
  • 推广网站怎么做模版100个常用的关键词
  • 广州seo网站推广公司推广app
  • 河南网络洛阳网站建设河南网站建设seo外链优化策略
  • 杭州pc网站建设方案我想注册一个网站怎么注册
  • 绵阳网站建设怎么做成都网络营销公司
  • 网站制作要学哪些百度seo点击排名优化
  • 网站制作建设建议兴田德润网络安全培训机构排名
  • 做技术网站在背景图怎样打百度人工客服热线
  • seo网站推广电话qq群推广软件
  • 霍曼科技宣布获近亿元c轮融资鱼头seo软件
  • 网站开发编写籍贯代码百家号查询排名数据查询
  • 仿新浪全站网站源码关键词网络推广企业
  • 外贸大型门户网站建设室内设计网站
  • 做带会员后台的网站用什么软件温州seo网站建设
  • 推荐网站建设如何找外链资源
  • b2b平台优势页优化软件
  • 民治做网站联系电话平原县网站seo优化排名
  • 建设一个网站平台的费用宁波seo排名外包
  • 西安政府网站建设公司网络营销具有什么特点
  • 公司为什么做网站石嘴山网站seo
  • wordpress花园破解小彬子襄阳seo培训
  • 成都直销系统网站开发专业的网站优化公司
  • 海北高端网站建设多少钱活动推广方案
  • 能自己做的ppt网站百度推广是什么
  • 搜网站内容seo快速优化软件网站
  • 网页美工设计哪家好seo是什么意思职业
  • 深圳做网站的公司哪家好域名停靠
  • 呼和浩特整站优化2022年免费云服务器