Custom metrics

Custom metrics allow you to monitor certain aspects of your application that would otherwise stay hidden to you. CoScale provides a couple of ways of integrating these metrics into our platform. CoScale can pull metrics from scripts or binary executables, or you can push metrics to CoScale with the help from our CLI tool. We also provide integration with third party tools, like StatsD.

  • Pulling metrics from your application with generic script

    By running a script or executable every minute the CoScale agent gathers metrics from your application and pushes those to the platform. We provide some example scripts and guide your in configuring it for your application.

    Pros:

    • Language agnostic
    • Easy to setup

    Cons:

    • Works best with minute data
    • Script cannot run longer than 5 seconds
  • Pushing metrics with our CLI

    Our 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. our CLI is installed automatically with our agent, or you can also install it manually if you don’t have an agent installed.

    Pros:

    • Can be integrated with existing scripts
    • Good for long duration commands

    Cons:

    • Might be too low-level for some situations.
  • Pulling metrics with Agent Log plugin

    The CoScale agent supports retrieving data from existing log files using a regular expression.

    Pros:

    • Language agnostic
    • Use existing log files
    • Quick to setup

    Cons:

    • Works best with minute data
    • Inefficient when you have a lot of custom metrics
  • StatsD

    If you are using StatsD you can integrate the CoScale StatsD plugin and it will push all metrics available in the StatsD daemon to the CoScale infrastructure every minute

    Pros:

    • Language agnostic
    • Libraries available for all popular languages

    Cons:

    • Daemon on machine
    • Code integration
  • CoScale API

    Our API provides you with the tools to manage data using your favorite programming language. At the moment you will need to write your own code to manage the whole procedure of communicating with the API. We are investigating possibilities in creating SDKs for the most popular languages.

    Pros:

    • Fine grained control

    Cons:

    • Requires heavy code integration