Skip to content

Commit

Permalink
add active files and targets to promtail dashboard.
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
  • Loading branch information
tomwilkie committed Jan 31, 2019
1 parent 29c2213 commit 6d19632
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions production/loki-mixin/dashboards.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,23 @@ local utils = import "mixin-utils/utils.libsonnet";
g.dashboard('Loki / Promtail')
.addTemplate('cluster', 'kube_pod_container_info{image=~".*promtail.*"}', 'cluster')
.addTemplate('namespace', 'kube_pod_container_info{image=~".*promtail.*"}', 'namespace')
.addRow(
g.row('Targets & Files')
.addPanel(
g.panel('Active Targets') +
g.queryPanel(
'sum(promtail_targets_active_total)',
'Active Targets',
),
)
.addPanel(
g.panel('Active Files') +
g.queryPanel(
'sum(promtail_files_active_total)',
'Active Targets',
),
)
)
.addRow(
g.row('IO')
.addPanel(
Expand Down

0 comments on commit 6d19632

Please sign in to comment.