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

广州天河区网站建设公司wordpress 获取文章标题

广州天河区网站建设公司,wordpress 获取文章标题,wordpress python3,wordpress ftp验证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/57704/

相关文章:

  • 百度双站和响应式网站的区别网站建设流程是什么意思
  • 做平面设计用哪个素材网站好seo在网站建设中的作用
  • app商城网站开发早期网页游戏
  • 手机网站免费模板下载wordpress 帮助 主题
  • 网站建设前提学校网站制作软件
  • 北京网站优化软件wordpress 汽车主题
  • 设计网站的在工作中的品牌网站开封网站设计价格
  • 网站运营推广策划书做外贸仿牌网站
  • 郑州旅游网站设计免费海报制作app
  • 苏宁易购网站建设 的定位网站建设风格定位
  • 做外贸必应网站产品曝光js搜索网站开发
  • 柠檬网络科技网站建设做网站上传空间什么意思
  • vs2010 网站开发wordpress 内网搭建
  • 精选网站建立 推广 优化网站开发的编程语言
  • wordpress阿里百变xiu主题优化工作流程
  • 2008 做网站网络工程师证书有哪些
  • 百度推广管理黑河seo
  • 专业网站建设集团年轻的儿媳
  • 在电脑新建网站站点传奇手游代理平台价格表
  • 网站认证打的钱怎么做分录青海格尔木建设局网站
  • 备案号怎么放置到网站品牌建设的重要意义培训课题
  • 做受网站网站建设报价明细
  • 营销型国外网站上海企业网站
  • 无锡做网站中企动力和孕妇做网站
  • 网站的内链是什么意思营销型网站制作多少钱
  • 开发工程师网站开发工程师百度登录
  • 保定设计网站开发app和网站建设那个好些
  • 程序员建网站wordpress 微信登录界面
  • 计算机网站建设与开发西安定制网站建设公司哪家好
  • 学校局域网站建设wordpress 汉化主题