Skip to content

AppOptics

AppOptics is a cloud-based application performance monitoring (APM) and infrastructure monitoring tool. It helps track application performance, troubleshoot issues, and optimize system health. AppOptics provides insights into application behavior, server performance, and overall system operations.

Configure Martini Runtime to send Metrics to AppOptics

This guide helps you configure Martini Runtime to send metrics to AppOptics, facilitating the monitoring of your application's performance. If you encounter any issues, refer to the AppOptics documentation or seek support from the AppOptics community.

Create an Account

  • Set up or log in to an AppOptics account. There is a free trial available if you are not subscribed to their service.
  • Once you have an account, retrieve the API token by navigating to the AppOptics Metric settings and copy the API token with "Write Only" permissions.

Martini Runtime Setup

  • Import the Micrometer Registry AppOptics JAR file on Martini.
  • Configure the application.properties with the following properties:

    1
    2
    3
    4
    5
    6
    7
    8
    # Expose metrics endpoint
    management.endpoints.web.exposure.include=metrics
    
    # AppOptics API token
    management.metrics.export.appoptics.api-token=<api-token>
    
    # Interval for sending metrics
    management.metrics.export.appoptics.step=10s
    

  • Replace the <api-token> with the API token from the AppOptics settings.

  • Restart Martini Runtime to apply the changes.

Query Metrics

Open the Metrics tab in AppOptics and select the metric name you wish to check.