package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Oct 27, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New creates new prom collector
Prom defines prom collector
Collect returns collector metrics
Flush returns last metrics collected
ID returns the id of the instance
Inventory returns collector stats for /inventory endpoint
Logger returns collector's instance of logger
type URLDef struct {
ID string `json:"id" toml:"id" yaml:"id"`
URL string `json:"url" toml:"url" yaml:"url"`
TTL string `json:"ttl" toml:"ttl" yaml:"ttl"`
}
URLDef defines a url to fetch text formatted prom metrics from
Source Files
¶
Click to show internal directories.
Click to hide internal directories.