文件操作 - dns_query.conf
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/netdata/conf.d/go.d/dns_query.conf
编辑文件内容
# netdata go.d.plugin configuration for dns_query # # This file is in YaML format. Generally the format is: # # name: value # # There are 2 sections: # - GLOBAL # - JOBS # # # [ GLOBAL ] # These variables set the defaults for all JOBs, however each JOB may define its own, overriding the defaults. # # The GLOBAL section format: # param1: value1 # param2: value2 # # Currently supported global parameters: # - update_every # Data collection frequency in seconds. Default: 1. # # - autodetection_retry # Re-check interval in seconds. Attempts to start the job are made once every interval. # Zero means not to schedule re-check. Default: 0. # # - priority # Priority is the relative priority of the charts as rendered on the web page, # lower numbers make the charts appear before the ones with higher numbers. Default: 70000. # # # [ JOBS ] # JOBS allow you to collect values from multiple sources. # Each source will have its own set of charts. # # IMPORTANT: # - Parameter 'name' is mandatory. # - Jobs with the same name are mutually exclusive. Only one of them will be allowed running at any time. # # This allows autodetection to try several alternatives and pick the one that works. # Any number of jobs is supported. # # The JOBS section format: # # jobs: # - name: job1 # param1: value1 # param2: value2 # # - name: job2 # param1: value1 # param2: value2 # # - name: job2 # param1: value1 # # # [ List of JOB specific parameters ]: # - domains # Domain or subdomains to query. Module choose random domain from the list on every iteration. # Syntax: # domains: [python.org, golang.org, ruby-lang.org] # # - servers # Servers to query. # servers: [8.8.8.8, 8.8.4.4] # # - port # DNS server port. # Syntax: # port: 53 # # - network # Network protocol name. Available options: udp, tcp, tcp-tls. Default: udp. # Syntax: # network: udp # # - record_type # Query record type. Available options: A, AAAA, CNAME, MX, NS, PTR, TXT, SOA, SPF, TXT, SRV. Default: A. # Syntax: # record_type: A # # - timeout # Query read timeout. # Syntax: # timeout: 2 # # # [ JOB defaults ]: # port: 53 # network: udp # record_type: A # timeout: 2 # update_every: 5 # # # [ JOB mandatory parameters ]: # - name # - domains # - servers # # ------------------------------------------------MODULE-CONFIGURATION-------------------------------------------------- # [ GLOBAL ] # update_every: 1 # autodetection_retry: 0 # priority: 70000 # # # [ JOBS ] #jobs: # - name: example # domains: # - google.com # - github.com # - reddit.com # servers: # - 8.8.8.8 # - 8.8.4.4
修改文件时间
将文件时间修改为当前时间的前一年
删除文件