Skip to content

Commit

Permalink
httpd: count ok vs error process shutdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
elliefm committed Aug 15, 2017
1 parent 5824c0b commit 48dbe9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imap/httpd.c
Expand Up @@ -1646,6 +1646,9 @@ void shut_down(int code)
prometheus_decrement(CYRUS_HTTP_READY_LISTENERS);
}

prometheus_increment(code ? CYRUS_HTTP_SHUTDOWN_TOTAL_STATUS_ERROR
: CYRUS_HTTP_SHUTDOWN_TOTAL_STATUS_OK);

if (protin) protgroup_free(protin);

if (config_auditlog)
Expand Down
2 changes: 2 additions & 0 deletions imap/promdata.p
Expand Up @@ -80,6 +80,8 @@ metric counter cyrus_lmtp_sieve_autorespond_sent_total The number of sieve AUTO
metric counter cyrus_http_connections_total The total number of HTTP connections
metric gauge cyrus_http_active_connections The number of active HTTP connections
metric gauge cyrus_http_ready_listeners The number of currently ready HTTP listeners
metric counter cyrus_http_shutdown_total The number of HTTP process shutdowns
label cyrus_http_shutdown_total status ok error
metric counter cyrus_http_acl_total The total number of HTTP ACLs
label cyrus_http_acl_total namespace default admin applepush calendar freebusy addressbook principal notify dblookup ischedule domainkeys jmap prometheus rss tzdist drive
metric counter cyrus_http_bind_total The total number of HTTP BINDs
Expand Down

0 comments on commit 48dbe9b

Please sign in to comment.