O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding custom metrics

Lastly, we will see how to add our own custom metrics based on our business capabilities and on a need basis. Most of the time, we often need some customization or we are not able to use out of the box functionalities as such. Keymetrics provides us with probes for this. A probe in keymetrics is a custom metric that is sent to keymetrics programmatically. There are four kinds of probes that we will see, with examples:

  • Simple metrics: Values that can be read instantly, that is, used to monitor any variable value. It is a very basic metric where the developer can set a value to the data that is pushed to keymetrics.
  • Counter: Things that increment or decrement, that is, downloads being processed, a user connected, number ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required