func (s *AwsService) MetricsRegister(m *metrics.Resource) { metricApplicationsTotal = m.NewGauge(MetricApplicationsTotal) metricSubscriptionsTotal = m.NewGauge(MetricSubscriptionsTotal) metricTopicsTotal = m.NewGauge(MetricTopicsTotal) metricEndpointsTotal = m.NewGauge(MetricEndpointsTotal) metricEndpointsEnabled = m.NewGauge(MetricEndpointsEnabled) }
func (r *Resource) MetricsRegister(m *metrics.Resource) { metricBalance = m.NewGauge(MetricSmsBalance) metricTotalSend := m.NewCounter(MetricSmsTotalSend) metricTotalSendSuccess = metricTotalSend.With("result", "success") metricTotalSendFailed = metricTotalSend.With("result", "failed") }
func (r *ApiService) MetricsRegister(m *metrics.Resource) { metricApiProcedureExecuteTime = m.NewTimer(MetricApiProcedureExecuteTime) }