Skip to content

Commit 8484406

Browse files
dependabot[bot]lutter
authored andcommitted
build(deps): bump prometheus from 0.13.4 to 0.14.0
Bumps [prometheus](https://github.com/tikv/rust-prometheus) from 0.13.4 to 0.14.0. - [Changelog](https://github.com/tikv/rust-prometheus/blob/master/CHANGELOG.md) - [Commits](tikv/rust-prometheus@v0.13.4...v0.14.0) --- updated-dependencies: - dependency-name: prometheus dependency-version: 0.14.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent daa5c64 commit 8484406

File tree

6 files changed

+22
-28
lines changed

6 files changed

+22
-28
lines changed

Cargo.lock

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chain/ethereum/src/adapter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,13 +1055,13 @@ impl SubgraphEthRpcMetrics {
10551055

10561056
pub fn observe_request(&self, duration: f64, method: &str, provider: &str) {
10571057
self.request_duration
1058-
.with_label_values(&[&self.deployment, method, provider])
1058+
.with_label_values(&[self.deployment.as_str(), method, provider])
10591059
.set(duration);
10601060
}
10611061

10621062
pub fn add_error(&self, method: &str, provider: &str) {
10631063
self.errors
1064-
.with_label_values(&[&self.deployment, method, provider])
1064+
.with_label_values(&[self.deployment.as_str(), method, provider])
10651065
.inc();
10661066
}
10671067
}

graph/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tokio-stream = { version = "0.1.15", features = ["sync"] }
8080
tokio-retry = "0.3.0"
8181
toml = "0.8.15"
8282
url = "2.5.4"
83-
prometheus = "0.13.4"
83+
prometheus = "0.14.0"
8484
priority-queue = "2.5.0"
8585
tonic = { workspace = true }
8686
prost = { workspace = true }

graph/src/blockchain/firehose_block_stream.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ impl FirehoseBlockStreamMetrics {
6464

6565
fn observe_successful_connection(&self, time: &mut Instant, provider: &str) {
6666
self.restarts
67-
.with_label_values(&[&self.deployment, &provider, "true"])
67+
.with_label_values(&[self.deployment.as_str(), &provider, "true"])
6868
.inc();
6969
self.connect_duration
70-
.with_label_values(&[&self.deployment, &provider])
70+
.with_label_values(&[self.deployment.as_str(), &provider])
7171
.set(time.elapsed().as_secs_f64());
7272

7373
// Reset last connection timestamp
@@ -76,10 +76,10 @@ impl FirehoseBlockStreamMetrics {
7676

7777
fn observe_failed_connection(&self, time: &mut Instant, provider: &str) {
7878
self.restarts
79-
.with_label_values(&[&self.deployment, &provider, "false"])
79+
.with_label_values(&[self.deployment.as_str(), &provider, "false"])
8080
.inc();
8181
self.connect_duration
82-
.with_label_values(&[&self.deployment, &provider])
82+
.with_label_values(&[self.deployment.as_str(), &provider])
8383
.set(time.elapsed().as_secs_f64());
8484

8585
// Reset last connection timestamp
@@ -88,10 +88,10 @@ impl FirehoseBlockStreamMetrics {
8888

8989
fn observe_response(&self, kind: &str, time: &mut Instant, provider: &str) {
9090
self.time_between_responses
91-
.with_label_values(&[&self.deployment, &provider])
91+
.with_label_values(&[self.deployment.as_str(), &provider])
9292
.observe(time.elapsed().as_secs_f64());
9393
self.responses
94-
.with_label_values(&[&self.deployment, &provider, kind])
94+
.with_label_values(&[self.deployment.as_str(), &provider, kind])
9595
.inc();
9696

9797
// Reset last response timestamp

graph/src/blockchain/substreams_block_stream.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ impl SubstreamsBlockStreamMetrics {
6565

6666
fn observe_successful_connection(&self, time: &mut Instant, provider: &str) {
6767
self.restarts
68-
.with_label_values(&[&self.deployment, &provider, "true"])
68+
.with_label_values(&[self.deployment.as_str(), &provider, "true"])
6969
.inc();
7070
self.connect_duration
71-
.with_label_values(&[&self.deployment, &provider])
71+
.with_label_values(&[self.deployment.as_str(), &provider])
7272
.set(time.elapsed().as_secs_f64());
7373

7474
// Reset last connection timestamp
@@ -77,10 +77,10 @@ impl SubstreamsBlockStreamMetrics {
7777

7878
fn observe_failed_connection(&self, time: &mut Instant, provider: &str) {
7979
self.restarts
80-
.with_label_values(&[&self.deployment, &provider, "false"])
80+
.with_label_values(&[self.deployment.as_str(), &provider, "false"])
8181
.inc();
8282
self.connect_duration
83-
.with_label_values(&[&self.deployment, &provider])
83+
.with_label_values(&[self.deployment.as_str(), &provider])
8484
.set(time.elapsed().as_secs_f64());
8585

8686
// Reset last connection timestamp
@@ -89,10 +89,10 @@ impl SubstreamsBlockStreamMetrics {
8989

9090
fn observe_response(&self, kind: &str, time: &mut Instant, provider: &str) {
9191
self.time_between_responses
92-
.with_label_values(&[&self.deployment, &provider])
92+
.with_label_values(&[self.deployment.as_str(), &provider])
9393
.observe(time.elapsed().as_secs_f64());
9494
self.responses
95-
.with_label_values(&[&self.deployment, &provider, kind])
95+
.with_label_values(&[self.deployment.as_str(), &provider, kind])
9696
.inc();
9797

9898
// Reset last response timestamp

node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ serde = { workspace = true }
4141
shellexpand = "3.1.0"
4242
termcolor = "1.4.1"
4343
diesel = { workspace = true }
44-
prometheus = { version = "0.13.4", features = ["push"] }
44+
prometheus = { version = "0.14.0", features = ["push"] }
4545
json-structural-diff = { version = "0.2", features = ["colorize"] }
4646
globset = "0.4.16"
4747
notify = "8.0.0"

0 commit comments

Comments
 (0)