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

update s3 prometheus metric names #68

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions src/main/java/org/peergos/blockstore/s3/S3Blockstore.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,47 +35,44 @@ public class S3Blockstore implements Blockstore {
private static final Logger LOG = Logging.LOG();

private static final Histogram readTimerLog = Histogram.build()
.labelNames("filesize")
.name("block_read_seconds")
.name("ipfs_block_read_seconds")
.help("Time to read a block from immutable storage")
.exponentialBuckets(0.01, 2, 16)
.register();
private static final Histogram writeTimerLog = Histogram.build()
.labelNames("filesize")
.name("s3_block_write_seconds")
.name("ipfs_block_write_seconds")
.help("Time to write a block to immutable storage")
.exponentialBuckets(0.01, 2, 16)
.register();
private static final Counter blockHeads = Counter.build()
.name("s3_block_heads")
.help("Number of block heads to S3")
.name("ipfs_block_heads_total")
.help("The total number of S3 block head requests")
.register();
private static final Counter blockGets = Counter.build()
.name("s3_block_gets")
.help("Number of block gets to S3")
.name("ipfs_block_gets_total")
.help("The total number of S3 block get requests")
.register();
private static final Counter failedBlockGets = Counter.build()
.name("s3_block_get_failures")
.name("ipfs_block_get_failures")
.help("Number of failed block gets to S3")
.register();
private static final Counter blockPuts = Counter.build()
.name("s3_block_puts")
.name("ipfs_block_puts_total")
.help("Number of block puts to S3")
.register();
private static final Histogram blockPutBytes = Histogram.build()
.labelNames("size")
.name("s3_block_put_bytes")
.name("ipfs_block_put_bytes")
.help("Number of bytes written to S3")
.exponentialBuckets(0.01, 2, 16)
.register();

private static final Counter getRateLimited = Counter.build()
.name("s3_get_rate_limited")
.name("ipfs_get_rate_limited_total")
.help("Number of times we get a http 429 rate limit response during a block get")
.register();

private static final Counter rateLimited = Counter.build()
.name("s3_rate_limited")
.name("ipfs_rate_limited_total")
.help("Number of times we get a http 429 rate limit response")
.register();

Expand Down
Loading