This commit is contained in:
2016-10-14 23:35:07 +01:00
parent 62eaba8408
commit 8a5cfde134
197 changed files with 236240 additions and 0 deletions

21
vendor/github.com/tcolgate/hugot/metrics.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
package hugot
import "github.com/prometheus/client_golang/prometheus"
var (
messagesTx = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "hugot_messages_sent_total",
Help: "Number of messages sent.",
},
[]string{"adapter", "channel", "user"})
messagesRx = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "hugot_messages_received_total",
Help: "Number of messages received.",
},
[]string{"adapter", "channel", "user"})
)
func init() {
prometheus.MustRegister(messagesTx)
prometheus.MustRegister(messagesRx)
}