remove writer name

This commit is contained in:
Ulric Qin 2021-12-09 23:07:45 +08:00
parent 53411dc5d9
commit d2cb48a2ef
3 changed files with 3 additions and 8 deletions

View File

@ -150,7 +150,6 @@ QueuePopSize = 2000
SleepInterval = 50
[[Writers]]
Name = "prom"
Url = "http://prometheus:9090/api/v1/write"
# Basic auth username
BasicAuthUser = ""
@ -169,13 +168,12 @@ MaxIdleConns = 100
MaxIdleConnsPerHost = 100
# [[Writers]]
# Name = "m3db"
# Url = "http://m3db:7201/api/v1/prom/remote/write"
# # Basic auth username
# BasicAuthUser = ""
# # Basic auth password
# BasicAuthPass = ""
# timeout settings, unit: ms
# # timeout settings, unit: ms
# Timeout = 30000
# DialTimeout = 10000
# TLSHandshakeTimeout = 30000

View File

@ -153,7 +153,6 @@ QueuePopSize = 2000
SleepInterval = 50
[[Writers]]
Name = "prom"
Url = "http://127.0.0.1:9090/api/v1/write"
# Basic auth username
BasicAuthUser = ""
@ -172,13 +171,12 @@ MaxIdleConns = 100
MaxIdleConnsPerHost = 100
# [[Writers]]
# Name = "m3db"
# Url = "http://127.0.0.1:7201/api/v1/prom/remote/write"
# # Basic auth username
# BasicAuthUser = ""
# # Basic auth password
# BasicAuthPass = ""
# timeout settings, unit: ms
# # timeout settings, unit: ms
# Timeout = 30000
# DialTimeout = 10000
# TLSHandshakeTimeout = 30000

View File

@ -16,7 +16,6 @@ import (
)
type Options struct {
Name string
Url string
BasicAuthUser string
BasicAuthPass string
@ -181,7 +180,7 @@ func Init(opts []Options, globalOpt GlobalOpt) error {
Client: cli,
}
Writers.Put(opts[i].Name, writer)
Writers.Put(opts[i].Url, writer)
}
go Writers.Writes()