Skip to content

Conversation

@gengur
Copy link
Contributor

@gengur gengur commented Sep 10, 2025

issue #185

@gengur gengur marked this pull request as draft September 10, 2025 06:58
@gengur gengur force-pushed the metrics_with_prometheus branch 15 times, most recently from 92e4094 to 2965278 Compare September 15, 2025 07:45
@gengur gengur marked this pull request as ready for review September 15, 2025 08:03
@gengur gengur force-pushed the metrics_with_prometheus branch 7 times, most recently from c0da60a to 4a2b772 Compare September 17, 2025 08:09
@gengur gengur force-pushed the metrics_with_prometheus branch 4 times, most recently from b0a8d71 to 1d8b660 Compare September 30, 2025 08:48
@gengur gengur force-pushed the metrics_with_prometheus branch 5 times, most recently from cad437c to e28651a Compare September 30, 2025 18:00
@gengur gengur force-pushed the metrics_with_prometheus branch 7 times, most recently from c6080e5 to 9fcaa61 Compare October 15, 2025 11:51
@gengur gengur force-pushed the metrics_with_prometheus branch from 9fcaa61 to 48a6703 Compare October 15, 2025 13:53
Copy link
Contributor

@tock-ibm tock-ibm left a comment

Choose a reason for hiding this comment

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

This is a review only on the packages config, config/generate and node/config.
Lets separate this PR in two steps: the first one prepares just the config aspects (what is reviewed here), and a second PR on top of that with all the metrics stuff.

RequestMaxBytes: config.SharedConfig.BatchingConfig.RequestMaxBytes,
ClientSignatureVerificationRequired: config.LocalConfig.NodeLocalConfig.GeneralConfig.ClientSignatureVerificationRequired,
Bundle: bundle,
MonitoringListenAddress: config.LocalConfig.NodeLocalConfig.GeneralConfig.ListenAddress + ":" + strconv.Itoa(int(config.LocalConfig.NodeLocalConfig.GeneralConfig.MonitoringListenPort)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets have a separate listen address as well, define it in the local config.
Sometime we don't want the monitoring service to be exposed on the same address as the communication services, e.g. we want it on 127.0.01 while we set the communication interfaces to something public.

If the Monitoring address is missing (empty), use the regular GeneralConfig.ListenAddress.

SubmitTimeout: config.LocalConfig.NodeLocalConfig.BatcherParams.SubmitTimeout,
BatchSequenceGap: types.BatchSequence(config.LocalConfig.NodeLocalConfig.BatcherParams.BatchSequenceGap),
ClientSignatureVerificationRequired: config.LocalConfig.NodeLocalConfig.GeneralConfig.ClientSignatureVerificationRequired,
MonitoringListenAddress: config.LocalConfig.NodeLocalConfig.GeneralConfig.ListenAddress + ":" + strconv.Itoa(int(config.LocalConfig.NodeLocalConfig.GeneralConfig.MonitoringListenPort)),
Copy link
Contributor

Choose a reason for hiding this comment

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

a separate listen address

SigningPrivateKey: signingPrivateKey,
WALDir: DefaultConsenterNodeConfigParams(config.LocalConfig.NodeLocalConfig.FileStore.Path).WALDir,
BFTConfig: BFTConfig,
MonitoringListenAddress: config.LocalConfig.NodeLocalConfig.GeneralConfig.ListenAddress + ":" + strconv.Itoa(int(config.LocalConfig.NodeLocalConfig.GeneralConfig.MonitoringListenPort)),
Copy link
Contributor

Choose a reason for hiding this comment

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

a separate listen address

Consenter: consenterFromMyParty,
UseTLS: config.LocalConfig.TLSConfig.Enabled,
ClientAuthRequired: config.LocalConfig.TLSConfig.ClientAuthRequired,
MonitoringListenAddress: config.LocalConfig.NodeLocalConfig.GeneralConfig.ListenAddress + ":" + strconv.Itoa(int(config.LocalConfig.NodeLocalConfig.GeneralConfig.MonitoringListenPort)),
Copy link
Contributor

Choose a reason for hiding this comment

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

a separate listen address

// ListenPort is the port on which to bind to listen
ListenPort uint32 `yaml:"ListenPort,omitempty"`
// MonitoringListenPort is the port on which to expose the monitoring service
MonitoringListenPort uint32 `yaml:"MonitoringListenPort,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets also have MonitoringListenAddress.

Lets have a separate listen address as well, defined here.
Sometime we don't want the monitoring service to be exposed on the same interface as the communication services, e.g. we want it on 127.0.01 while we set the communication interfaces to something public.

If the MonitoringListenAddress address is missing (empty), use the regular GeneralConfig.ListenAddress.

@gengur gengur force-pushed the metrics_with_prometheus branch 2 times, most recently from aef3dc3 to da9f901 Compare October 30, 2025 13:13
Signed-off-by: Genady Gurevich <genadyg@il.ibm.com>
@gengur gengur force-pushed the metrics_with_prometheus branch from da9f901 to 00c09db Compare October 30, 2025 13:44
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