(bytes int)
| 271 | } |
| 272 | |
| 273 | func (s *sharedPullerState) copiedFromOrigin(bytes int) { |
| 274 | s.mut.Lock() |
| 275 | s.copyOrigin++ |
| 276 | s.updated = time.Now() |
| 277 | s.mut.Unlock() |
| 278 | metricFolderProcessedBytesTotal.WithLabelValues(s.folder, metricSourceLocalOrigin).Add(float64(bytes)) |
| 279 | } |
| 280 | |
| 281 | func (s *sharedPullerState) copiedFromElsewhere(bytes int) { |
| 282 | metricFolderProcessedBytesTotal.WithLabelValues(s.folder, metricSourceLocalOther).Add(float64(bytes)) |