Update metric dependencies (#5023)
This commit is contained in:
parent
4befa8cc8a
commit
9278f0cad2
128 changed files with 3873 additions and 2729 deletions
10
vendor/github.com/ncabatoff/process-exporter/proc/read.go
generated
vendored
10
vendor/github.com/ncabatoff/process-exporter/proc/read.go
generated
vendored
|
|
@ -379,7 +379,7 @@ func (p proc) GetCounts() (Counts, int, error) {
|
|||
if err == os.ErrNotExist {
|
||||
err = ErrProcNotExist
|
||||
}
|
||||
return Counts{}, 0, err
|
||||
return Counts{}, 0, fmt.Errorf("error reading stat file: %v", err)
|
||||
}
|
||||
|
||||
status, err := p.getStatus()
|
||||
|
|
@ -387,7 +387,7 @@ func (p proc) GetCounts() (Counts, int, error) {
|
|||
if err == os.ErrNotExist {
|
||||
err = ErrProcNotExist
|
||||
}
|
||||
return Counts{}, 0, err
|
||||
return Counts{}, 0, fmt.Errorf("error reading status file: %v", err)
|
||||
}
|
||||
|
||||
io, err := p.getIo()
|
||||
|
|
@ -450,10 +450,8 @@ func (p proc) GetMetrics() (Metrics, int, error) {
|
|||
// Ditto for states
|
||||
states, _ := p.GetStates()
|
||||
|
||||
status, err := p.getStatus()
|
||||
if err != nil {
|
||||
return Metrics{}, 0, err
|
||||
}
|
||||
// Ditto for status
|
||||
status, _ := p.getStatus()
|
||||
|
||||
numfds, err := p.Proc.FileDescriptorsLen()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue