1
0
Fork 0
mirror of https://gitlab.com/hagrid-keyserver/hagrid.git synced 2023-02-13 20:55:02 -05:00

prometheus: prefix metrics with hagrid_

This commit is contained in:
Vincent Breitmoser 2019-07-20 19:44:18 +02:00
parent eec7765b54
commit 2440d37485
No known key found for this signature in database
GPG key ID: 7BD18320DEADFA11

View file

@ -7,15 +7,15 @@ use database::types::Email;
lazy_static! {
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 =
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 =
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 =
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) {