Skip to content
40 changes: 30 additions & 10 deletions modules/kinesis-dashboard/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ resource "lightstep_dashboard" "aws_kinesis_dashboard" {
query_name = "a"
display = "line"
hidden = false
query_string = "metric aws.kinesis.incoming_records_sum | delta | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.incoming_records_sum | delta | group_by [], sum
EOT
}

query {
query_name = "b"
display = "line"
hidden = false
query_string = "metric aws.kinesis.incoming_bytes_sum | delta | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.incoming_bytes_sum | delta | group_by [], sum
EOT
}

}
Expand All @@ -44,14 +48,18 @@ resource "lightstep_dashboard" "aws_kinesis_dashboard" {
query_name = "a"
display = "line"
hidden = false
query_string = "metric aws.kinesis.get_records_records_count | delta | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.get_records_records_count | delta | group_by [], sum
EOT
}

query {
query_name = "b"
display = "line"
hidden = false
query_string = "metric aws.kinesis.get_records_latency_max | latest | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.get_records_latency_max | latest | group_by [], sum
EOT
}

}
Expand All @@ -65,7 +73,9 @@ resource "lightstep_dashboard" "aws_kinesis_dashboard" {
query_name = "a"
display = "line"
hidden = false
query_string = "metric aws.kinesis.get_records_success_count | delta | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.get_records_success_count | delta | group_by [], sum
EOT
}

}
Expand All @@ -79,14 +89,18 @@ resource "lightstep_dashboard" "aws_kinesis_dashboard" {
query_name = "a"
display = "line"
hidden = false
query_string = "metric aws.kinesis.write_provisioned_throughput_exceeded_max | latest | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.write_provisioned_throughput_exceeded_max | latest | group_by [], sum
EOT
}

query {
query_name = "b"
display = "line"
hidden = false
query_string = "metric aws.kinesis.read_provisioned_throughput_exceeded_max | latest | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.read_provisioned_throughput_exceeded_max | latest | group_by [], sum
EOT
}

}
Expand All @@ -100,14 +114,18 @@ resource "lightstep_dashboard" "aws_kinesis_dashboard" {
query_name = "a"
display = "line"
hidden = false
query_string = "metric aws.kinesis.put_records_total_records_count | delta | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.put_records_total_records_count | delta | group_by [], sum
EOT
}

query {
query_name = "b"
display = "line"
hidden = false
query_string = "metric aws.kinesis.put_record_latency_max | latest | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.put_record_latency_max | latest | group_by [], sum
EOT
}

}
Expand All @@ -121,7 +139,9 @@ resource "lightstep_dashboard" "aws_kinesis_dashboard" {
query_name = "a"
display = "line"
hidden = false
query_string = "metric aws.kinesis.put_record_success_count | delta | group_by [], sum"
query_string = <<EOT
metric aws.kinesis.put_record_success_count | delta | group_by [], sum
EOT
}

}
Expand Down