silverstripe-platform/deploynaut-metrics

Provides an interface to Graphite in the Deploynaut dashboard.

Installs: 1 306

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 12

Forks: 2

Type:silverstripe-module

2.0.3 2017-09-12 23:27 UTC

README

This module is designed to integrated Graphite and Deploynaut to surface some server metrics to the client.

First, you'll need to add an _ss_environment.php variable like so:

define('DEPLOYNAUT_METRICS_GRAPHITE_URL', 'http://metrics.platform.silverstripe.com');

Then, define the metric through model admin. You can then define a metric set by adding metrics to it. Assign a metric set to an environment and enable the ability to see the metrics, and there you go!

Here are some default queries to add in:

Load Average

alias(avg(server.{cluster}.{stack}.{env}.web.*.loadavg.1min),'Load Average')

Number of Webservers

alias(sumSeries(changed(server.{cluster}.{stack}.{env}.web.*.apache.uptime)),'sum')

Average Response Time

alias(maxSeries(server.{cluster}.{stack}.{env}.web.*.apache.mysite.request.time_95),'95th Percentile');alias(averageSeries(server.{cluster}.{stack}.{env}.web.*.apache.mysite.request.time_95),'Average')

Requests Per Minute

alias(sumSeries(server.{cluster}.{stack}.{env}.web.*.apache.mysite.request.req_per_min),'Apache (Dynamic)');alias(sumSeries(server.{cluster}.{stack}.{env}.web.*.nginx.mysite.request.req_per_min),'Nginx (Static)')