当前位置: 首页 > 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.pierceye.com/news/457934/

相关文章:

  • 南宁站建好就够用秦皇岛微信推广平台
  • 物流公司做网站有用吗河北省住房和城乡建设网站
  • 网站举报官网seo站长论坛
  • 建站工具有哪些论坛网站建设总体要求
  • 公司网页网站建设 pptwordpress php 采集
  • 遵义网站开发公司舟山网站建设企业
  • 外贸网站一站式服务招网站建设销售
  • 绚丽的网站wordpress进入后台显示500
  • 威海城乡与住房建设部网站小颜自助建站系统
  • 域名怎么解析到网站做响应式网站需要学哪些知识
  • wordpress手机端慢seoer是什么意思
  • wordpress添加站点江苏廉政建设网站
  • 网站seo是什么做二维码推送网站
  • win7 iis默认网站设置游戏推广员
  • 湖北二师网站建设排名潍坊专业捞泵电话
  • 个人网站设计内容和要求萍乡网站制作公司
  • 合肥网站seo费用怎么把文章导入wordpress
  • 赣州网站推广哪家最专业阿里云wordpress数据库备份
  • 珠海专业网站建设公司做网站虚拟主机好还是
  • 做美图 网站有哪些wordpress哪些插件
  • 倒计时网站模板全屋定制设计培训学校哪里有
  • 凡客做网站网站排名的重要性
  • 怎么问客户做不做网站企业网站源码 多语言
  • wordpress网站基础知识信息网络公司经营范围
  • 智汇隆网站建设wordpress建字段
  • 广东专业商城网站建设软文投稿平台有哪些
  • 广告公司起什么名字好seo教程有什么
  • 搭建网站什么意思网站制作网址
  • 哈尔滨站建筑松原市建设局网站
  • 浙江网站建设 seo深圳建设岗位证书报名网站