• Documentation
  • Tutorials
  • Blogs
  • Product

What's on this Page

    • Enabling the plugin
    • Log configuration
  • Step
  • Plugins
  • Analytics Integrations
  • Metrics Logger
Categories: PLUGINS ENTERPRISE ANALYTICS
This article references one of our previous releases, click here to go to our latest version instead.

Metrics Logger

The Metrics Logger plugin writes Step measurements and metrics to structured log files using Logback. The log format is compatible with Splunk and other log aggregation tools.

Enabling the plugin

The plugin is disabled by default and must be explicitly enabled in step.properties:

plugins.MetricsLoggerControllerPlugin.enabled=true

Log configuration

Log output is controlled by the CONTROLLER_DIR/bin/logback.xml file. The default configuration writes to a rolling file:

<appender name="MEASUREMENTS" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>../log/measurement-logger.log</file>
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
        <fileNamePattern>../log/measurement-logger-%i.log</fileNamePattern>
        <minIndex>1</minIndex>
        <maxIndex>2</maxIndex>
    </rollingPolicy>
    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
        <maxFileSize>1GB</maxFileSize>
    </triggeringPolicy>
    <encoder>
        <pattern>{"timestamp":"%date","method":"%method","msg":%msg}%n</pattern>
    </encoder>
</appender>

Log files are written to the path defined in the <file> tag — by default CONTROLLER_DIR/log/measurement-logger.log. The rolling policy, file size limit, and log format can all be adjusted to suit your environment.

See Also

  • Prometheus
  • Measurements and Metrics
  • JDBC (SQL)
  • Dashboards
  • Home
  • Whats new?
  • Release Strategy
  • Set up
  • Administration
  • SaaS guide
  • User guide
  • Developer guide
  • DevOps
  • AI
  • Plugins
    • .NET agent
    • Astra Plugin
    • Cypress Plugin
    • Grafana k6 Plugin
    • Node.js agent
    • SikuliX Plugin
    • Silk Performer Plugin
    • ALM
    • Azure DevOps
    • Jira Xray
    • Async packages
    • JMeter
    • SoapUI
    • PDF and Image compare
    • Artifact repository connector
    • Maven plugins
    • Analytics Integrations
      • JDBC (SQL)
      • Prometheus
      • Metrics Logger
  • Libraries
Step Logo
    • Documentation
    • Tutorials
    • Blogs
    • Product
    • Home
    • Whats new?
    • Release Strategy
    • Set up
    • Administration
    • SaaS guide
    • User guide
    • Developer guide
    • DevOps
    • AI
    • Plugins
      • .NET agent
      • Astra Plugin
      • Cypress Plugin
      • Grafana k6 Plugin
      • Node.js agent
      • SikuliX Plugin
      • Silk Performer Plugin
      • ALM
      • Azure DevOps
      • Jira Xray
      • Async packages
      • JMeter
      • SoapUI
      • PDF and Image compare
      • Artifact repository connector
      • Maven plugins
      • Analytics Integrations
        • JDBC (SQL)
        • Prometheus
        • Metrics Logger
    • Libraries