-
Notifications
You must be signed in to change notification settings - Fork 0
/
metrics.go
48 lines (39 loc) · 1.34 KB
/
metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
requestsCRUDTotal = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_requestsCRUDTotal",
Help: "The total number of CRUD requests for all types.",
})
requestsCRUDTwitter = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_requestsCRUDTwitter",
Help: "The number of CRUD requests for twitter hooks.",
})
requestsCRUDRss = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_requestsCRUDRss",
Help: "The number of CRUD requests for rss hooks.",
})
requestsCRUDAlmanax = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_requestsCRUDAlmanax",
Help: "The number of CRUD requests for almanax hooks.",
})
sendHooksTwitter = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_sendTwitter",
Help: "The number of sent twitter hooks.",
})
sendHooksRss = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_sendRss",
Help: "The number of sent rss hooks.",
})
sendHooksAlmanax = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_sendAlmanax",
Help: "The number of sent almanax hooks.",
})
sendHooksTotal = promauto.NewCounter(prometheus.CounterOpts{
Name: "webhooks_sendTotal",
Help: "The total number of hooks sent.",
})
)