Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicated metrics collector #51

Open
tonicmuroq opened this issue Apr 8, 2021 · 1 comment
Open

duplicated metrics collector #51

tonicmuroq opened this issue Apr 8, 2021 · 1 comment
Assignees

Comments

@tonicmuroq
Copy link
Contributor

tonicmuroq commented Apr 8, 2021

eru-agent[213677]: time="2021-04-07T09:50:33+08:00" level=info msg="[Watch] Monitor: cid f5b10cf action attach"
eru-agent[213677]: time="2021-04-07T09:50:33+08:00" level=info msg="[Watch] Monitor: cid f5b10cf action attach"
eru-agent[213677]: panic: duplicate metrics collector registration attempted
eru-agent[213677]: goroutine 91514882 [running]:
eru-agent[213677]: github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(0xc0001345f0, 0xc014c3c500, 0x13, 0x13)
eru-agent[213677]:         /home/runner/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:401 +0xad
eru-agent[213677]: github.com/prometheus/client_golang/prometheus.MustRegister(...)
eru-agent[213677]:         /home/runner/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:178
eru-agent[213677]: github.com/projecteru2/agent/engine.NewMetricsClient(0x0, 0x0, 0x7ffe6dbd2f7b, 0x6, 0xc03ff3c370, 0x1)
eru-agent[213677]:         /home/runner/work/agent/agent/engine/metrics.go:165 +0x210d
eru-agent[213677]: github.com/projecteru2/agent/engine.(*Engine).stat(0xc0001c86c0, 0x1401e00, 0xc054a310c0, 0xc03ff3c370)
eru-agent[213677]:         /home/runner/work/agent/agent/engine/stat.go:41 +0x2e5
eru-agent[213677]: created by github.com/projecteru2/agent/engine.(*Engine).attach
eru-agent[213677]:         /home/runner/work/agent/agent/engine/attach.go:65 +0x632
systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: [email protected]: Unit entered failed state.
systemd[1]: [email protected]: Failed with result 'exit-code'.

@CMGS
Copy link
Contributor

CMGS commented Jun 18, 2021

when & how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants