mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 12:30:46 +01:00
Apply go-runit changes: Specify service directory
This commit is contained in:
parent
94065ff28b
commit
e74048224f
@ -49,7 +49,7 @@ func NewRunitCollector(config config, registry prometheus.Registry) (runitCollec
|
||||
func (c *runitCollector) Name() string { return c.name }
|
||||
|
||||
func (c *runitCollector) Update() (updates int, err error) {
|
||||
services, err := runit.GetServices()
|
||||
services, err := runit.GetServices("/etc/service")
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user