From b89c7b2673ba7092334f92862b9767f93af62072 Mon Sep 17 00:00:00 2001 From: Anthony Shull Date: Mon, 3 Jun 2024 15:30:56 -0500 Subject: [PATCH] upgrade and set index (#2087) --- config/runtime.exs | 1 + lib/dotcom/cache/telemetry.ex | 1 + lib/dotcom/telemetry.ex | 1 + lib/dotcom_web/telemetry.ex | 1 + lib/req/telemetry.ex | 1 + mix.exs | 2 +- mix.lock | 2 +- 7 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 7b6cc92459..e7298b6779 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -116,6 +116,7 @@ config :dotcom, :mbta_api, ] config :dotcom, :telemetry_metrics_splunk, + index: System.get_env("TELEMETRY_METRICS_SPLUNK_INDEX"), token: System.get_env("TELEMETRY_METRICS_SPLUNK_TOKEN"), url: "https://http-inputs-mbta.splunkcloud.com/services/collector" diff --git a/lib/dotcom/cache/telemetry.ex b/lib/dotcom/cache/telemetry.ex index fd16889998..4eb5e227aa 100644 --- a/lib/dotcom/cache/telemetry.ex +++ b/lib/dotcom/cache/telemetry.ex @@ -21,6 +21,7 @@ defmodule Dotcom.Cache.Telemetry do TelemetryMetricsSplunk, [ finch: Telemetry.Finch, + index: telemetry_metrics_splunk_config[:index], metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/lib/dotcom/telemetry.ex b/lib/dotcom/telemetry.ex index 211ae5b99c..6111bd5991 100644 --- a/lib/dotcom/telemetry.ex +++ b/lib/dotcom/telemetry.ex @@ -26,6 +26,7 @@ defmodule Dotcom.Telemetry do TelemetryMetricsSplunk, [ finch: Telemetry.Finch, + index: telemetry_metrics_splunk_config[:index], metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/lib/dotcom_web/telemetry.ex b/lib/dotcom_web/telemetry.ex index 807ec71865..3df5fd7c41 100644 --- a/lib/dotcom_web/telemetry.ex +++ b/lib/dotcom_web/telemetry.ex @@ -26,6 +26,7 @@ defmodule DotcomWeb.Telemetry do TelemetryMetricsSplunk, [ finch: Telemetry.Finch, + index: telemetry_metrics_splunk_config[:index], metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/lib/req/telemetry.ex b/lib/req/telemetry.ex index f36dc1a32c..10b28b5c24 100644 --- a/lib/req/telemetry.ex +++ b/lib/req/telemetry.ex @@ -26,6 +26,7 @@ defmodule Req.Telemetry do TelemetryMetricsSplunk, [ finch: Telemetry.Finch, + index: telemetry_metrics_splunk_config[:index], metrics: metrics(), token: telemetry_metrics_splunk_config[:token], url: telemetry_metrics_splunk_config[:url] diff --git a/mix.exs b/mix.exs index 5cc3e8c931..8bdf03f216 100644 --- a/mix.exs +++ b/mix.exs @@ -145,7 +145,7 @@ defmodule DotCom.Mixfile do {:sweet_xml, "0.7.4", only: [:prod, :dev]}, {:telemetry, "1.2.1", override: true}, {:telemetry_metrics, "1.0.0", override: true}, - {:telemetry_metrics_splunk, "0.0.4-alpha"}, + {:telemetry_metrics_splunk, "0.0.5-alpha"}, {:telemetry_poller, "1.1.0"}, {:telemetry_test, "0.1.2", only: [:test]}, # latest version is 3.7.11; cannot upgrade because tests fail diff --git a/mix.lock b/mix.lock index 099867d839..316567e715 100644 --- a/mix.lock +++ b/mix.lock @@ -96,7 +96,7 @@ "sweet_xml": {:hex, :sweet_xml, "0.7.4", "a8b7e1ce7ecd775c7e8a65d501bc2cd933bff3a9c41ab763f5105688ef485d08", [:mix], [], "hexpm", "e7c4b0bdbf460c928234951def54fe87edf1a170f6896675443279e2dbeba167"}, "telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"}, "telemetry_metrics": {:hex, :telemetry_metrics, "1.0.0", "29f5f84991ca98b8eb02fc208b2e6de7c95f8bb2294ef244a176675adc7775df", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "f23713b3847286a534e005126d4c959ebcca68ae9582118ce436b521d1d47d5d"}, - "telemetry_metrics_splunk": {:hex, :telemetry_metrics_splunk, "0.0.4-alpha", "8573914ab290b5a7ea306e5511af9eafa0dd3da3a7390ef30bd742d12f12dbd5", [:mix], [{:finch, "0.18.0", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "1.4.1", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_options, "1.1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:recase, "0.7.0", [hex: :recase, repo: "hexpm", optional: false]}, {:telemetry, "1.2.1", [hex: :telemetry, repo: "hexpm", optional: false]}, {:telemetry_metrics, "1.0.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "25e1502aa6a498566dcc0d52d05752e85fe8af97bb2e2a8f82400c79420bba70"}, + "telemetry_metrics_splunk": {:hex, :telemetry_metrics_splunk, "0.0.5-alpha", "cd25358fb612d209dbf1dc06393281d85fe5a69d7ce048373a417523d1ee54aa", [:mix], [{:finch, "0.18.0", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "1.4.1", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_options, "1.1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:recase, "0.7.0", [hex: :recase, repo: "hexpm", optional: false]}, {:telemetry, "1.2.1", [hex: :telemetry, repo: "hexpm", optional: false]}, {:telemetry_metrics, "1.0.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "709cdf16b1d99b128b0a573e6e55d8243851602f1fff7119622b4234fd9f0e55"}, "telemetry_poller": {:hex, :telemetry_poller, "1.1.0", "58fa7c216257291caaf8d05678c8d01bd45f4bdbc1286838a28c4bb62ef32999", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "9eb9d9cbfd81cbd7cdd24682f8711b6e2b691289a0de6826e58452f28c103c8f"}, "telemetry_test": {:hex, :telemetry_test, "0.1.2", "122d927567c563cf57773105fa8104ae4299718ec2cbdddcf6776562c7488072", [:mix], [{:telemetry, "~> 1.2", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7bd41a49ecfd33ecd82d2c7edae19a5736f0d2150206d0ee290dcf3885d0e14d"}, "tesla": {:hex, :tesla, "1.9.0", "8c22db6a826e56a087eeb8cdef56889731287f53feeb3f361dec5d4c8efb6f14", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, ">= 1.0.0", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.2", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "7c240c67e855f7e63e795bf16d6b3f5115a81d1f44b7fe4eadbf656bae0fef8a"},