Skip to content

Commit

Permalink
go.d: don't create jobs with unknown module (netdata#17289)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Mar 29, 2024
1 parent 90b2860 commit d39c204
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/go/collectors/go.d.plugin/agent/jobmgr/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (m *Manager) run() {
}

func (m *Manager) addConfig(cfg confgroup.Config) {
if cfg.Module() == "" {
if _, ok := m.Modules.Lookup(cfg.Module()); !ok {
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ compose:
url: http://{{.Address}}/jmx
- selector: "kubelet"
template: |
module: kubelet
module: k8s_kubelet
name: local
{{- if eq .Port "10255" }}
url: http://{{.Address}}/metrics
Expand All @@ -248,7 +248,7 @@ compose:
{{- end }}
- selector: "kubeproxy"
template: |
module: kubeproxy
module: k8s_kubeproxy
name: local
url: http://{{.Address}}/metrics
- selector: "lighttpd"
Expand Down

0 comments on commit d39c204

Please sign in to comment.