Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a metric for DB writing throughput #644

Merged
merged 4 commits into from
Jul 18, 2024

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Jul 17, 2024

Why are these changes needed?

DB write IO is a key performance component.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@jianoaix jianoaix requested a review from dmanc July 17, 2024 21:42
node/metrics.go Outdated
@@ -45,6 +45,8 @@ type Metrics struct {
EigenMetrics eigenmetrics.Metrics
// Reachability gauge to monitoring the reachability of the node's retrieval/dispersal sockets
ReachabilityGauge *prometheus.GaugeVec
// The throughput (bytes per second) at which the data is written to database.
StoringThroughput prometheus.Gauge
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Maybe DBWriteThroughout or StorageWriteThroughput?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sg

node/metrics.go Outdated
StoringThroughput: promauto.With(reg).NewGauge(
prometheus.GaugeOpts{
Namespace: Namespace,
Name: "storing_throughput",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Similar suggestions, maybe storage_write_throughput_bytes_per_second or db_write_throughput_bytes_per_second

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@jianoaix jianoaix merged commit 796b35a into Layr-Labs:master Jul 18, 2024
6 checks passed
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