diff --git a/collector/httpcheck/dashboards/overview/main.tf b/collector/httpcheck/dashboards/overview/main.tf new file mode 100644 index 0000000..1af6b17 --- /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" "collector_httpcheck_overview" { + project_name = var.lightstep_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" + } + + } + +}