This repository was archived by the owner on Mar 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
added hikaricp dashboards #29
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ed354b3
added hikaricp dashboards
e7f654a
added hikaricp dashboards readme
210a4b3
moved metrics.csv file
e7ae426
addressed pr comments
f4c45d0
added real stream metrics
3db5aea
added separated outputs and variables tf files
5b7695b
Merge branch 'main' into hsilva/hikaricp_dashboard
0802d2c
Merge branch 'main' into hsilva/hikaricp_dashboard
nslaughter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,329 @@ | ||
| 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.cloud_observability_project | ||
| dashboard_name = "HikariCP and System Metrics Dashboard" | ||
| dashboard_description = "Monitor HikariCP and System Metrics." | ||
|
|
||
| chart { | ||
| name = "Total Connections" | ||
| rank = "0" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "a" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Active Connections" | ||
| rank = "1" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "b" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_active | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Connection Creation Time" | ||
| rank = "2" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "c" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_creation_seconds | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Idle Connections" | ||
| rank = "3" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "d" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_idle | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Max Connections" | ||
| rank = "4" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "e" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_max | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Pending Threads" | ||
| rank = "5" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "f" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_pending | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Min Connections" | ||
| rank = "6" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "g" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_min | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Connection Timeout Total Count" | ||
| rank = "7" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "h" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_timeout_total | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Connection Usage Time" | ||
| rank = "8" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "i" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric hikaricp_connections_usage_seconds | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "System CPU Usage" | ||
| rank = "9" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "j" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric system_cpu_usage | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "System CPU Count" | ||
| rank = "10" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "k" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric system_cpu_count | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "JVM Memory Used" | ||
| rank = "11" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "l" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric jvm_memory_used_bytes | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "JVM Threads Live" | ||
| rank = "12" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "m" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric jvm_threads_live_threads | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "JVM Buffer Count Buffers" | ||
| rank = "13" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "n" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric jvm_buffer_count_buffers | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "JVM Buffer Memory Used Bytes" | ||
| rank = "14" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "o" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric jvm_buffer_memory_used_bytes | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "JVM Buffer Total Capacity Bytes" | ||
| rank = "15" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "p" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric jvm_buffer_total_capacity_bytes | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Process CPU Usage" | ||
| rank = "16" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "s" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric process_cpu_usage | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Process Uptime Seconds" | ||
| rank = "17" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "t" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric process_uptime_seconds | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "System Load Average 1m" | ||
| rank = "18" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "u" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric system_load_average_1m | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Tomcat Active Current Sessions" | ||
| rank = "21" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "v" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric tomcat_sessions_active_current_sessions | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Tomcat Max Active Sessions" | ||
| rank = "22" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "w" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric tomcat_sessions_active_max_sessions | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Tomcat Sessions Alive Max Seconds" | ||
| rank = "23" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "x" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric tomcat_sessions_alive_max_seconds | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Tomcat Sessions Created Total" | ||
| rank = "24" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "y" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric tomcat_sessions_created_sessions_total | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "Tomcat Sessions Expired Total" | ||
| rank = "25" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "z" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric tomcat_sessions_expired_sessions_total | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "System CPU Count" | ||
| rank = "26" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "ab" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric system_cpu_count | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| chart { | ||
| name = "System CPU Usage" | ||
| rank = "27" | ||
| type = "timeseries" | ||
| query { | ||
| query_name = "ac" | ||
| display = "line" | ||
| hidden = false | ||
| query_string = "metric system_cpu_usage | rate | group_by [], sum" | ||
| } | ||
| } | ||
|
|
||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| output "dashboard_url" { | ||
| value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_hikaricp_dashboard.id}" | ||
| description = "OpenTelemetry Hikaricp Dashboard URL" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| variable "lightstep_project" { | ||
| description = "Name of Lightstep project" | ||
| type = string | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.