Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetrics ¶
func GetMetrics(url string, hostname string, port string, timeout time.Duration) ([]*dto.MetricFamily, error)
GetMetrics loads the data from the NGINX status URL and generate Prometheus metrics from the content.
Types ¶
type MetricDesc ¶
type MetricDesc struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.