Make collector testable and add native test
This commit is contained in:
parent
3ac5222f8b
commit
3a4aa70afb
9 changed files with 280 additions and 21 deletions
|
|
@ -12,7 +12,7 @@ type Collector interface {
|
|||
// Get new metrics and expose them via prometheus registry.
|
||||
Update() (n int, err error)
|
||||
|
||||
// Returns the name of the collector
|
||||
// Returns the name of the collector.
|
||||
Name() string
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue