Skip to content

feat(go.d): allow to debug a specific job #20394

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Jun 2, 2025

Summary

Related topic on Discord.

Test Plan
Additional Information
For users: How does this change affect me?

@github-actions github-actions bot added area/collectors Everything related to data collection collectors/go.d area/go labels Jun 2, 2025
@ilyam8 ilyam8 requested a review from Copilot June 2, 2025 12:27
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables debugging of a specific job in the go.d plugin by introducing a new "job" flag and propagating it through the CLI, agent, and Manager.

  • Added a new CLI flag for job selection
  • Propagated the job option through the agent configuration and into the Manager
  • Applied filtering on configuration groups to run only the specified job(s)

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/go/plugin/go.d/cli/cli.go Added new CLI flag "job" for specifying a job
src/go/plugin/go.d/agent/jobmgr/manager.go Introduced RunJob field and filtered configs based on job selection
src/go/plugin/go.d/agent/agent.go Propagated RunJob through agent configuration
src/go/cmd/godplugin/main.go Mapped the new job flag from CLI options

@ilyam8 ilyam8 merged commit 1578ef7 into netdata:master Jun 2, 2025
106 checks passed
@ilyam8 ilyam8 deleted the feat-go.d-debug-specific-job branch June 2, 2025 13:12
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Jun 4, 2025
@stelfrag stelfrag mentioned this pull request Jun 4, 2025
Ferroin pushed a commit that referenced this pull request Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection area/go collectors/go.d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants