Coder Social home page Coder Social logo

metrics-portal's Introduction

Metrics Portal

Provides a web interface for metrics. This includes viewing telemetry (aka streaming statistics) from one or more hosts running Tsd Aggregator and ReMet Proxy. The web interface also provides for browsing hosts reporting metrics as well as viewing and editing alerts and expressions.

Setup

Building

Prerequisites:

Building:

metrics-portal> ./activator stage

Installing

The artifacts from the build are in metrics-portal/target/universal/stage and should be copied to an appropriate directory on the Metrics Portal host(s).

Execution

In the installation's bin directory there are scripts to start the Metrics Portal: metrics-portal (Linux/Mac) and metrics-portal.bat (Windows). One of these should be executed on system start with appropriate parameters. For example:

/usr/local/lib/metrics_portal/bin/metrics_portal -J-Xmn150m -J-XX:+UseG1GC -Dhttp.port=80 -Dpidfile.path=/usr/local/var/METRICS_PORTAL_PID

Configuration

Aside from the JVM command line arguments, you may provide two additional configuration files. The first is the LogBack configuration file. To use a custom logging configuration simply add the following argument to the command line above:

-Dlogger.file=/usr/local/lib/metrics_portal/logger.xml

Where /usr/local/lib/metrics_portal/logger.xml is the path to your logging configuration file. The included default logging configuration file is automatically applied if one is not specified. Please refer to LogBack documentation for more information on how to author a configuration file.

The second configuration is for the application. To use a custom configuration simply add the following argument to the command line above:

-Dconfig.file=/usr/local/lib/metrics_portal/application.custom.conf

Where /usr/local/lib/metrics_portal/application.custom.conf is the path to your application configuration file. The included default application configuration file in the project documents and demonstrates many of the configuration options available. To use the default application configuration file it needs to be specified on start-up:

-Dconfig.resource=conf/portal.application.conf

To author a custom application configuration it is recommended you inherit from the default application configuration file and provide any desired configuration as overrides. Please refer to Play Framework documentation for more information on how to author a configuration file.

Extension

The Metrics Portal project intentionally uses a custom default application configuration and custom default routes specification. This allows projects extending the Metrics Portal to supplement functionality more easily with the standard default application configuration and routes. To use these files as extensions rather than replacements you should make the following changes.

First, add dependencies on the Metrics Portal code and assets in conf/Build.scala:

"com.arpnetworking.metrics" %% "metrics-portal" % "VERSION",
"com.arpnetworking.metrics" %% "metrics-portal" % "VERSION" classifier "assets",

Second, your extending project's application configuration should include the custom default configuration in conf/application.conf:

include "portal.application.conf"

Third, your extending project's application configuration should restore the default router in conf/application.conf:

application.router = null

Finally, your extending project's routes specification should include the custom default routes in conf/routes:

-> / portal.Routes

Development

To run the application in Play's debug mode execute:

metrics-portal> ./activator run

To run the application in Play's production execute:

metrics-portal> ./activator "start -Dconfig.file=conf/portal.application.conf"

The former is configured (see Build.scala) to automatically use the custom default configuration while the latter must be instructed explicitly.

To publish your development version of Metrics Portal locally for extension execute:

metrics-portal> ./activator publishLocal

License

Published under Apache Software License 2.0, see LICENSE

© Groupon Inc., 2014

metrics-portal's People

Contributors

brandonarp avatar misradeepika avatar

Watchers

James Cloos avatar Rion avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.