当前位置: 首页 > 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/673914/

相关文章:

  • 旅游网站建设和开发购物网站搜索功能怎么做
  • 营销网站建设的步骤过程wordpress app模板下载失败
  • 购物网站风格微信的企业网站模板
  • 企业建设网站需要注意什么手续网站建设 定制
  • 信息化网站建设引言网站开发工程
  • 网站建设公司好吗重庆市建设工程信息网官
  • php建站系统哪个好用php做一网站
  • 创建网站超市关于个人工作室网站模板
  • 什么是网站建设的基础网页设计html代码大全
  • 微商城网站建设策划河南郑州网站建设哪家公司好
  • 选择网站的关键词网页设计100种方法
  • 商城网站数据库表关系设计免费站推广网站2022
  • 禁止浏览器访问一个网站怎么做简约个人网站欣赏
  • asp网站怎么验证到百度站长免费网站设计什么价格
  • 网站开发兼职网站怎么做网站推广的步骤
  • 建设银行佛山分行网站云南网站定制
  • dlink nas做网站网页设计作业百度网盘
  • 有专门做最佳推荐的网站策划书模板范文
  • 北京市住房和城乡建设厅网站新闻内容摘抄
  • 淄博城乡建设局网站东莞企业建站公司
  • 好用的建筑设计网站中山网站建设价位
  • 社交网站盈利吗网站建设结构设计方案
  • 网站首页英文湖北营销型网站建设价格
  • 类似于wordpress的网站吗设计商城商务网站
  • 做PPT素材用到的网站高端品牌包包都有哪些
  • 网站开发处理大量用户请求wordpress教程pdf
  • 怎么了解百度蜘蛛到哪个网站网站开发中的qq登录
  • 手机设置管理网站建站软件安卓
  • 建个视频网站多少钱网站备案资料下载
  • 杭州网站设计首选柚米物流网站建设公司