Add additional shards/segment graphs to remote write dashboard.

Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
Callum Styan 2019-10-09 09:59:02 -07:00
parent 81d284f806
commit 81fa63006c
1 changed files with 27 additions and 1 deletions

View File

@ -115,15 +115,41 @@ local g = import 'grafana-builder/grafana.libsonnet';
)
)
.addRow(
g.row('Shards')
g.row('Shards Overview')
.addPanel(
g.panel('Num. Shards') +
g.queryPanel('prometheus_remote_storage_shards{cluster=~"$cluster", instance=~"$instance"}', '{{cluster}}:{{instance}}-{{queue}}')
)
.addPanel(
g.panel('Desired Shards') +
g.queryPanel('prometheus_remote_storage_shards_desired{cluster=~"$cluster", instance=~"$instance"}', '{{cluster}}:{{instance}}-{{queue}}')
)
)
.addRow(
g.row('Shards Details')
.addPanel(
g.panel('Capacity') +
g.queryPanel('prometheus_remote_storage_shard_capacity{cluster=~"$cluster", instance=~"$instance"}', '{{cluster}}:{{instance}}-{{queue}}')
)
.addPanel(
g.panel('Min Shards') +
g.queryPanel('prometheus_remote_storage_shards_min{cluster=~"$cluster", instance=~"$instance"}', '{{cluster}}:{{instance}}-{{queue}}')
)
.addPanel(
g.panel('Max Shards') +
g.queryPanel('prometheus_remote_storage_shards_max{cluster=~"$cluster", instance=~"$instance"}', '{{cluster}}:{{instance}}-{{queue}}')
)
)
.addRow(
g.row('WAL Segments')
.addPanel(
g.panel('TSDB Current Segment') +
g.queryPanel('prometheus_tsdb_wal_segment_current{cluster=~"$cluster", instance=~"$instance"}', '{{cluster}}:{{instance}}')
)
.addPanel(
g.panel('Remote Write Current Segment') +
g.queryPanel('prometheus_wal_watcher_current_segment{cluster=~"$cluster", instance=~"$instance"}', '{{cluster}}:{{instance}}-{{queue}}')
)
)
.addRow(
g.row('Misc Rates.')