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

滨州市网站建设穆棱市住房和城乡建设局网站

滨州市网站建设,穆棱市住房和城乡建设局网站,怎么做公众号,哪网站建设好prometheus抓取保护配置以防止压力过载 场景 担心您的应用程序指标可能突然激增,以及指标突然激增导致prometheus压力过载 就像生活中的许多事情一样,标签要有节制。当带有用户 ID 或电子邮件地址的标签被添加到指标时,虽然它不太可能结束…

prometheus抓取保护配置以防止压力过载

场景

担心您的应用程序指标可能突然激增,以及指标突然激增导致prometheus压力过载

就像生活中的许多事情一样,标签要有节制。当带有用户 ID 或电子邮件地址的标签被添加到指标时,虽然它不太可能结束,因为突然之间,您的一个目标可能会在每次抓取时抽出数十万个时间序列,从而导致 Prometheus 出现性能问题。

设置scrap抓取指标过载保护

sample_limit 是一个抓取配置字段,如果返回的时间序列超过给定数量,它将导致抓取失败。默认情况下禁用。例如:

scrape_configs:- job_name: 'my_job'sample_limit: 5000static_configs:- targets:- my_target:1234

如果返回的时间序列超过 5000 个,将导致目标的抓取失败,将 up 设置为 0,就好像目标已关闭一样。从那里,您可以在抓取时使用普罗米修斯删除指标来删除有问题的指标,同时等待应用程序被修复。也就是说metric_relabel_configs在sample_limit之前应用。

各类过载保护汇总

  • sample_limit
# Per-scrape limit on number of scraped samples that will be accepted.
# If more than this number of samples are present after metric relabeling
# the entire scrape will be treated as failed. 0 means no limit.
[ sample_limit: <int> | default = 0 ]
  • body_size_limit:
# An uncompressed response body larger than this many bytes will cause the
# scrape to fail. 0 means no limit. Example: 100MB.
# This is an experimental feature, this behaviour could
# change or be removed in the future.
[ body_size_limit: <size> | default = 0 ]
  • label_limit
# Per-scrape limit on number of labels that will be accepted for a sample. If
# more than this number of labels are present post metric-relabeling, the
# entire scrape will be treated as failed. 0 means no limit.
[ label_limit: <int> | default = 0 ]
  • label_name_length_limit
# Per-scrape limit on length of labels name that will be accepted for a sample.
# If a label name is longer than this number post metric-relabeling, the entire
# scrape will be treated as failed. 0 means no limit.
[ label_name_length_limit: <int> | default = 0 ]
  • label_value_length_limit
# Per-scrape limit on length of labels value that will be accepted for a sample.
# If a label value is longer than this number post metric-relabeling, the
# entire scrape will be treated as failed. 0 means no limit.
[ label_value_length_limit: <int> | default = 0 ]
  • target_limit
# Per-scrape config limit on number of unique targets that will be
# accepted. If more than this number of targets are present after target
# relabeling, Prometheus will mark the targets as failed without scraping them.
# 0 means no limit. This is an experimental feature, this behaviour could
# change in the future.
[ target_limit: <int> | default = 0 ]
http://www.yayakq.cn/news/322547/

相关文章:

  • 网站建设新趋势个人网页制作价格
  • seo网站关键词优化排名黄页88网站
  • 重庆便宜网站建设电子商务网站建设模式
  • 挂马网站教程网站单页生成器
  • 做物流的网站有哪些功能php学建网站
  • 深圳外贸建站及推广iis7 发布静态网站
  • 网站 域名 授权服务器 分布式做网站哪里买空间好
  • 互联网做网站的话术手机app推荐
  • 当当网网站建设需求分析wordpress展示页面模板
  • 做网站的财务会涉及到的科目潮州营销型网站建设推广
  • 做网站所需要哪方面的知识wordpress公众号文章
  • 如何将网站变成免费wordpress定时发布
  • 装修行业 网站建设凡科网站建站后 怎么编辑自己的代码源
  • 做网站有什么作用下花园区住房和城乡建设局网站
  • 深圳互助资金盘网站开发模板网字库
  • 网站建设类有哪些岗位官方微信公众平台
  • 编程培训机构排名google搜索排名优化
  • 网站推广方法的费用深圳市建设局工程交易中心网站
  • 做网站要多少像素建外做网站的公司
  • 嘉兴网站制作公司深圳seo公司排名
  • 济南济阳哪有做网站的开互联网公司赚钱吗
  • 网站 用户粘度网站优化任务
  • 网站建设零基础教学wpautop wordpress
  • 唐山网站托管wordpress 积分
  • wordpress如何建企业站网站营销设计
  • 井冈山保育院网站建设郑州网站建设饣汉狮网络
  • 湖北阳新县建设局网站做书的封面网站
  • 如何分析一个网站开发语言织梦网站演示
  • 推荐网站建设服务商王烨捷
  • 电商网站分析免费手机网站建设