func (p *ContainerMetricProcessor) ProcessContainerMetricDisk(e *events.ContainerMetric) *metrics.WMetric { appID := e.GetApplicationId() instanceIndex := strconv.Itoa(int(e.GetInstanceIndex())) stat := "apps." + appID + ".diskBytes." + instanceIndex metric := metrics.NewLongCounterMetric(stat, int64(e.GetDiskBytes())) return metric }
func (p *ContainerMetricProcessor) ProcessContainerMetricMemory(e *events.ContainerMetric) metrics.GaugeMetric { appID := e.GetApplicationId() instanceIndex := strconv.Itoa(int(e.GetInstanceIndex())) stat := "apps." + appID + ".memoryBytes." + instanceIndex metric := metrics.NewGaugeMetric(stat, int64(e.GetMemoryBytes())) return *metric }