Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
- Panel with Сartridge configuration checksum (#242)
- Panel with `need schema upgrade` status (#243)


## [3.2.1] - 2024-12-06
Expand Down
28 changes: 28 additions & 0 deletions dashboard/panels/cluster.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,34 @@ local prometheus = grafana.prometheus;
common.target(cfg, 'tnt_read_only', converter='last')
),

schema_need_upgrade_status(
cfg,
title='Tarantool schema needs upgrade status',
description=|||
"no need to upgrade schema" means the instance schema is up-to-date.
"need to upgrade schema" means the instance schema is outdated; some functionality is unavailable.
Call box.schema.upgrade on the instance.

Panel minimal requirements: metrics 1.6.0, Grafana 8.
|||,
panel_width=12,
):: timeseries.new(
title=title,
description=description,
datasource=cfg.datasource,
panel_width=panel_width,
max=1,
min=0,
).addValueMapping(
0, 'green', 'no need to upgrade schema'
).addValueMapping(
1, 'red', 'need to upgrade schema'
).addRangeMapping(
0.001, 0.999, '-'
).addTarget(
common.target(cfg, 'tnt_schema_needs_upgrade', converter='last')
),

local election_warning(description) = std.join(
'\n',
[description, |||
Expand Down
8 changes: 6 additions & 2 deletions dashboard/section.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ local vinyl = import 'dashboard/panels/vinyl.libsonnet';
cluster.tarantool3_config_status(cfg),
cluster.tarantool3_config_warning_alerts(cfg),
cluster.tarantool3_config_error_alerts(cfg),
cluster.read_only_status(cfg, panel_width=24),
cluster.read_only_status(cfg),
cluster.schema_need_upgrade_status(cfg),
cluster.election_state(cfg),
cluster.election_vote(cfg),
cluster.election_leader(cfg),
Expand All @@ -50,7 +51,8 @@ local vinyl = import 'dashboard/panels/vinyl.libsonnet';
cluster.tarantool3_config_status(cfg),
cluster.tarantool3_config_warning_alerts(cfg),
cluster.tarantool3_config_error_alerts(cfg),
cluster.read_only_status(cfg, panel_width=24),
cluster.read_only_status(cfg),
cluster.schema_need_upgrade_status(cfg),
cluster.election_state(cfg),
cluster.election_vote(cfg),
cluster.election_leader(cfg),
Expand All @@ -76,6 +78,7 @@ local vinyl = import 'dashboard/panels/vinyl.libsonnet';
cluster.election_vote(cfg),
cluster.election_leader(cfg),
cluster.election_term(cfg),
cluster.schema_need_upgrade_status(cfg, panel_width=24),
] else if cfg.type == variable.datasource_type.influxdb then [
cluster.row,
cluster.cartridge_warning_issues(cfg),
Expand All @@ -86,6 +89,7 @@ local vinyl = import 'dashboard/panels/vinyl.libsonnet';
cluster.election_vote(cfg),
cluster.election_leader(cfg),
cluster.election_term(cfg),
cluster.schema_need_upgrade_status(cfg, panel_width=24),
],

replication_tarantool3(cfg):: [
Expand Down
6 changes: 1 addition & 5 deletions example_cluster/tarantool3_project/app.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-bullseye
FROM golang:1.24-bullseye

WORKDIR /app

Expand All @@ -19,10 +19,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y tarantool tarantool-dev tt
RUN tt init
# Need tt start -i
RUN DEBIAN_FRONTEND=noninteractive apt install -y git patch
RUN git clone https://github.com/magefile/mage && \
cd mage && \
go run bootstrap.go
RUN tt install tt master

RUN tt rocks make
ENTRYPOINT tt start -i
1 change: 1 addition & 0 deletions supported_metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Format is as follows.

Based on [tarantool/metrics 1.2.0](https://github.com/tarantool/metrics/releases/tag/1.2.0).

- [x] **tnt_schema_needs_upgrade**: see *Tarantool schema need upgrade status* panel ([#243](https://github.com/tarantool/grafana-dashboard/pull/243/files))
- [x] **tnt_clock_delta**: see *Replication overview/Instances clock delta* panel ([#133](https://github.com/tarantool/grafana-dashboard/issues/133))
- [x] **tnt_cpu_user_time**: see *Tarantool CPU statistics/CPU user time* panel ([#71](https://github.com/tarantool/grafana-dashboard/issues/71))
- [x] **tnt_cpu_system_time**: see *Tarantool CPU statistics/CPU system time* panel ([#71](https://github.com/tarantool/grafana-dashboard/issues/71))
Expand Down
Loading