Skip to content

Rename --metrics-port to --api-port #486

@ch4r10t33r

Description

@ch4r10t33r

Summary

The --metrics-port CLI flag currently runs the API server on the specified port. However, the API server now serves multiple endpoints beyond just metrics:

Proposal

Rename --metrics-port to --api-port to better reflect that it configures the full API server port, not just metrics.

Files to Update

  • pkgs/cli/src/main.zig - CLI argument definition
  • pkgs/cli/src/node.zig - NodeOptions struct
  • pkgs/cli/src/constants.zig - Default port constant
  • pkgs/cli/src/prometheus.zig - Prometheus config generation
  • Documentation/README files

Considerations

  • Check if there's a standard naming convention among other Ethereum clients
  • This will require corresponding changes in lean-quickstart repository
  • Consider backwards compatibility (deprecation warning for old flag?)

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions