Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added scylladb dashboard #109

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
terraform {
required_providers {
lightstep = {
source = "lightstep/lightstep"
version = "~> 1.70.10"
}
}
required_version = ">= v1.0.11"
}

resource "lightstep_dashboard" "otel_collector_scylladb_dashboard" {
project_name = var.lightstep_project
dashboard_name = "OpenTelemetry ScyllaDB Dashboard"
dashboard_description = "Monitor ScyllaDB metrics with this summary dashboard."

chart {
name = "UP"
rank = "0"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = "metric up | latest | group_by [], sum"
}
}

chart {
name = "Scylla Query Requests"
rank = "1"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = "metric scylla_transport_query_requests | rate | group_by [], sum"
}
}

chart {
name = "CQL Connections"
rank = "2"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = "metric scylla_transport_cql_connections | rate | group_by [], sum"
}
}

chart {
name = "Total Incoming Bytes"
rank = "3"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = "metric scylla_streaming_total_incoming_bytes | rate | group_by [], sum"
}
}

chart {
name = "Total Outgoing Bytes"
rank = "4"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = "metric scylla_streaming_total_outgoing_bytes | rate | group_by [], sum"
}
}

}
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_scylladb_dashboard.id}"
description = "OpenTelemetry ScyllaDB Dashboard URL"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variable "lightstep_project" {
description = "Name of Lightstep project"
hecomp marked this conversation as resolved.
Show resolved Hide resolved
type = string
}