Skip to content

docs: replace removed Metricbeat make targets with their mage equivalents - #54282

Closed
Anshuman-Prakash wants to merge 1 commit into
elastic:mainfrom
Anshuman-Prakash:fix-stale-metricbeat-make-targets
Closed

Anshuman-Prakash wants to merge 1 commit into
elastic:mainfrom
Anshuman-Prakash:fix-stale-metricbeat-make-targets

Conversation

@Anshuman-Prakash

Copy link
Copy Markdown
Contributor

Relates to #51789

metricbeat/Makefile defines only create-metricset and then includes dev-tools/make/mage.mk, so none of collect, run-module or test-module exist there any more — the documented commands fail with No rule to make target.

  • make collect -> mage update in creating-metricsets.md and dev-faq.md. Metricbeat's Update target runs Fields, Dashboards, Config, CollectAll, so it still does what both notes promise: fold the metricset into the default config and regenerate the docs.
  • The "Run Environment tests for one module" section in creating-metricbeat-module.md now points at MODULE=apache mage integTest. That replaces the whole two-step start-then-test flow, because GoIntegTestFromHost/PythonIntegTest already start docker compose and wait for the services to be healthy themselves. Dropped PORT=80 with it — nothing under dev-tools/ or metricbeat/ reads PORT any more.
  • Same section also offered make integration-tests-environment / make system-tests-environment. Those live in libbeat/scripts/Makefile, which metricbeat does not include, so they fail from metricbeat/ too.

Left docs/extend/testing.md's Make-target summary alone: it is the shared guide, and those targets do still exist for the beats that include libbeat/scripts/Makefile (filebeat, auditbeat, packetbeat, winlogbeat). Also left make create-metricset, which is the one target metricbeat still defines.

…ents

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Anshuman-Prakash
Anshuman-Prakash requested a review from a team as a code owner October 31, 2026 15:25
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 31, 2026
@botelastic

botelastic Bot commented Oct 31, 2026

Copy link
Copy Markdown

This pull request doesn't have a Team:<team> label.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /test : Run the Buildkite pipeline.

@mergify

mergify Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @Anshuman-Prakash? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@bmorelli25

Copy link
Copy Markdown
Member

Please see my comment here: #54301 (comment).

@bmorelli25 bmorelli25 closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants