Raxol.Core.Metrics.Cloud (Raxol v2.0.1)

View Source

Cloud integration for the Raxol metrics system.

This module handles:

  • Sending metrics to cloud services
  • Metric aggregation for cloud transmission
  • Cloud service configuration
  • Metric batching and compression

Summary

Functions

Returns a specification to start this module under a supervisor.

Configures the cloud metrics service.

Manually triggers a metrics flush to the cloud service.

Gets the current cloud configuration.

Types

cloud_config()

@type cloud_config() :: %{
  service: cloud_service(),
  endpoint: String.t(),
  api_key: String.t(),
  batch_size: pos_integer(),
  flush_interval: pos_integer(),
  compression: boolean()
}

cloud_service()

@type cloud_service() :: :datadog | :prometheus | :cloudwatch

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

configure(config)

Configures the cloud metrics service.

flush_metrics()

Manually triggers a metrics flush to the cloud service.

get_config()

Gets the current cloud configuration.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

send_to_cloudwatch(config, metrics)

send_to_datadog(config, metrics)

send_to_prometheus(config, metrics)

start_link(init_opts \\ [])