Skip to content

dashboard: add panel for config application status #241

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

Merged
merged 1 commit into from
Jul 14, 2025
Merged
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- Panel with Сartridge config application status (#241)


## [3.2.1] - 2024-12-06
Grafana revisions:
- Tarantool 3:
Expand Down
29 changes: 28 additions & 1 deletion dashboard/panels/cluster.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,33 @@ local prometheus = grafana.prometheus;
else if cfg.type == variable.datasource_type.influxdb then
error 'InfluxDB target is not supported yet',

config_applied(
cfg,
title='Config application status',
description=|||
Indicates whether the instance has locally applied a new
clusterwide configuration.

Panel minimal requirements: cartridge 2.16.1, metrics 1.4.0.
|||,
):: timeseries.new(
title=title,
description=description,
datasource=cfg.datasource,
panel_height=6,
panel_width=8,
max=1,
min=0,
).addValueMapping(
0, 'yellow', 'not applied'
).addValueMapping(
1, 'green', 'applied'
).addRangeMapping(
0.001, 0.999, '-'
).addTarget(
common.target(cfg, 'tnt_cartridge_config_applied')
),

memory_reserved_stat(
cfg,
title='',
Expand Down Expand Up @@ -452,7 +479,7 @@ local prometheus = grafana.prometheus;
legend_avg=false,
legend_max=false,
panel_height=6,
panel_width=12,
panel_width=8,
).addTarget(
common.target(
cfg,
Expand Down
1 change: 1 addition & 0 deletions dashboard/section.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ local vinyl = import 'dashboard/panels/vinyl.libsonnet';
cluster.http_rps_stat(cfg) { gridPos: { w: 4, h: 5, x: 12, y: 4 } },
cluster.net_rps_stat(cfg) { gridPos: { w: 4, h: 5, x: 16, y: 4 } },
cluster.space_ops_stat(cfg) { gridPos: { w: 4, h: 5, x: 20, y: 4 } },
cluster.config_applied(cfg),
cluster.cartridge_warning_issues(cfg),
cluster.cartridge_critical_issues(cfg),
cluster.failovers_per_second(cfg),
Expand Down
1 change: 1 addition & 0 deletions supported_metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Based on [tarantool/metrics 1.2.0](https://github.com/tarantool/metrics/releases
- [x] **tnt_cartridge_issues**: see *Cluster overview/Cartridge warning issues*, *Cluster overview/Cartridge critical issues* panels ([#55](https://github.com/tarantool/grafana-dashboard/pull/55))
- **tnt_cartridge_cluster_issues**: unsupported (decided not to support: superseded by **tnt_cartridge_issues**)
- [x] **tnt_cartridge_failover_trigger_total**: see *Cluster overview/Failovers triggered* panel ([#178](https://github.com/tarantool/grafana-dashboard/issues/178))
- [x] **tnt_cartridge_config_applied**: see *Cluster overview/Config application status* panel ([#241](https://github.com/tarantool/grafana-dashboard/pull/241))
- [x] **tnt_synchro_queue_owner**: see *Replication overview/Synchronous queue owner* panel ([#178](https://github.com/tarantool/grafana-dashboard/issues/178))
- [x] **tnt_synchro_queue_term**: see *Replication overview/Synchronous queue term* panel ([#178](https://github.com/tarantool/grafana-dashboard/issues/178))
- [x] **tnt_synchro_queue_len**: see *Replication overview/Synchronous queue transactions* panel ([#178](https://github.com/tarantool/grafana-dashboard/issues/178))
Expand Down
6 changes: 3 additions & 3 deletions tests/InfluxDB/dashboard_cartridge_compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"fill": 0,
"gridPos": {
"h": 6,
"w": 12,
"w": 8,
"x": 0,
"y": 1
},
Expand Down Expand Up @@ -204,8 +204,8 @@
"fill": 0,
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"w": 8,
"x": 8,
"y": 1
},
"id": 4,
Expand Down
6 changes: 3 additions & 3 deletions tests/InfluxDB/dashboard_tdg_compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"fill": 0,
"gridPos": {
"h": 6,
"w": 12,
"w": 8,
"x": 0,
"y": 1
},
Expand Down Expand Up @@ -204,8 +204,8 @@
"fill": 0,
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"w": 8,
"x": 8,
"y": 1
},
"id": 4,
Expand Down
Loading