Custom metrics

The CoScale custom metrics options allow you to monitor aspects of your application that are not monitored by default with CoScale. They provide an easy way to extend the CoScale monitoring platform with metrics that are specific to your environment. CoScale provides a couple of methods of integrating these metrics into the platform.

With the CoScale Generic script plugin, CoScale Log plugin and CoScale CLI it’s possible to write small custom integrations for your environment. CoScale also supports pulling metrics from within your code using StatsD, JMX or Prometheus.


CoScale Generic script plugin

The CoScale agent can execute scripts or binaries to gathers metrics from your application and push them to the platform. We provide examples and guide your in configuring it for your application.

CoScale CLI

The CoScale CLI allows you to push multiple metrics at the same time from the command line. You can use it together with Bash scripts to get your custom data inside CoScale. The CoScale CLI is available as an executable or Docker image. When using our CoScale agent package installion it is installed by default.

CoScale Log plugin

The CoScale agent supports retrieving data from existing log files using a regular expression. The plugin can be used to count the number of lines that match a certain regex, as well as get information from within the log lines.

JMX Plugin

The CoScale agent can retrieve metrics from JMX endpoints. By default the agent will retrieve JVM related information, but other metrics can be added using the MBEANS or METRICS format.

Prometheus Plugin

The CoScale agent can retrieve metrics and events from Prometheus endpoints. The plugin will parse all available information coming from the endpoint, including dimensions.


CoScale provides a StatsD plugin to push data gathered in the StatsD or CollectD daemons immediatly to CoScale.

CoScale API

As a last resort the CoScale API is available for advanced configuration and integration. An SDK is available for Java and PHP.