diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-05-23 11:40:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-05-23 20:32:47 +0900 |
commit | 7c42e295e28c233fdb7a130681cd490308f116ca (patch) | |
tree | fa6e4117db2e9f2f31a914c0aa932772760386b8 /gobgpd | |
parent | a7521827e1d8c964f1c9f342dc39d02f45660c49 (diff) |
add collector feature
dump the update messages and the state change of peers into influxdb:
[collector.config]
url = "http://localhost:8086"
db-name = "gobgp"
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 7a04eef7..8dddfa51 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -208,6 +208,9 @@ func main() { if err := bgpServer.SetZebraConfig(newConfig.Zebra); err != nil { log.Fatalf("failed to set zebra config: %s", err) } + if err := bgpServer.SetCollector(newConfig.Collector); err != nil { + log.Fatalf("failed to set collector config: %s", err) + } if err := bgpServer.SetRpkiConfig(newConfig.RpkiServers); err != nil { log.Fatalf("failed to set rpki config: %s", err) } |