Skip to content

build(packaging): enable scripts.d plugin by default - #22892

Merged
ilyam8 merged 2 commits into
netdata:masterfrom
ilyam8:packaging/enable-scripts-plugin-static-docker
Jun 29, 2026
Merged

build(packaging): enable scripts.d plugin by default#22892
ilyam8 merged 2 commits into
netdata:masterfrom
ilyam8:packaging/enable-scripts-plugin-static-docker

Conversation

@ilyam8

@ilyam8 ilyam8 commented Jun 29, 2026

Copy link
Copy Markdown
Member
Summary

Fixes: #2883

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

Summary by cubic

Enable the scripts.d plugin by default for all installer-based builds (static, Docker, source) by setting ENABLE_SCRIPTS=1 in netdata-installer.sh, aligning them with DEB/RPM packages. Also document --enable-plugin-scripts/--disable-plugin-scripts; no new deps (Go is already required and gated).

Written for commit 83faa42. Summary will update on new commits.

Review in cubic

Static (makeself) and Docker build via netdata-installer.sh, which defaults
ENABLE_SCRIPTS=0 and passes -DENABLE_PLUGIN_SCRIPTS=Off, overriding the CMake
ON default. As a result scripts.d shipped only in native DEB/RPM packages
(build-package.sh sets ENABLE_PLUGIN_SCRIPTS On).

Pass --enable-plugin-scripts in both build invocations so static and docker
ship the plugin too. scripts.d is Go-based and the Go toolchain is already
required by both builds, so there is no new build dependency.
@ilyam8
ilyam8 requested a review from a team as a code owner June 29, 2026 07:55
@github-actions github-actions Bot added the area/packaging Packaging and operating systems support label Jun 29, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant Build as Build System (Docker/Makeself)
    participant Installer as netdata-installer.sh
    participant Agent as Netdata Agent (Runtime)
    participant Plugin as scripts.d Plugin
    participant Scripts as User‑supplied Scripts

    Note over Build,Scripts: scripts.d plugin is now included in static and Docker builds

    Build->>Installer: Invoke with --enable-plugin-scripts
    Installer->>Installer: Compile Netdata with scripts.d enabled
    Installer-->>Build: Netdata binary + plugins (static/Docker artifact)

    Note over Agent,Scripts: Runtime (after artifact deployed)

    Agent->>Agent: Start Netdata
    Agent->>Plugin: Load scripts.d plugin
    Plugin->>Scripts: Execute configured shell scripts
    Scripts-->>Plugin: Return metrics / alarm status
    Plugin-->>Agent: Provide collected data

    alt No scripts deployed
        Plugin->>Plugin: Idle (no scripts to run)
    end
Loading

Re-trigger cubic

@ilyam8
ilyam8 enabled auto-merge (squash) June 29, 2026 11:46
The previous commit added --enable-plugin-scripts to the static and docker build invocations. netdata-installer.sh always passes an explicit -DENABLE_PLUGIN_SCRIPTS to CMake via enable_feature, so the CMake ON default is never used by installer-based builds; the installer default ENABLE_SCRIPTS=0 is the actual lever.

Default ENABLE_SCRIPTS=1 so all installer-based builds (static, docker, source) ship scripts.d, and drop the now-redundant per-build flags. Also document the previously-undocumented --enable/--disable-plugin-scripts options. scripts.d is Go-based and the Go toolchain is already required; the existing toolchain gate disables it gracefully when Go is unavailable.
@ilyam8 ilyam8 changed the title build(packaging): enable scripts.d plugin in static and docker builds build(packaging): enable scripts.d plugin by default Jun 29, 2026
@ilyam8
ilyam8 merged commit d96d0c0 into netdata:master Jun 29, 2026
148 of 155 checks passed
@sonarqubecloud

Copy link
Copy Markdown

@ilyam8
ilyam8 deleted the packaging/enable-scripts-plugin-static-docker branch June 29, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/packaging Packaging and operating systems support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants