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.

config/config.go Outdated
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

This comment was marked as resolved.

@gengur gengur force-pushed the metrics_with_prometheus branch 3 times, most recently from da9f901 to 00c09db Compare October 30, 2025 13:44
config/config.go Outdated
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)),

This comment was marked as resolved.

Signed-off-by: Genady Gurevich <[email protected]>
@gengur gengur force-pushed the metrics_with_prometheus branch from 00c09db to 0b24646 Compare November 2, 2025 10:23
}

type ServerConfig struct {
Endpoint *Endpoint
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this public and the rest are private?

}
)

type RouterMetrics struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

IncomingTXs should be updated directly from the processing threads

Copy link
Contributor

Choose a reason for hiding this comment

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

(and all the rest as well)

rejectedTxsWithCode500 atomic.Uint64
incoming atomic.Uint64
logger arma_types.Logger
interval time.Duration
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we unify these counters?

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