Example #1
0
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)
}
Example #2
0
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")
}
Example #3
0
func (r *ApiService) MetricsRegister(m *metrics.Resource) {
	metricApiProcedureExecuteTime = m.NewTimer(MetricApiProcedureExecuteTime)
}