Compare commits

...

1 Commits

Author SHA1 Message Date
Cameron Cordes
f1a7cbc0f0 Use IntGauge for media counts
Some checks failed
Core Repos/ImageApi/pipeline/pr-master There was a failure building this commit
2021-05-01 00:01:17 -04:00

View File

@@ -7,7 +7,7 @@ use actix_web_prom::PrometheusMetrics;
use database::{DbError, DbErrorKind, FavoriteDao, SqliteFavoriteDao, SqliteUserDao, UserDao};
use futures::stream::StreamExt;
use lazy_static::lazy_static;
use prometheus::{self, Gauge};
use prometheus::{self, IntGauge};
use std::path::{Path, PathBuf};
use std::sync::mpsc::channel;
use std::sync::Arc;
@@ -43,12 +43,12 @@ mod files;
mod video;
lazy_static! {
static ref IMAGE_GAUGE: Gauge = Gauge::new(
static ref IMAGE_GAUGE: IntGauge = IntGauge::new(
"imageserver_image_total",
"Count of the images on the server"
)
.unwrap();
static ref VIDEO_GAUGE: Gauge = Gauge::new(
static ref VIDEO_GAUGE: IntGauge = IntGauge::new(
"imageserver_video_total",
"Count of the videos on the server"
)