mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
Merge pull request #1303 from weaveworks/customizable-fixprobe
add some flags to fixprobe so you can use it against the service
This commit is contained in:
@@ -19,6 +19,8 @@ func main() {
|
||||
var (
|
||||
publish = flag.String("publish", fmt.Sprintf("localhost:%d", xfer.AppPort), "publish target")
|
||||
publishInterval = flag.Duration("publish.interval", 1*time.Second, "publish (output) interval")
|
||||
publishToken = flag.String("publish.token", "fixprobe", "publish token, for if we are talking to the service")
|
||||
publishID = flag.String("publish.id", "fixprobe", "publisher ID used to identify publishers")
|
||||
)
|
||||
flag.Parse()
|
||||
|
||||
@@ -38,8 +40,8 @@ func main() {
|
||||
}
|
||||
|
||||
client, err := appclient.NewAppClient(appclient.ProbeConfig{
|
||||
Token: "fixprobe",
|
||||
ProbeID: "fixprobe",
|
||||
Token: *publishToken,
|
||||
ProbeID: *publishID,
|
||||
Insecure: false,
|
||||
}, *publish, *publish, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user