prometheus: prefix metrics with hagrid_
This commit is contained in:
parent
eec7765b54
commit
2440d37485
|
@ -7,15 +7,15 @@ use database::types::Email;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref KEY_UPLOAD: LabelCounter =
|
static ref KEY_UPLOAD: LabelCounter =
|
||||||
LabelCounter::new("key_upload", "Uploaded keys", &["result"]);
|
LabelCounter::new("hagrid_key_upload", "Uploaded keys", &["result"]);
|
||||||
|
|
||||||
static ref MAIL_SENT: LabelCounter =
|
static ref MAIL_SENT: LabelCounter =
|
||||||
LabelCounter::new("mail_sent", "Sent verification mails", &["type", "domain"]);
|
LabelCounter::new("hagrid_mail_sent", "Sent verification mails", &["type", "domain"]);
|
||||||
|
|
||||||
static ref KEY_ADDRESS_PUBLISHED: LabelCounter =
|
static ref KEY_ADDRESS_PUBLISHED: LabelCounter =
|
||||||
LabelCounter::new("key_address_published", "Verified email addresses", &["domain"]);
|
LabelCounter::new("hagrid_key_address_published", "Verified email addresses", &["domain"]);
|
||||||
static ref KEY_ADDRESS_UNPUBLISHED: LabelCounter =
|
static ref KEY_ADDRESS_UNPUBLISHED: LabelCounter =
|
||||||
LabelCounter::new("key_address_unpublished", "Unpublished email addresses", &["domain"]);
|
LabelCounter::new("hagrid_key_address_unpublished", "Unpublished email addresses", &["domain"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn register_counters(registry: &prometheus::Registry) {
|
pub fn register_counters(registry: &prometheus::Registry) {
|
||||||
|
|
Loading…
Reference in New Issue