From 9131970c0e6be5cfc568a481e33063c3292ef6fa Mon Sep 17 00:00:00 2001 From: Heber Silva Date: Wed, 13 Sep 2023 18:13:47 -0400 Subject: [PATCH 1/3] added httpcheck dashboards --- .gitignore | 6 +++ .../httpcheck/dashboards/overview/main.tf | 45 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 collector/httpcheck/dashboards/overview/main.tf diff --git a/.gitignore b/.gitignore index d6884f3..632a1b5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,9 @@ *.tfstate.backup .terraform.lock.hcl logs.txt + +.idea +*.idea + +.DS_Store +*.DS_Store \ No newline at end of file diff --git a/collector/httpcheck/dashboards/overview/main.tf b/collector/httpcheck/dashboards/overview/main.tf new file mode 100644 index 0000000..6574b68 --- /dev/null +++ b/collector/httpcheck/dashboards/overview/main.tf @@ -0,0 +1,45 @@ +terraform { + required_providers { + lightstep = { + source = "lightstep/lightstep" + version = "~> 1.70.10" + } + } + required_version = ">= v1.0.11" +} + + +resource "lightstep_dashboard" "otel_collector_httpcheck_dashboard" { + project_name = var.cloud_observability_project + dashboard_name = "OpenTelemetry HttpCheck Dashboard" + dashboard_description = "Monitor the HTTPCheck of your OpenTelemetry Collector instances" + + chart { + name = "HTTPCheck Duration" + rank = "0" + type = "timeseries" + + query { + query_name = "a" + display = "line" + hidden = false + query_string = "metric httpcheck.duration | rate | group_by [], sum" + } + + } + + chart { + name = "HTTPCheck Status Code" + rank = "1" + type = "timeseries" + + query { + query_name = "a" + display = "line" + hidden = false + query_string = "metric httpcheck.status | rate | group_by [], sum" + } + + } + +} \ No newline at end of file From ec189f397c07dadf9fa28674f3e3f76fe503cbc0 Mon Sep 17 00:00:00 2001 From: Nathan Slaughter <28688390+nslaughter@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:12:02 -0500 Subject: [PATCH 2/3] change names --- collector/httpcheck/dashboards/overview/main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/collector/httpcheck/dashboards/overview/main.tf b/collector/httpcheck/dashboards/overview/main.tf index 6574b68..1af6b17 100644 --- a/collector/httpcheck/dashboards/overview/main.tf +++ b/collector/httpcheck/dashboards/overview/main.tf @@ -9,9 +9,9 @@ terraform { } -resource "lightstep_dashboard" "otel_collector_httpcheck_dashboard" { - project_name = var.cloud_observability_project - dashboard_name = "OpenTelemetry HttpCheck Dashboard" +resource "lightstep_dashboard" "collector_httpcheck_overview" { + project_name = var.lightstep_project + dashboard_name = "OpenTelemetry HTTPCheck Dashboard" dashboard_description = "Monitor the HTTPCheck of your OpenTelemetry Collector instances" chart { @@ -42,4 +42,4 @@ resource "lightstep_dashboard" "otel_collector_httpcheck_dashboard" { } -} \ No newline at end of file +} From 9e06a17880641729192e75e520cd9352a4134497 Mon Sep 17 00:00:00 2001 From: Nathan Slaughter <28688390+nslaughter@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:21:41 -0500 Subject: [PATCH 3/3] ../../.gitignore --- .gitignore | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 632a1b5..69b1fdf 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,4 @@ logs.txt .idea *.idea - -.DS_Store -*.DS_Store \ No newline at end of file +.DS_Store \ No newline at end of file