Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHKeyCollector ¶
type SSHKeyCollector struct { Key *prometheus.Desc // contains filtered or unexported fields }
SSHKeyCollector collects metrics about the SSH keys.
func NewSSHKeyCollector ¶
func NewSSHKeyCollector(logger log.Logger, client *hetzner.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *SSHKeyCollector
NewSSHKeyCollector returns a new SSHKeyCollector.
func (*SSHKeyCollector) Collect ¶
func (c *SSHKeyCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*SSHKeyCollector) Describe ¶
func (c *SSHKeyCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*SSHKeyCollector) Metrics ¶ added in v1.0.0
func (c *SSHKeyCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.
type ServerCollector ¶
type ServerCollector struct { Up *prometheus.Desc Traffic *prometheus.Desc Flatrate *prometheus.Desc Cancelled *prometheus.Desc Paid *prometheus.Desc // contains filtered or unexported fields }
ServerCollector collects metrics about the account in general.
func NewServerCollector ¶
func NewServerCollector(logger log.Logger, client *hetzner.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *ServerCollector
NewServerCollector returns a new ServerCollector.
func (*ServerCollector) Collect ¶
func (c *ServerCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*ServerCollector) Describe ¶
func (c *ServerCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*ServerCollector) Metrics ¶ added in v1.0.0
func (c *ServerCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.
type StorageboxCollector ¶ added in v1.1.0
type StorageboxCollector struct { Cancelled *prometheus.Desc Locked *prometheus.Desc Paid *prometheus.Desc Quota *prometheus.Desc Usage *prometheus.Desc Data *prometheus.Desc Snapshots *prometheus.Desc Webdav *prometheus.Desc Samba *prometheus.Desc SSH *prometheus.Desc External *prometheus.Desc ZFS *prometheus.Desc // contains filtered or unexported fields }
StorageboxCollector collects metrics about the SSH keys.
func NewStorageboxCollector ¶ added in v1.1.0
func NewStorageboxCollector(logger log.Logger, client *hetzner.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, cfg config.Target) *StorageboxCollector
NewStorageboxCollector returns a new StorageboxCollector.
func (*StorageboxCollector) Collect ¶ added in v1.1.0
func (c *StorageboxCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*StorageboxCollector) Describe ¶ added in v1.1.0
func (c *StorageboxCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
func (*StorageboxCollector) Metrics ¶ added in v1.1.0
func (c *StorageboxCollector) Metrics() []*prometheus.Desc
Metrics simply returns the list metric descriptors for generating a documentation.