View Source TelemetryMetricsSplunk.Hec.Api (TelemetryMetricsSplunk v0.0.2-alpha)

Sends metrics to the Splunk HTTP Event Collector (HEC).

alias TelemetryMetricsSplunk.Hec.Api

measurements = %{
  "vm.memory.total.summary" => 500
}

options = [
  token: "00000000-0000-0000-0000-000000000000",
  url: "https://example.splunkcloud.com:8088/services/collector"
]

metadata = %{
  "server" => "alpha"
}

Api.send(measurements, options, metadata)

NOTE Metadata is optional and gets sent as dimensions.

Summary

Functions

Sends metrics to the Splunk HTTP Event Collector (HEC).

Functions

Link to this function

send(measurements, options, metadata \\ %{})

View Source
@spec send(map(), TelemetryMetricsSplunk.options(), map()) :: :ok

Sends metrics to the Splunk HTTP Event Collector (HEC).