remove writer name
This commit is contained in:
parent
53411dc5d9
commit
d2cb48a2ef
|
@ -150,7 +150,6 @@ QueuePopSize = 2000
|
||||||
SleepInterval = 50
|
SleepInterval = 50
|
||||||
|
|
||||||
[[Writers]]
|
[[Writers]]
|
||||||
Name = "prom"
|
|
||||||
Url = "http://prometheus:9090/api/v1/write"
|
Url = "http://prometheus:9090/api/v1/write"
|
||||||
# Basic auth username
|
# Basic auth username
|
||||||
BasicAuthUser = ""
|
BasicAuthUser = ""
|
||||||
|
@ -169,13 +168,12 @@ MaxIdleConns = 100
|
||||||
MaxIdleConnsPerHost = 100
|
MaxIdleConnsPerHost = 100
|
||||||
|
|
||||||
# [[Writers]]
|
# [[Writers]]
|
||||||
# Name = "m3db"
|
|
||||||
# Url = "http://m3db:7201/api/v1/prom/remote/write"
|
# Url = "http://m3db:7201/api/v1/prom/remote/write"
|
||||||
# # Basic auth username
|
# # Basic auth username
|
||||||
# BasicAuthUser = ""
|
# BasicAuthUser = ""
|
||||||
# # Basic auth password
|
# # Basic auth password
|
||||||
# BasicAuthPass = ""
|
# BasicAuthPass = ""
|
||||||
# timeout settings, unit: ms
|
# # timeout settings, unit: ms
|
||||||
# Timeout = 30000
|
# Timeout = 30000
|
||||||
# DialTimeout = 10000
|
# DialTimeout = 10000
|
||||||
# TLSHandshakeTimeout = 30000
|
# TLSHandshakeTimeout = 30000
|
||||||
|
|
|
@ -153,7 +153,6 @@ QueuePopSize = 2000
|
||||||
SleepInterval = 50
|
SleepInterval = 50
|
||||||
|
|
||||||
[[Writers]]
|
[[Writers]]
|
||||||
Name = "prom"
|
|
||||||
Url = "http://127.0.0.1:9090/api/v1/write"
|
Url = "http://127.0.0.1:9090/api/v1/write"
|
||||||
# Basic auth username
|
# Basic auth username
|
||||||
BasicAuthUser = ""
|
BasicAuthUser = ""
|
||||||
|
@ -172,13 +171,12 @@ MaxIdleConns = 100
|
||||||
MaxIdleConnsPerHost = 100
|
MaxIdleConnsPerHost = 100
|
||||||
|
|
||||||
# [[Writers]]
|
# [[Writers]]
|
||||||
# Name = "m3db"
|
|
||||||
# Url = "http://127.0.0.1:7201/api/v1/prom/remote/write"
|
# Url = "http://127.0.0.1:7201/api/v1/prom/remote/write"
|
||||||
# # Basic auth username
|
# # Basic auth username
|
||||||
# BasicAuthUser = ""
|
# BasicAuthUser = ""
|
||||||
# # Basic auth password
|
# # Basic auth password
|
||||||
# BasicAuthPass = ""
|
# BasicAuthPass = ""
|
||||||
# timeout settings, unit: ms
|
# # timeout settings, unit: ms
|
||||||
# Timeout = 30000
|
# Timeout = 30000
|
||||||
# DialTimeout = 10000
|
# DialTimeout = 10000
|
||||||
# TLSHandshakeTimeout = 30000
|
# TLSHandshakeTimeout = 30000
|
||||||
|
|
|
@ -16,7 +16,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct {
|
type Options struct {
|
||||||
Name string
|
|
||||||
Url string
|
Url string
|
||||||
BasicAuthUser string
|
BasicAuthUser string
|
||||||
BasicAuthPass string
|
BasicAuthPass string
|
||||||
|
@ -181,7 +180,7 @@ func Init(opts []Options, globalOpt GlobalOpt) error {
|
||||||
Client: cli,
|
Client: cli,
|
||||||
}
|
}
|
||||||
|
|
||||||
Writers.Put(opts[i].Name, writer)
|
Writers.Put(opts[i].Url, writer)
|
||||||
}
|
}
|
||||||
|
|
||||||
go Writers.Writes()
|
go Writers.Writes()
|
||||||
|
|
Loading…
Reference in New Issue