Skip to content

Monitoring and Auditing in Martini Development

The Monitoring and Auditing section provides developers with essential tools for building robust, observable applications in Martini. These monitoring capabilities are crucial during development for debugging code, optimizing performance, and ensuring applications behave correctly before production deployment. Effective monitoring practices help developers identify issues early, understand application behavior, and maintain code quality throughout the development lifecycle.

Topics Covered

  1. Logging to Console: Write custom messages to console with best practices for easier debugging. Essential tool for tracking application flow, error conditions, and maintaining audit trails during development.

  2. Logging in Workflows and Services: Add and configure logging within Martini workflows and services to capture execution flow, business events, and errors for effective debugging and auditing.

  3. Tracker: Transaction logging and indexing system for comprehensive audit trails and data analysis. Captures detailed service invocation data for debugging, compliance, and business intelligence.

    • Enabling Tracker: Configure and enable tracking for service invocations, endpoints, and HTTP requests with UI, API, and programmatic access methods.

    • Document Structure: Understanding tracker document fields, types, log messages, properties, and states for effective data analysis.

    • Indexing Data: Configure HTTP call logging, client service tracking, Flux execution monitoring, and endpoint logging with granular control.

    • Logging Data: Security considerations, access controls, data masking, and selective logging practices for sensitive information protection.

    • Search API: Query tracker documents using Solr-based search with faceting, statistics, range queries, and pivot analysis capabilities.

    • Databases: Integrate GeoIP databases for location-based tracking and Google Maps visualization of request origins.

    • Resubmitting Transactions: Rebuild tracker search indices for data recovery, synchronization, and maintenance operations.

  4. Server Admin UI: Visual representation of metrics from the Metrics API with interactive charts and dashboards. Provides real-time monitoring through a web-based interface for immediate performance insights.

  5. Metrics API: All application metrics with integration support for popular third-party monitoring systems like Prometheus, Datadog, and CloudWatch. Contains metrics like endpoint.invoke and http.server.requests that show API usage patterns and performance data.