From 01f06e385029cd201a6679558e5fdbe69e022846 Mon Sep 17 00:00:00 2001 From: Yuchan Lee Date: Mon, 23 Sep 2024 14:21:14 +0000 Subject: [PATCH] feat: v0.3.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- src/main.rs | 2 +- src/metrics_collector/build_info.rs | 2 +- src/metrics_collector/document.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index faf39a8..1d6afb2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -758,7 +758,7 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "onepassword-exporter" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "bytes", diff --git a/Cargo.toml b/Cargo.toml index b016031..e7530dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "onepassword-exporter" -version = "0.2.0" +version = "0.3.0" edition = "2021" [dependencies] diff --git a/README.md b/README.md index c988221..284c02d 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ op_document_file_size_per_tag_bytes{tag="test"} 10494986 op_document_file_size_per_vault_bytes{vault="36vhq4xz3r6hnemzadk33evi4a"} 10494986 # HELP op_exporter_buildinfo Build information of this exporter. # TYPE op_exporter_buildinfo gauge -op_exporter_buildinfo{version="0.2.0"} 1 +op_exporter_buildinfo{version="0.3.0"} 1 # HELP op_group_count_total Total number of groups. # TYPE op_group_count_total gauge op_group_count_total 4 diff --git a/src/main.rs b/src/main.rs index 0c66b72..65c5952 100644 --- a/src/main.rs +++ b/src/main.rs @@ -121,7 +121,7 @@ op_document_file_size_per_tag_bytes{tag="test"} 10494986 op_document_file_size_per_vault_bytes{vault="36vhq4xz3r6hnemzadk33evi4a"} 10494986 # HELP op_exporter_buildinfo Build information of this exporter. # TYPE op_exporter_buildinfo gauge -op_exporter_buildinfo{version="0.2.0"} 1 +op_exporter_buildinfo{version="0.3.0"} 1 # HELP op_group_count_total Total number of groups. # TYPE op_group_count_total gauge op_group_count_total 4 diff --git a/src/metrics_collector/build_info.rs b/src/metrics_collector/build_info.rs index 7be37dc..0b0e200 100644 --- a/src/metrics_collector/build_info.rs +++ b/src/metrics_collector/build_info.rs @@ -36,7 +36,7 @@ mod tests { // Assert assert_eq!( OP_EXPORTER_BUILDINFO - .get_metric_with_label_values(&["0.2.0"])? + .get_metric_with_label_values(&["0.3.0"])? .get(), 1 ); diff --git a/src/metrics_collector/document.rs b/src/metrics_collector/document.rs index b01930c..2b2a35d 100644 --- a/src/metrics_collector/document.rs +++ b/src/metrics_collector/document.rs @@ -3,7 +3,7 @@ use std::collections::HashMap; use lazy_static::lazy_static; #[cfg(test)] use mockall::predicate::*; -use prometheus::{register_int_gauge_vec, HistogramVec, IntGaugeVec}; +use prometheus::{register_int_gauge_vec, IntGaugeVec}; use serde::Deserialize; use super::OpMetricsCollector;