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

网站的创新点有哪些代理记账公司注册

网站的创新点有哪些,代理记账公司注册,html图案代码大全,网站可以先做代码么如果victoriametrics的scrape_timeout大于scrape_interval时会怎么样 背景 我们在配置采集的时候#xff0c;有时候会不小心配置了scrape_timeout大于scrape_interval#xff0c;那么这时会出现什么情况呢#xff1f;vmagent在采集的时候#xff0c;如果上一次采集还没有完…如果victoriametrics的scrape_timeout大于scrape_interval时会怎么样 背景 我们在配置采集的时候有时候会不小心配置了scrape_timeout大于scrape_interval那么这时会出现什么情况呢vmagent在采集的时候如果上一次采集还没有完成其实会结束掉再发起下一次采集的不会出现说上一次没完成又发起新的一次因为这样只会采集越堆积越多在到了下一次还没有完成或者超过了scrape_timeout那么就会标识采集失败 如果出现scrape_config的scrape_timeout大于scrape_interval时会怎么样 官方文档的说明 https://docs.victoriametrics.com/sd_configs.html#scrape_configs # scrape_timeout is an optional timeout when scraping the targets.# By default, the scrape_timeout specified in global section is used.# See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#configuration-file# If global section doesnt contain the scrape_timeout option,# then 10 seconds interval is used.# Example values:# - 30s - 30 seconds# - 2m - 2 minutes# The scrape_timeout cannot exceed the scrape_interval.# The scrape_timeout can be set on a per-target basis by specifying __scrape_timeout__# label during target relabeling phase.# See https://docs.victoriametrics.com/vmagent.html#relabeling# scrape_timeout: duration源码里的处理 // ScrapeConfigs returns the scrape configurations. func (c *Config) GetScrapeConfigs() ([]*ScrapeConfig, error) {scfgs : make([]*ScrapeConfig, len(c.ScrapeConfigs))jobNames : map[string]string{}for i, scfg : range c.ScrapeConfigs {// We do these checks for library users that would not call Validate in// Unmarshal.if err : scfg.Validate(c.GlobalConfig.ScrapeInterval, c.GlobalConfig.ScrapeTimeout); err ! nil {return nil, err}...... }func (c *ScrapeConfig) Validate(defaultInterval, defaultTimeout model.Duration) error {if c nil {return errors.New(empty or null scrape config section)}// First set the correct scrape interval, then check that the timeout// (inferred or explicit) is not greater than that.if c.ScrapeInterval 0 {c.ScrapeInterval defaultInterval}if c.ScrapeTimeout c.ScrapeInterval {return fmt.Errorf(scrape timeout greater than scrape interval for scrape config with job name %q, c.JobName)}if c.ScrapeTimeout 0 {if defaultTimeout c.ScrapeInterval {c.ScrapeTimeout c.ScrapeInterval} else {c.ScrapeTimeout defaultTimeout}}return nil }结论 job的scrape_timeout如果大于scrape_interval则报错如果全局的scrape_timeout大于采集的scrape_interval则将scrape_timeout设置为scrape_interval否则设置job的scrape_interval为全局scrape_interval
http://www.zqtcl.cn/news/457934/

相关文章:

  • 南昌优化网站排名公司建设网站的步骤
  • 一个人做网站wordpress如何加链接
  • 查网站服务器所在地笔记本电脑安装wordpress
  • 石家庄网站推广专家php网站分类目录源码
  • 盐城市城乡建设局门户网站低代码开发软件
  • 网站建设中的html深圳建设网站需要多少钱
  • 南阳公司网站制作品牌推广工作内容
  • 网站被刷流量怎么办红色php企业网站模板下载
  • 做现货黄金的金融网站设计平台app
  • 淘宝客手机网站搭建网站设计专业公司
  • 做网站用的图片怎样压缩钓鱼网站的制作教程
  • 建设网站类型wordpress竖版图片尺寸
  • 网站建设数据库ER图怎么画公司网站建设建议书
  • 网站建设网站制作有限排名优化课程
  • 绵竹网站建设佛山网络营销推广
  • 网站备案名称重复学会网站建设目的
  • 网站套餐到期什么意思孝感的网站建设
  • 网站制作费用多少钱房地产建筑设计公司
  • 网站优化要素做网站看百度脸色
  • 软件开发 网站开发区别seo怎么刷关键词排名
  • python 网站开发必会智能网站
  • 重庆建设摩托车官方网站网络是干什么的
  • 建筑工程网站源码wordpress 多域名 图片不显示
  • 大型网站建设优化排名wordpress 投稿 插件
  • 二维码的网站如何做静安免费网站制作
  • 微网站免费模板管理网络的网站
  • 网站下载软件政企网站建设
  • 网站设计为什么要域名北京移动端网站设计
  • 自做网站多少钱哪个网站的课件做的好
  • 网站开发实现页面的跳转怎么添加网站关键词