feat: build wahrwelt A/D toolkit
This commit is contained in:
1 parent
303438d206
commit
653924d8c6
564 files changed
+36310
-49998
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package exploits
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||
)
|
||||
|
||||
type Metrics struct {
|
||||
AliveClients prometheus.Gauge
|
||||
}
|
||||
|
||||
func NewMetrics(namespace string) *Metrics {
|
||||
return &Metrics{
|
||||
AliveClients: promauto.NewGauge(prometheus.GaugeOpts{
|
||||
Namespace: namespace,
|
||||
Subsystem: "server",
|
||||
Name: "alive_clients",
|
||||
Help: "Number of alive clients",
|
||||
}),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user