adding newrelic unknown containers/volumes metric
@@ -17,6 +17,7 @@ type (
stats struct {
created interface{}
deleted interface{}
+ unknown interface{}
}
NewRelicEmitter struct {
@@ -135,6 +136,8 @@ func (emitter *NewRelicEmitter) Emit(logger lager.Logger, event metric.Event) {
emitter.containers.deleted = event.Value
case "containers created":
emitter.containers.created = event.Value
+ case "unknown containers":
+ emitter.containers.unknown = event.Value
case "failed containers":
newPayload := emitter.simplePayload(logger, event, "containers")
newPayload["failed"] = newPayload["value"]
@@ -147,6 +150,8 @@ func (emitter *NewRelicEmitter) Emit(logger lager.Logger, event metric.Event) {
emitter.volumes.deleted = event.Value
case "volumes created":
emitter.volumes.created = event.Value
+ case "unknown volumes":
+ emitter.volumes.unknown = event.Value
case "failed volumes":
newPayload := emitter.simplePayload(logger, event, "volumes")
newPayload["failed"] = newPayload["value"]
