Telemetry.Metrics
reporter for Splunk metrics indexes using the Splunk HTTP Event Collector (HEC).
Add telemetry_metrics_splunk
to your list of dependencies in mix.exs
:
def deps do
[
{:telemetry_metrics_splunk, "~> 0.0.0"}
]
end
You can run the demo project to see TelemetryMetricsSplunk in action.
alias Telemetry.Metrics
children = [
{Finch, name: MyFinch},
{
TelemetryMetricsSplunk, [
finch: MyFinch,
index: "main",
metrics: [
Metrics.summary("vm.memory.total")
],
token: "00000000-0000-0000-0000-000000000000",
url: "https://example.splunkcloud.com:8088/services/collector"
]
}
]
Supervisor.start_link(children, strategy: :one_for_one)