func (p *ContainerMetricProcessor) ProcessContainerMetricDisk(e *events.ContainerMetric) metrics.GaugeMetric { appID := e.GetApplicationId() instanceIndex := strconv.Itoa(int(e.GetInstanceIndex())) stat := "apps." + appID + ".diskBytes." + instanceIndex metric := metrics.NewGaugeMetric(stat, int64(e.GetDiskBytes())) return *metric }
func (p *HeartbeatProcessor) ProcessHeartbeatEventsErrorCount(e *events.Heartbeat, origin string) *metrics.GaugeMetric { stat := "ops." + origin + ".heartbeats.eventsErrorCount" metric := metrics.NewGaugeMetric(stat, int64(e.GetErrorCount())) return metric }