-
Notifications
You must be signed in to change notification settings - Fork 0
/
metrics.go
35 lines (26 loc) · 1.15 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
package main
import "github.com/prometheus/client_golang/prometheus"
var baremetalHostsTotal = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "serverscom_baremetal_hosts_total",
})
var baremetalBalance = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "serverscom_baremetal_balance",
})
var baremetalEstimatedBalance = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "serverscom_baremetal_estimated_balance",
})
var baremetalHostUsageTraffic = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "serverscom_baremetal_host_usage_traffic",
}, []string{"host"})
var baremetalHostBillingPeriodTraffic = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "serverscom_baremetal_host_billing_period_traffic",
}, []string{"host"})
var baremetalHostPrice = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "serverscom_baremetal_host_price",
}, []string{"host"})
var baremetalHostDRACEnabled = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "serverscom_baremetal_host_drac_enabled",
}, []string{"host"})
var baremetalHostOSReinstallation = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "serverscom_baremetal_host_os_reinstallation",
}, []string{"host"})