Raxol.Core.Metrics.Cloud (Raxol v0.5.0)

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.

Starts the cloud metrics service.

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.

send_to_cloudwatch(config, metrics)

send_to_datadog(config, metrics)

send_to_prometheus(config, metrics)

start_link(opts \\ [])

Starts the cloud metrics service.