Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry committed May 17, 2024
1 parent 6e5f1ad commit 96e0bc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metricbeat/module/system/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func init() {
type MetricSet struct {
mb.BaseMetricSet
stats *process.Stats
cgroup *cgroup.Reader
perCPU bool
setpid int
}
Expand All @@ -66,6 +65,10 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
}
}

if config.Pid != 0 && config.Procs[0] != ".*" {
logp.L().Warnf("`processes.pid` set to %d, but `processes` is set to a non-default value. Metricset will only report metrics for pid %d", config.Pid, config.Pid)
}

m := &MetricSet{
BaseMetricSet: base,
stats: &process.Stats{
Expand Down

0 comments on commit 96e0bc7

Please sign in to comment.