[[inputs.prom]] # Exporter URLs urls = ["http://192.168.0.210:9000/minio/v2/metrics/cluster"] # 忽略对 url 的请求错误 ignore_req_err = false # 采集器别名 source = "minio" metric_types = [] # 保留指标,防止时间线炸裂 metric_name_filter = ["minio_bucket","minio_cluster","minio_node","minio_s3","minio_usage"] # 采集间隔 "ns", "us" (or "µs"), "ms", "s", "m", "h" interval = "1m" # TLS 配置 tls_open = false # tls_ca = "/tmp/ca.crt" # tls_cert = "/tmp/peer.crt" # tls_key = "/tmp/peer.key" # 过滤 tags, 可配置多个tag # 匹配的 tag 将被忽略,但对应的数据仍然会上报上来 tags_ignore = ["version","le","commit"] # 自定义认证方式,目前仅支持 Bearer Token # token 和 token_file: 仅需配置其中一项即可 [inputs.prom.auth] type = "bearer_token" token = "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjQ4MTAwNzIxNDQsImlzcyI6InByb21ldGhldXMiLCJzdWIiOiJtaW5pb2FkbWluIn0.tzoJ7ifMxgx4jXfUKdD_Sq5Ll2-YlbaBu6FuNTZcc88t9o9STyg4yicRAgYmezVGFwYR2VFKvBSBnOnVnb0n4w" # token_file = "/tmp/token" # 自定义指标集名称 # 可以将包含前缀 prefix 的指标归为一类指标集 # 自定义指标集名称配置优先 measurement_name 配置项 #[[inputs.prom.measurements]] # prefix = "cpu_" # name = "cpu" # [[inputs.prom.measurements]] # prefix = "mem_" # name = "mem" # 对于匹配如下 tag 相关的数据,丢弃这些数据不予采集 [inputs.prom.ignore_tag_kv_match] # key1 = [ "val1.*", "val2.*"] # key2 = [ "val1.*", "val2.*"] # 在数据拉取的 HTTP 请求中添加额外的请求头 [inputs.prom.http_headers] # Root = "passwd" # Michael = "1234" # 重命名 prom 数据中的 tag key [inputs.prom.tags_rename] overwrite_exist_tags = false [inputs.prom.tags_rename.mapping] # tag1 = "new-name-1" # tag2 = "new-name-2" # tag3 = "new-name-3" # 将采集到的指标作为日志打到中心 # service 字段留空时,会把 service tag 设为指标集名称 [inputs.prom.as_logging] enable = false service = "service_name" # 自定义Tags [inputs.prom.tags] # some_tag = "some_value" # more_tag = "some_other_value"
评论