prometheus/prometheus.go
func (h *Handler) Handle(record *logging.Record) error {
	switch record.Level {
	case logging.EMERGENCY:
		h.Counter.emergencyCounter.Inc()
	case logging.ALERT:
		h.Counter.alertCounter.Inc()
	case logging.CRITICAL:
		h.Counter.criticalCounter.Inc()
	case logging.ERROR:
		h.Counter.errorCounter.Inc()
	case logging.WARNING:
		h.Counter.warningCounter.Inc()
	case logging.NOTICE:
		h.Counter.noticeCounter.Inc()
	case logging.INFO:
		h.Counter.infoCounter.Inc()
	case logging.DEBUG:
		h.Counter.debugCounter.Inc()
	}
	return nil
}
func (h *Handler) Handle(record *logging.Record) error {
	switch record.Level {
	case logging.EMERGENCY:
		h.Counter.emergencyCounter.Inc()
	case logging.ALERT:
		h.Counter.alertCounter.Inc()
	case logging.CRITICAL:
		h.Counter.criticalCounter.Inc()
	case logging.ERROR:
		h.Counter.errorCounter.Inc()
	case logging.WARNING:
		h.Counter.warningCounter.Inc()
	case logging.NOTICE:
		h.Counter.noticeCounter.Inc()
	case logging.INFO:
		h.Counter.infoCounter.Inc()
	case logging.DEBUG:
		h.Counter.debugCounter.Inc()
	}
	return nil
}
// Handle increments Prometheus counter metrics based on
// record log level.