Skip to content

Commit

Permalink
Merge pull request #2 from andrewhowdencom/ad-hoc-rename-metrics
Browse files Browse the repository at this point in the history
Rework the names of metrics
  • Loading branch information
bakins committed Jul 26, 2017
2 parents 773198e + c67d95d commit fb02c88
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ func (e *Exporter) newCollector() *collector {
return &collector{
exporter: e,
up: newFuncMetric("up", "able to contact php-fpm"),
acceptedConn: newFuncMetric("accepted_conn", "Total of accepted connections"),
listenQueue: newFuncMetric("listen_queue", "Number of connections that have been initiated but not yet accepted"),
maxListenQueue: newFuncMetric("max_listen_queue", "Max. connections the listen queue has reached since FPM start"),
listenQueueLength: newFuncMetric("listen_queue_length", "Maximum number of connections that can be queued"),
acceptedConn: newFuncMetric("accepted_connections_total", "Total number of accepted connections"),
listenQueue: newFuncMetric("listen_queue_connections", "Number of connections that have been initiated but not yet accepted"),
maxListenQueue: newFuncMetric("listen_queue_max_connections", "Max number of connections the listen queue has reached since FPM start"),
listenQueueLength: newFuncMetric("listen_queue_length_connections", "The length of the socket queue, dictating maximum number of pending connections"),
idleProcesses: newFuncMetric("idle_processes", "Idle process count"),
activeProcesses: newFuncMetric("active_processes", "Active process count"),
totalProcesses: newFuncMetric("total_processes", "Total process count"),
maxActiveProcesses: newFuncMetric("max_active_processes", "Maximum active process count"),
maxChildrenReached: newFuncMetric("max_children_reached", "Number of times the process limit has been reached"),
slowRequests: newFuncMetric("slow_requests", "Number of requests that exceed request_slowlog_timeout"),
scrapeFailures: newFuncMetric("scrape_failures", "Number of errors while scraping php_fpm"),
maxActiveProcesses: newFuncMetric("active_max_processes", "Maximum active process count"),
maxChildrenReached: newFuncMetric("max_children_reached_total", "Number of times the process limit has been reached"),
slowRequests: newFuncMetric("slow_requests_total", "Number of requests that exceed request_slowlog_timeout"),
scrapeFailures: newFuncMetric("scrape_failures_total", "Number of errors while scraping php_fpm"),
}
}

Expand Down

0 comments on commit fb02c88

Please sign in to comment.