mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-01 15:30:46 +00:00
Update prometheus-client dependency.
This commit is contained in:
parent
e30a2e0e77
commit
e392f52444
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -3655,9 +3655,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "prometheus-client"
|
name = "prometheus-client"
|
||||||
version = "0.22.3"
|
version = "0.23.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "504ee9ff529add891127c4827eb481bd69dc0ebc72e9a682e187db4caa60c3ca"
|
checksum = "cf41c1a7c32ed72abe5082fb19505b969095c12da9f5732a4bc9878757fd087c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dtoa",
|
"dtoa",
|
||||||
"itoa",
|
"itoa",
|
||||||
|
@ -147,7 +147,7 @@
|
|||||||
async-recursion = "1.1"
|
async-recursion = "1.1"
|
||||||
regex = "1.11"
|
regex = "1.11"
|
||||||
petgraph = "0.7"
|
petgraph = "0.7"
|
||||||
prometheus-client = "0.22"
|
prometheus-client = "0.23"
|
||||||
pin-project = "1.1"
|
pin-project = "1.1"
|
||||||
scoped-futures = { version = "0.1", features = ["std"] }
|
scoped-futures = { version = "0.1", features = ["std"] }
|
||||||
signal-hook = "0.3"
|
signal-hook = "0.3"
|
||||||
|
@ -51,8 +51,8 @@ lazy_static! {
|
|||||||
);
|
);
|
||||||
counter
|
counter
|
||||||
};
|
};
|
||||||
static ref DEDUPLICATE_LOCKED_COUNTER: Family<(), Counter> = {
|
static ref DEDUPLICATE_LOCKED_COUNTER: Counter = {
|
||||||
let counter = Family::<(), Counter>::default();
|
let counter = Counter::default();
|
||||||
prometheus::register(
|
prometheus::register(
|
||||||
"deduplicate_locked_count",
|
"deduplicate_locked_count",
|
||||||
"Number of times the deduplication function was called and the deduplication was already locked",
|
"Number of times the deduplication function was called and the deduplication was already locked",
|
||||||
@ -60,8 +60,8 @@ lazy_static! {
|
|||||||
);
|
);
|
||||||
counter
|
counter
|
||||||
};
|
};
|
||||||
static ref DEDUPLICATE_NO_LOCK_COUNTER: Family<(), Counter> = {
|
static ref DEDUPLICATE_NO_LOCK_COUNTER: Counter = {
|
||||||
let counter = Family::<(), Counter>::default();
|
let counter = Counter::default();
|
||||||
prometheus::register(
|
prometheus::register(
|
||||||
"deduplicate_no_lock_count",
|
"deduplicate_no_lock_count",
|
||||||
"Number of times the deduplication function was called and it was not yet locked",
|
"Number of times the deduplication function was called and it was not yet locked",
|
||||||
@ -203,12 +203,12 @@ async fn _deduplicate_uplink(
|
|||||||
"Deduplication is already locked by an other process"
|
"Deduplication is already locked by an other process"
|
||||||
);
|
);
|
||||||
|
|
||||||
DEDUPLICATE_LOCKED_COUNTER.get_or_create(&()).inc();
|
DEDUPLICATE_LOCKED_COUNTER.inc();
|
||||||
|
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
DEDUPLICATE_NO_LOCK_COUNTER.get_or_create(&()).inc();
|
DEDUPLICATE_NO_LOCK_COUNTER.inc();
|
||||||
|
|
||||||
trace!(
|
trace!(
|
||||||
key = key.as_str(),
|
key = key.as_str(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user