Files
weave-scope/probe/endpoint/reporter.go
Bryan Boreham c1e110ac7b fix: remove unused metric SpyDuration
The call to register this metric was removed in #633 over three years ago.
If it isn't registered then nobody can see the values.
The measurement is duplicated by metrics added in #658.
2019-07-04 13:53:00 +00:00

33 lines
778 B
Go

package endpoint
import (
"github.com/weaveworks/scope/probe/endpoint/procspy"
"github.com/weaveworks/scope/probe/process"
"github.com/weaveworks/scope/report"
)
// Node metadata keys.
const (
ReverseDNSNames = report.ReverseDNSNames
SnoopedDNSNames = report.SnoopedDNSNames
CopyOf = report.CopyOf
)
// ReporterConfig are the config options for the endpoint reporter.
type ReporterConfig struct {
HostID string
HostName string
SpyProcs bool
UseConntrack bool
WalkProc bool
UseEbpfConn bool
ProcRoot string
BufferSize int
ProcessCache *process.CachingWalker
Scanner procspy.ConnectionScanner
DNSSnooper *DNSSnooper
}
// Name of this reporter, for metrics gathering
func (Reporter) Name() string { return "Endpoint" }