Skip to content

Conversation

@chatton
Copy link
Collaborator

@chatton chatton commented Oct 24, 2025

This PR consolidates the patterns for creating metrics exporters by defining a new metrics.Exporter interface, moving the existing logic into separate implementations of this interface, and conditionally registering these types based on flags in the main monitor command.

I also removed the enableMetrics flag, as I think it doesn't really serve a purpose as the point of this tool is to export and expose metrics :D

@chatton chatton requested a review from auricom October 24, 2025 14:28

return &Config{
EvnodeAddr: flags.evnodeAddr,
EvmWSURL: flags.evmWSURL,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

field seemed to be unused

}

func monitorAndVerifyDataAndHeaders(cmd *cobra.Command, args []string) error {
func monitorAndExportMetrics(_ *cobra.Command, _ []string) error {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

renamed as purpose of tool has expanded

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

Successfully merging this pull request may close these issues.

2 participants