vmon: start monitoring allocatord.
Change-Id: I34050d7a281bcad575ec3f1679f1e52e2fa25b4a
diff --git a/internal/monitoring/monitoring.go b/internal/monitoring/monitoring.go
index 13eb03e..8b10445 100644
--- a/internal/monitoring/monitoring.go
+++ b/internal/monitoring/monitoring.go
@@ -41,6 +41,7 @@
SNRole = "role service"
SNProxy = "proxy service"
SNBenchmark = "benchmark service"
+ SNAllocator = "syncbase allocator"
hostnameStatSuffix = "__debug/stats/system/hostname"
zoneStatSuffix = "__debug/stats/system/gce/zone"
@@ -62,6 +63,7 @@
SNRole: "identity/role",
SNProxy: "proxy-mon",
SNBenchmark: "benchmarks",
+ SNAllocator: "syncbase-allocator",
}
// StatValue stores the name and the value returned from the GetStat function.
@@ -90,25 +92,6 @@
Zone string
}
-var ServiceLocationMap = map[string]*ServiceLocation{
- "/ns.dev.v.io:8101": &ServiceLocation{
- Instance: "vanadium-cell-master",
- Zone: "us-central1-c",
- },
- "/ns.dev.v.io:8151": &ServiceLocation{
- Instance: "vanadium-cell-master",
- Zone: "us-central1-c",
- },
- "/ns.dev.staging.v.io:8101": &ServiceLocation{
- Instance: "vanadium-cell-master",
- Zone: "us-central1-c",
- },
- "/ns.dev.staging.v.io:8151": &ServiceLocation{
- Instance: "vanadium-cell-master",
- Zone: "us-central1-c",
- },
-}
-
type labelData struct {
key string
description string
diff --git a/vmon/servicelatency.go b/vmon/servicelatency.go
index 06cc6c1..4719871 100644
--- a/vmon/servicelatency.go
+++ b/vmon/servicelatency.go
@@ -41,6 +41,7 @@
monitoring.SNRole,
monitoring.SNProxy,
monitoring.SNBenchmark,
+ monitoring.SNAllocator,
}
hasError := false
diff --git a/vmon/servicemetadata.go b/vmon/servicemetadata.go
index 8917309..f678290 100644
--- a/vmon/servicemetadata.go
+++ b/vmon/servicemetadata.go
@@ -33,6 +33,7 @@
monitoring.SNRole,
monitoring.SNProxy,
monitoring.SNBenchmark,
+ monitoring.SNAllocator,
}
hasError := false
diff --git a/vmon/servicemethodlatency.go b/vmon/servicemethodlatency.go
index 99d14f4..8456c38 100644
--- a/vmon/servicemethodlatency.go
+++ b/vmon/servicemethodlatency.go
@@ -39,6 +39,7 @@
monitoring.SNRole,
monitoring.SNProxy,
monitoring.SNBenchmark,
+ monitoring.SNAllocator,
}
hasError := false
diff --git a/vmon/serviceqps.go b/vmon/serviceqps.go
index f2ecede..7044731 100644
--- a/vmon/serviceqps.go
+++ b/vmon/serviceqps.go
@@ -42,6 +42,7 @@
monitoring.SNRole,
monitoring.SNProxy,
monitoring.SNBenchmark,
+ monitoring.SNAllocator,
}
hasError := false