You can use an information point to create a custom metric that extracts revenue information from your application. Then you can view the revenue over time in the information point's dashboard, in the Metric Browser or in a graph in a custom dashboard.
This example can be extrapolated to capturing and displaying other types of business metrics, such as number of items sold or returned, current inventory, sales tax collected, and so on.
Create the Information Point
The first step is to create an information point based on a method in your application that passes or returns the revenue information that you want to capture. In this example we create an information point named Acme Revenue based on the saveOrder method.
Then in the information point we create a custom metric named Revenue based on the sum of the invoked object's getAmount method. This method returns the revenue from each order that is processed. We select SUM for the data rollup to accumulate the revenue totals.
View the Revenue Metric
There are several ways to view the revenue data:
In the Custom Metrics panel of the information point's dashboard:
In the Information Point's tree in the Metric Browser:
In a graph widget that you configure in a custom dashboard:
To configure the widget, specify the Revenue metric as the data to represent: