From 397b4c61d55752600e3fec1f2fbea19f06b76c2e Mon Sep 17 00:00:00 2001 From: Heber Silva Date: Thu, 7 Sep 2023 17:46:28 -0400 Subject: [PATCH 1/3] added hikaricp dashboard --- .../main.tf | 195 ++++++++++++++++++ .../outputs.tf | 4 + .../variables.tf | 4 + 3 files changed, 203 insertions(+) create mode 100644 collector-dashboards/otel-collector-hikaricp-prom-dashboard/main.tf create mode 100644 collector-dashboards/otel-collector-hikaricp-prom-dashboard/outputs.tf create mode 100644 collector-dashboards/otel-collector-hikaricp-prom-dashboard/variables.tf diff --git a/collector-dashboards/otel-collector-hikaricp-prom-dashboard/main.tf b/collector-dashboards/otel-collector-hikaricp-prom-dashboard/main.tf new file mode 100644 index 0000000..0d9c714 --- /dev/null +++ b/collector-dashboards/otel-collector-hikaricp-prom-dashboard/main.tf @@ -0,0 +1,195 @@ +terraform { + required_providers { + lightstep = { + source = "lightstep/lightstep" + version = "~> 1.70.10" + } + } + required_version = ">= v1.0.11" +} + +resource "lightstep_dashboard" "otel_collector_hikaricp_dashboard" { + project_name = var.lightstep_project + dashboard_name = "HikariCP Dashboard" + dashboard_description = "Monitor HikariCP with this connection pool metrics summary." + + chart { + name = "Active Connections" + rank = "0" + type = "timeseries" + + query { + query_name = "a" + display = "line" + hidden = false + query_string = <