2017 © Pedro Peláez
 

library instrumental_agent

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

image

instrumental/instrumental_agent

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  • Thursday, April 5, 2018
  • by jasongladish
  • Repository
  • 8 Watchers
  • 6 Stars
  • 4,974 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 15 Versions
  • 112 % Grown

The README.md

Instrumental PHP Agent

Instrumental is a application monitoring platform built for developers who want a better understanding of their production software. Powerful tools, like the Instrumental Query Language, combined with an exploration-focused interface allow you to get real answers to complex questions, in real-time., (*1)

This agent supports custom metric monitoring for PHP applications. It provides high-data reliability at high scale., (*2)

Composer Installation

composer require instrumental/instrumental_agent

Visit instrumentalapp.com and create an account, then initialize the agent with your API key, found in the Docs section., (*3)

Usage

$I = new \Instrumental\Agent();
$I->setApiKey("PROJECT_API_TOKEN");
$I->setEnabled($isProduction); // only send metrics in production

You'll probably want something like the above, using your project API token, only enabling the agent in production mode so you don't have development and production data writing to the same value. Or you can setup two projects, so that you can verify stats in one, and release them to production in another., (*4)

Now you can begin to use Instrumental to track your application., (*5)

$I->gauge('load', 1.23);                                # value at a point in time

$I->increment('signups');                               # increasing value, think "events"

$post = $I->time('query_time', function(){              # time a block of code
  return Post->find(1);
});
$post = $I->time_ms('query_time_in_ms', function(){     # prefer milliseconds?
  return Post->find(1);
});

Note: If it is unable to connect to the service, it will discard data after reaching a low memory threshold., (*6)

Want to track an event (like an application deploy, or downtime)? You can capture events that are instantaneous, or events that happen over a period of time., (*7)

$I->notice('Jeffy deployed rev ef3d6a'); # instantaneous event
$I->notice('Testing socket buffer increase', time() - (3*24*60*60), 20*60); # an event (three days ago) with a duration (20 minutes)

Agent Control

Need to quickly disable the agent? Use $I->setEnabled(FALSE); on initialization and you don't need to change any application code., (*8)

Symfony

For usage with Symfony applications, we recommend registering the agent as a Symfony service., (*9)

Troubleshooting & Help

We are here to help. Email us at support@instrumentalapp.com., (*10)

Release Process

  1. Pull latest master
  2. Merge feature branch(es) into master
  3. script/test
  4. Increment version in code
    • lib/Agent.php
  5. Update CHANGELOG.md
  6. Commit "Release version vX.Y.Z"
  7. Push to GitHub
  8. Tag version: git tag 'vX.Y.Z' && git push --tags (GitHub webhook will tell packagist and release a new version)
  9. Verify update on https://packagist.org/packages/instrumental/instrumental_agent
  10. Refresh documentation on instrumentalapp.com

Version Policy

This library follows Semantic Versioning 2.0.0., (*11)

The Versions

05/04 2018

dev-master

9999999-dev

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/04 2018

v1.0.2

1.0.2.0

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/04 2018

dev-fix_monolog_call

dev-fix_monolog_call

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/04 2018

dev-installation_updates

dev-installation_updates

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/10 2017

dev-fix_script_setup

dev-fix_script_setup

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/05 2016

v1.0.1

1.0.1.0

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/05 2016

v1.0.0

1.0.0.0

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/05 2016

dev-code_review

dev-code_review

This agent supports Instrumental custom metric monitoring for PHP applications. It provides high-data reliability at high scale.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2016

v0.0.7

0.0.7.0

WARNING: WORK IN PROGRESS. NOT PRODUCTION READY.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2016

v0.0.6

0.0.6.0

WARNING: WORK IN PROGRESS. NOT PRODUCTION READY.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2016

v0.0.5

0.0.5.0

WARNING: WORK IN PROGRESS. NOT PRODUCTION READY.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2016

v0.0.4

0.0.4.0

WARNING: WORK IN PROGRESS. NOT PRODUCTION READY.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/05 2016

v0.0.3

0.0.3.0

WARNING: WORK IN PROGRESS. NOT PRODUCTION READY.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/04 2016

v0.0.2

0.0.2.0

WARNING: WORK IN PROGRESS. NOT PRODUCTION READY.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/04 2016

v0.0.1

0.0.1.0

WARNING: WORK IN PROGRESS. NOT PRODUCTION READY.

  Sources   Download

MIT

The Requires

 

The Development Requires