Skip to content

Bug report: metricset.interval stuck at 1m even when metricsInterval ≠ 1m (Node.js APM agent) #4726

@TomonoriSoejima

Description

@TomonoriSoejima

Summary

When setting metricsInterval: '180s' in the Elastic APM Node.js agent, metrics are emitted every 3 minutes as expected. However, the ingested documents in Elasticsearch still show metricset.interval: 1m.

Image

Steps to reproduce

  1. Configure elastic-apm-node.js:

    module.exports = {
      serviceName: 'my-next',
      secretToken: 'xxxxxxxxx',
      serverUrl: 'https://xxxxxxxxx.apm.asia-northeast1.gcp.cloud.es.io:443',
      environment: 'my-environment',
      metricsInterval: '180s',
    };
  2. Start the app.

  3. In Kibana Discover, view metricset.name: service_summary.

Actual result

  • Documents appear every 3 minutes.
  • metricset.interval is always 1m.

Expected result

  • metricset.interval should reflect the configured metricsInterval (e.g., 3m when set to 180s).

Impact

  • Tools relying on metricset.interval may misinterpret the actual metric resolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions