diff --git a/include/pika_instant.h b/include/pika_instant.h new file mode 100644 index 0000000000..630e5478a0 --- /dev/null +++ b/include/pika_instant.h @@ -0,0 +1,39 @@ +// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved. +// This source code is licensed under the BSD-style license found in the +// LICENSE file in the root directory of this source tree. An additional grant +// of patent rights can be found in the PATENTS file in the same directory. + +#ifndef PIKA_PIKA_INSTANT_H +#define PIKA_PIKA_INSTANT_H + +#include +#include + +inline constexpr size_t STATS_METRIC_SAMPLES = 16; /* Number of samples per metric. */ +inline const std::string STATS_METRIC_NET_INPUT = "stats_metric_net_input"; +inline const std::string STATS_METRIC_NET_OUTPUT = "stats_metric_net_output"; +inline const std::string STATS_METRIC_NET_INPUT_REPLICATION = "stats_metric_net_input_replication"; +inline const std::string STATS_METRIC_NET_OUTPUT_REPLICATION = "stats_metric_net_output_replication"; + +/* The following two are used to track instantaneous metrics, like +* number of operations per second, network traffic. */ +struct InstMetric{ + size_t last_sample_base; /* The divisor of last sample window */ + size_t last_sample_value; /* The dividend of last sample window */ + double samples[STATS_METRIC_SAMPLES]; + int idx; +}; + +class Instant { + public: + Instant() = default; + ~Instant() = default; + + void trackInstantaneousMetric(std::string metric, size_t current_value, size_t current_base, size_t factor); + double getInstantaneousMetric(std::string metric); + + private: + std::unordered_map inst_metrics_; +}; + +#endif // PIKA_PIKA_INSTANT_H diff --git a/include/pika_monotonic_time.h b/include/pika_monotonic_time.h new file mode 100644 index 0000000000..c2e0a8f8b6 --- /dev/null +++ b/include/pika_monotonic_time.h @@ -0,0 +1,22 @@ +// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved. +// This source code is licensed under the BSD-style license found in the +// LICENSE file in the root directory of this source tree. An additional grant +// of patent rights can be found in the PATENTS file in the same directory. + +#ifndef PIKA_MONOTONIC_TIME_H +#define PIKA_MONOTONIC_TIME_H + +#include + +/* A counter in micro-seconds. The 'monotime' type is provided for variables + * holding a monotonic time. This will help distinguish & document that the + * variable is associated with the monotonic clock and should not be confused + * with other types of time.*/ +typedef uint64_t monotime; + +// Get monotonic time in microseconds +monotime getMonotonicUs(); + +#endif // PIKA_MONOTONIC_TIME_H + + diff --git a/include/pika_server.h b/include/pika_server.h index 7c1618a450..138df54ec4 100644 --- a/include/pika_server.h +++ b/include/pika_server.h @@ -32,6 +32,7 @@ #include "include/pika_db.h" #include "include/pika_define.h" #include "include/pika_dispatch_thread.h" +#include "include/pika_instant.h" #include "include/pika_repl_client.h" #include "include/pika_repl_server.h" #include "include/pika_rsync_service.h" @@ -306,6 +307,19 @@ class PikaServer : public pstd::noncopyable { std::unordered_map ServerExecCountDB(); QpsStatistic ServerDBStat(const std::string& db_name); std::unordered_map ServerAllDBStat(); + + /* + * Network Statistic used + */ + size_t NetInputBytes(); + size_t NetOutputBytes(); + size_t NetReplInputBytes(); + size_t NetReplOutputBytes(); + float InstantaneousInputKbps(); + float InstantaneousOutputKbps(); + float InstantaneousInputReplKbps(); + float InstantaneousOutputReplKbps(); + /* * Slave to Master communication used */ @@ -472,7 +486,13 @@ class PikaServer : public pstd::noncopyable { /* * Info Commandstats used */ - std::unordered_map* GetCommandStatMap(); + std::unordered_map* GetCommandStatMap(); + + + /* + * Instantaneous Metric used + */ + std::unique_ptr instant_; friend class Cmd; friend class InfoCmd; @@ -488,6 +508,7 @@ class PikaServer : public pstd::noncopyable { void AutoPurge(); void AutoDeleteExpiredDump(); void AutoKeepAliveRSync(); + void AutoInstantaneousMetric(); std::string host_; int port_ = 0; diff --git a/include/pika_statistic.h b/include/pika_statistic.h index 32d749fad5..c6d03d2e3e 100644 --- a/include/pika_statistic.h +++ b/include/pika_statistic.h @@ -34,8 +34,8 @@ class QpsStatistic { }; struct ServerStatistic { - ServerStatistic(); - ~ServerStatistic(); + ServerStatistic() = default; + ~ServerStatistic() = default; std::atomic accumulative_connections; std::unordered_map> exec_count_db; diff --git a/src/net/include/net_stats.h b/src/net/include/net_stats.h new file mode 100644 index 0000000000..c93142ff2a --- /dev/null +++ b/src/net/include/net_stats.h @@ -0,0 +1,36 @@ +// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved. +// This source code is licensed under the BSD-style license found in the +// LICENSE file in the root directory of this source tree. An additional grant +// of patent rights can be found in the PATENTS file in the same directory. +// +#ifndef NET_INCLUDE_REDIS_STSTS_H_ +#define NET_INCLUDE_REDIS_STSTS_H_ + +#include + +namespace net { + +class NetworkStatistic { + public: + NetworkStatistic() = default; + ~NetworkStatistic() = default; + + size_t NetInputBytes(); + size_t NetOutputBytes(); + size_t NetReplInputBytes(); + size_t NetReplOutputBytes(); + void IncrRedisInputBytes(uint64_t bytes); + void IncrRedisOutputBytes(uint64_t bytes); + void IncrReplInputBytes(uint64_t bytes); + void IncrReplOutputBytes(uint64_t bytes); + + private: + std::atomic stat_net_input_bytes {0}; /* Bytes read from network. */ + std::atomic stat_net_output_bytes {0}; /* Bytes written to network. */ + std::atomic stat_net_repl_input_bytes {0}; /* Bytes read during replication, added to stat_net_input_bytes in 'info'. */ + std::atomic stat_net_repl_output_bytes {0}; /* Bytes written during replication, added to stat_net_output_bytes in 'info'. */ +}; + +} + +#endif // NET_INCLUDE_REDIS_STSTS_H_ diff --git a/src/net/src/net_stats.cc b/src/net/src/net_stats.cc new file mode 100644 index 0000000000..80f64a0be0 --- /dev/null +++ b/src/net/src/net_stats.cc @@ -0,0 +1,46 @@ +// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved. +// This source code is licensed under the BSD-style license found in the +// LICENSE file in the root directory of this source tree. An additional grant +// of patent rights can be found in the PATENTS file in the same directory. + +#include +#include +#include "net/include/net_stats.h" + +std::unique_ptr g_network_statistic; + +namespace net { + +size_t NetworkStatistic::NetInputBytes() { + return stat_net_input_bytes.load(std::memory_order_relaxed); +} + +size_t NetworkStatistic::NetOutputBytes() { + return stat_net_output_bytes.load(std::memory_order_relaxed); +} + +size_t NetworkStatistic::NetReplInputBytes() { + return stat_net_repl_input_bytes.load(std::memory_order_relaxed); +} + +size_t NetworkStatistic::NetReplOutputBytes() { + return stat_net_repl_output_bytes.load(std::memory_order_relaxed); +} + +void NetworkStatistic::IncrRedisInputBytes(uint64_t bytes) { + stat_net_input_bytes.fetch_add(bytes, std::memory_order_relaxed); +} + +void NetworkStatistic::IncrRedisOutputBytes(uint64_t bytes) { + stat_net_output_bytes.fetch_add(bytes, std::memory_order_relaxed); +} + +void NetworkStatistic::IncrReplInputBytes(uint64_t bytes) { + stat_net_repl_input_bytes.fetch_add(bytes, std::memory_order_relaxed); +} + +void NetworkStatistic::IncrReplOutputBytes(uint64_t bytes) { + stat_net_repl_output_bytes.fetch_add(bytes, std::memory_order_relaxed); +} + +} \ No newline at end of file diff --git a/src/net/src/pb_conn.cc b/src/net/src/pb_conn.cc index aec1010a9d..9f054d42c0 100644 --- a/src/net/src/pb_conn.cc +++ b/src/net/src/pb_conn.cc @@ -11,8 +11,11 @@ #include #include "net/include/net_define.h" +#include "net/include/net_stats.h" #include "pstd/include/xdebug.h" +extern std::unique_ptr g_network_statistic; + namespace net { PbConn::PbConn(const int fd, const std::string& ip_port, Thread* thread, NetMultiplexer* mpx) @@ -34,6 +37,7 @@ ReadStatus PbConn::GetRequest() { switch (connStatus_) { case kHeader: { ssize_t nread = read(fd(), rbuf_ + cur_pos_, COMMAND_HEADER_LENGTH - cur_pos_); + g_network_statistic->IncrReplInputBytes(nread); if (nread == -1) { if (errno == EAGAIN) { return kReadHalf; @@ -71,6 +75,7 @@ ReadStatus PbConn::GetRequest() { } // read msg body ssize_t nread = read(fd(), rbuf_ + cur_pos_, remain_packet_len_); + g_network_statistic->IncrReplInputBytes(nread); if (nread == -1) { if (errno == EAGAIN) { return kReadHalf; @@ -117,6 +122,7 @@ WriteStatus PbConn::SendReply() { item_len = item.size(); while (item_len - write_buf_.item_pos_ > 0) { nwritten = write(fd(), item.data() + write_buf_.item_pos_, item_len - write_buf_.item_pos_); + g_network_statistic->IncrReplOutputBytes(nwritten); if (nwritten <= 0) { break; } diff --git a/src/net/src/redis_conn.cc b/src/net/src/redis_conn.cc index 2c09190de2..51708a8bba 100644 --- a/src/net/src/redis_conn.cc +++ b/src/net/src/redis_conn.cc @@ -5,17 +5,17 @@ #include "net/include/redis_conn.h" -#include #include - #include -#include #include +#include "net/include/net_stats.h" #include "pstd/include/pstd_string.h" #include "pstd/include/xdebug.h" +extern std::unique_ptr g_network_statistic; + namespace net { RedisConn::RedisConn(const int fd, const std::string& ip_port, Thread* thread, NetMultiplexer* net_mpx, @@ -87,6 +87,7 @@ ReadStatus RedisConn::GetRequest() { } nread = read(fd(), rbuf_ + next_read_pos, remain); + g_network_statistic->IncrRedisInputBytes(nread); if (nread == -1) { if (errno == EAGAIN || errno == EWOULDBLOCK) { nread = 0; @@ -129,6 +130,7 @@ WriteStatus RedisConn::SendReply() { size_t wbuf_len = response_.size(); while (wbuf_len > 0) { nwritten = write(fd(), response_.data() + wbuf_pos_, wbuf_len - wbuf_pos_); + g_network_statistic->IncrRedisOutputBytes(nwritten); if (nwritten <= 0) { break; } diff --git a/src/pika.cc b/src/pika.cc index a30d8b0ec1..62703a0511 100644 --- a/src/pika.cc +++ b/src/pika.cc @@ -7,6 +7,7 @@ #include #include +#include "net/include/net_stats.h" #include "include/build_version.h" #include "include/pika_cmd_table_manager.h" #include "include/pika_command.h" @@ -26,6 +27,8 @@ std::unique_ptr g_pika_rm; std::unique_ptr g_pika_cmd_table_manager; +extern std::unique_ptr g_network_statistic; + static void version() { char version[32]; snprintf(version, sizeof(version), "%d.%d.%d", PIKA_MAJOR, PIKA_MINOR, PIKA_PATCH); @@ -192,6 +195,7 @@ int main(int argc, char* argv[]) { g_pika_cmd_table_manager = std::make_unique(); g_pika_server = new PikaServer(); g_pika_rm = std::make_unique(); + g_network_statistic = std::make_unique(); if (g_pika_conf->daemonize()) { close_std(); @@ -202,6 +206,7 @@ int main(int argc, char* argv[]) { g_pika_server = nullptr; g_pika_rm.reset(); g_pika_cmd_table_manager.reset(); + g_network_statistic.reset(); ::google::ShutdownGoogleLogging(); g_pika_conf.reset(); }; diff --git a/src/pika_admin.cc b/src/pika_admin.cc index c43470091c..6d7ad71642 100644 --- a/src/pika_admin.cc +++ b/src/pika_admin.cc @@ -839,6 +839,17 @@ void InfoCmd::InfoStats(std::string& info) { tmp_stream << "total_connections_received:" << g_pika_server->accumulative_connections() << "\r\n"; tmp_stream << "instantaneous_ops_per_sec:" << g_pika_server->ServerCurrentQps() << "\r\n"; tmp_stream << "total_commands_processed:" << g_pika_server->ServerQueryNum() << "\r\n"; + + // Network stats + tmp_stream << "total_net_input_bytes:" << g_pika_server->NetInputBytes() + g_pika_server->NetReplInputBytes() << "\r\n"; + tmp_stream << "total_net_output_bytes:" << g_pika_server->NetOutputBytes() + g_pika_server->NetReplOutputBytes() << "\r\n"; + tmp_stream << "total_net_repl_input_bytes:" << g_pika_server->NetReplInputBytes() << "\r\n"; + tmp_stream << "total_net_repl_output_bytes:" << g_pika_server->NetReplOutputBytes() << "\r\n"; + tmp_stream << "instantaneous_input_kbps:" << g_pika_server->InstantaneousInputKbps() << "\r\n"; + tmp_stream << "instantaneous_output_kbps:" << g_pika_server->InstantaneousOutputKbps() << "\r\n"; + tmp_stream << "instantaneous_input_repl_kbps:" << g_pika_server->InstantaneousInputReplKbps() << "\r\n"; + tmp_stream << "instantaneous_output_repl_kbps:" << g_pika_server->InstantaneousOutputReplKbps() << "\r\n"; + tmp_stream << "is_bgsaving:" << (g_pika_server->IsBgSaving() ? "Yes" : "No") << "\r\n"; tmp_stream << "is_scaning_keyspace:" << (g_pika_server->IsKeyScaning() ? "Yes" : "No") << "\r\n"; tmp_stream << "is_compact:" << (g_pika_server->IsCompacting() ? "Yes" : "No") << "\r\n"; diff --git a/src/pika_instant.cc b/src/pika_instant.cc new file mode 100644 index 0000000000..1592cbf9dd --- /dev/null +++ b/src/pika_instant.cc @@ -0,0 +1,40 @@ +// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved. +// This source code is licensed under the BSD-style license found in the +// LICENSE file in the root directory of this source tree. An additional grant +// of patent rights can be found in the PATENTS file in the same directory. + +#include +#include "../include/pika_instant.h" + +/* Return the mean of all the samples. */ +double Instant::getInstantaneousMetric(std::string metric) { + size_t j; + size_t sum = 0; + + for (j = 0; j < STATS_METRIC_SAMPLES; j++) + sum += inst_metrics_[metric].samples[j]; + + return sum / STATS_METRIC_SAMPLES; +} + +/* ======================= Cron: called every 100 ms ======================== */ + +/* Add a sample to the instantaneous metric. This function computes the quotient + * of the increment of value and base, which is useful to record operation count + * per second, or the average time consumption of an operation. + * + * current_value - The dividend + * current_base - The divisor + * */ +void Instant::trackInstantaneousMetric(std::string metric, size_t current_value, size_t current_base, size_t factor) { + if (inst_metrics_[metric].last_sample_base > 0) { + size_t base = current_base - inst_metrics_[metric].last_sample_base; + size_t value = current_value - inst_metrics_[metric].last_sample_value; + size_t avg = base > 0 ? (value * factor / base) : 0; + inst_metrics_[metric].samples[inst_metrics_[metric].idx] = avg; + inst_metrics_[metric].idx++; + inst_metrics_[metric].idx %= STATS_METRIC_SAMPLES; + } + inst_metrics_[metric].last_sample_base = current_base; + inst_metrics_[metric].last_sample_value = current_value; +} \ No newline at end of file diff --git a/src/pika_monotonic_time.cc b/src/pika_monotonic_time.cc new file mode 100644 index 0000000000..d22c2aefd4 --- /dev/null +++ b/src/pika_monotonic_time.cc @@ -0,0 +1,52 @@ +// Copyright (c) 2023-present, Qihoo, Inc. All rights reserved. +// This source code is licensed under the BSD-style license found in the +// LICENSE file in the root directory of this source tree. An additional grant +// of patent rights can be found in the PATENTS file in the same directory. + +#ifdef __APPLE__ // Mac +#include + +#include "include/pika_monotonic_time.h" + +monotime getMonotonicUs() { + static mach_timebase_info_data_t timebase; + if (timebase.denom == 0) { + mach_timebase_info(&timebase); + } + uint64_t nanos = mach_absolute_time() * timebase.numer / timebase.denom; + return nanos / 1000; +} + +#elif __linux__ // Linux + +#ifdef __x86_64__ // x86_64 + +#include + +#include "include/pika_monotonic_time.h" + +monotime getMonotonicUs() { + timespec ts; + clock_gettime(CLOCK_MONOTONIC, &ts); + return static_cast(ts.tv_sec) * 1000000 + static_cast(ts.tv_nsec) / 1000; +} + +#elif __arm__ // ARM + +#include + +#include "include/pika_monotonic_time.h" + +uint64_t getMonotonicUs() { + timeval tv; + gettimeofday(&tv, nullptr); + return static_cast(tv.tv_sec) * 1000000 + static_cast(tv.tv_usec); +} + +#else +#error "Unsupported architecture for Linux" +#endif // __x86_64__, __arm__ + +#else +#error "Unsupported platform" +#endif // __APPLE__, __linux__ \ No newline at end of file diff --git a/src/pika_server.cc b/src/pika_server.cc index 2f4d79bb1f..1f4f35ed60 100644 --- a/src/pika_server.cc +++ b/src/pika_server.cc @@ -19,17 +19,21 @@ #include "net/include/net_cli.h" #include "net/include/net_interfaces.h" #include "net/include/redis_cli.h" +#include "net/include/net_stats.h" #include "pstd/include/env.h" #include "pstd/include/rsync.h" #include "include/pika_cmd_table_manager.h" #include "include/pika_dispatch_thread.h" #include "include/pika_rm.h" +#include "include/pika_monotonic_time.h" +#include "include/pika_instant.h" using pstd::Status; extern PikaServer* g_pika_server; extern std::unique_ptr g_pika_rm; extern std::unique_ptr g_pika_cmd_table_manager; +extern std::unique_ptr g_network_statistic; void DoPurgeDir(void* arg) { std::unique_ptr path(static_cast(arg)); @@ -79,6 +83,7 @@ PikaServer::PikaServer() pika_migrate_thread_ = std::make_unique(); pika_client_processor_ = std::make_unique(g_pika_conf->thread_pool_size(), 100000); + instant_ = std::make_unique(); exit_mutex_.lock(); } @@ -184,6 +189,16 @@ void PikaServer::Start() { cmdstat_map.emplace(iter.first, statistics); } LOG(INFO) << "Pika Server going to start"; + + // Auto update instantaneous metric + std::thread instantaneous_metric([&]() { + while (!exit_) { + AutoInstantaneousMetric(); + // wake up every 100 milliseconds + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + }); + while (!exit_) { DoTimingTask(); // wake up every 5 seconds @@ -1204,6 +1219,38 @@ void PikaServer::UpdateQueryNumAndExecCountDB(const std::string& db_name, const statistic_.UpdateDBQps(db_name, command, is_write); } +size_t PikaServer::NetInputBytes() { + return g_network_statistic->NetInputBytes(); +} + +size_t PikaServer::NetOutputBytes() { + return g_network_statistic->NetOutputBytes(); +} + +size_t PikaServer::NetReplInputBytes() { + return g_network_statistic->NetReplInputBytes(); +} + +size_t PikaServer::NetReplOutputBytes() { + return g_network_statistic->NetReplOutputBytes(); +} + +float PikaServer::InstantaneousInputKbps() { + return static_cast(g_pika_server->instant_->getInstantaneousMetric(STATS_METRIC_NET_INPUT)) / 1024.0f; +} + +float PikaServer::InstantaneousOutputKbps() { + return static_cast(g_pika_server->instant_->getInstantaneousMetric(STATS_METRIC_NET_OUTPUT)) / 1024.0f; +} + +float PikaServer::InstantaneousInputReplKbps() { + return static_cast(g_pika_server->instant_->getInstantaneousMetric(STATS_METRIC_NET_INPUT_REPLICATION)) / 1024.0f; +} + +float PikaServer::InstantaneousOutputReplKbps() { + return static_cast(g_pika_server->instant_->getInstantaneousMetric(STATS_METRIC_NET_OUTPUT_REPLICATION)) / 1024.0f; +} + std::unordered_map PikaServer::ServerExecCountDB() { std::unordered_map res; for (auto& cmd : statistic_.server_stat.exec_count_db) { @@ -1446,6 +1493,19 @@ void PikaServer::AutoKeepAliveRSync() { } } +void PikaServer::AutoInstantaneousMetric() { + monotime current_time = getMonotonicUs(); + size_t factor = 1000000; // us + instant_->trackInstantaneousMetric(STATS_METRIC_NET_INPUT, g_pika_server->NetInputBytes() + g_pika_server->NetReplInputBytes(), + current_time, factor); + instant_->trackInstantaneousMetric(STATS_METRIC_NET_OUTPUT, g_pika_server->NetOutputBytes() + g_pika_server->NetReplOutputBytes(), + current_time, factor); + instant_->trackInstantaneousMetric(STATS_METRIC_NET_INPUT_REPLICATION, g_pika_server->NetReplInputBytes(), current_time, + factor); + instant_->trackInstantaneousMetric(STATS_METRIC_NET_OUTPUT_REPLICATION, g_pika_server->NetReplOutputBytes(), + current_time, factor); +} + void PikaServer::InitStorageOptions() { std::lock_guard rwl(storage_options_rw_); diff --git a/src/pika_statistic.cc b/src/pika_statistic.cc index 56047a6bcd..b7ab7a8c53 100644 --- a/src/pika_statistic.cc +++ b/src/pika_statistic.cc @@ -30,8 +30,6 @@ QpsStatistic::QpsStatistic(const QpsStatistic& other) { last_time_us = other.last_time_us.load(); } - - void QpsStatistic::IncreaseQueryNum(bool is_write) { querynum++; if (is_write) { @@ -66,12 +64,6 @@ void QpsStatistic::ResetLastSecQuerynum() { last_time_us.store(cur_time_us); } -/* ServerStatistic */ - -ServerStatistic::ServerStatistic() = default; - -ServerStatistic::~ServerStatistic() = default; - /* Statistic */ Statistic::Statistic() { diff --git a/tools/pika_exporter/Makefile b/tools/pika_exporter/Makefile index ff5fbc1e88..d2a2fb3e9b 100644 --- a/tools/pika_exporter/Makefile +++ b/tools/pika_exporter/Makefile @@ -65,17 +65,17 @@ all: build build: deps ifeq ($(OS), Linux) - ifeq ($(ARCH), x86_64) - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/$(PROJNAME) - else ifeq ($(ARCH), arm6411) - CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/$(PROJNAME) - endif +ifeq ($(ARCH), x86_64) + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/$(PROJNAME) +else ifeq ($(ARCH), arm6411) + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/$(PROJNAME) +endif else ifeq ($(OS), Darwin) - ifeq ($(ARCH), x86_64) - CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/$(PROJNAME) - else ifeq ($(ARCH), arm64) - CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/$(PROJNAME) - endif +ifeq ($(ARCH), x86_64) + CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/$(PROJNAME) +else ifeq ($(ARCH), arm64) + CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o bin/$(PROJNAME) +endif endif deps: generateVer diff --git a/tools/pika_exporter/README.md b/tools/pika_exporter/README.md index 8f64af98d0..b7869dcc58 100644 --- a/tools/pika_exporter/README.md +++ b/tools/pika_exporter/README.md @@ -138,6 +138,19 @@ prometheus --config.file=./grafana/prometheus.yml | namespace_expire_keys | `Gauge` | {addr="", alias="", "db"="", "type"=""} | the value of `expire_keys` | total count of the key-type expire keys for each db | | namespace_invalid_keys | `Gauge` | {addr="", alias="", "db"="", "type"=""} | the value of `invalid_keys` | total count of the key-type invalid keys for each db | +### Pika Network Info + +| Metrics Name | Metric Type | Labels | Metrics Value | Metric Desc | +| --------------------------------- | ----------- |----------------------|-----------------------------------------------|---------------------------------------------------------------------------| +| total_net_input_bytes | `Counter` | {addr="", alias=""} | the value of `total_net_input_bytes` | the total number of bytes read from the network | +| total_net_output_bytes | `Counter` | {addr="", alias=""} | the value of `total_net_output_bytes` | the total number of bytes written to the network | +| total_net_repl_input_bytes | `Counter` | {addr="", alias=""} | the value of `total_net_repl_input_bytes` | the total number of bytes read from the network for replication purposes | +| total_net_repl_output_bytes | `Counter` | {addr="", alias=""} | the value of `total_net_repl_output_bytes` | the total number of bytes written to the network for replication purposes | +| instantaneous_input_kbps | `Counter` | {addr="", alias=""} | the value of `instantaneous_input_kbps` | the network's read rate per second in KB/sec | +| instantaneous_output_kbps | `Counter` | {addr="", alias=""} | the value of `instantaneous_output_kbps` | the network's write rate per second in KB/sec | +| instantaneous_input_repl_kbps | `Counter` | {addr="", alias=""} | the value of `instantaneous_input_repl_kbps` | the network's read rate per second in KB/sec for replication purposes | +| instantaneous_output_repl_kbps | `Counter` | {addr="", alias=""} | the value of `instantaneous_output_repl_kbps` | the network's write rate per second in KB/sec for replication purposes | + ### Pika Command Execution Time ### Rocksdb Metrics @@ -176,6 +189,7 @@ See [here](./grafana/grafana_prometheus_pika_dashboard.json) Screenshots: ![Overview](./contrib/overview.png) + ![Overview](./contrib/base_info.png) ![BaseInfo](./contrib/base_info.png) @@ -186,4 +200,6 @@ Screenshots: ![KeysMetrics](./contrib/keys_metrics.png) +![Network](./contrib/network.png) + ![RocksDB](./contrib/rocksdb.png) diff --git a/tools/pika_exporter/contrib/network.png b/tools/pika_exporter/contrib/network.png new file mode 100644 index 0000000000..26519247c1 Binary files /dev/null and b/tools/pika_exporter/contrib/network.png differ diff --git a/tools/pika_exporter/contrib/rocksdb.png b/tools/pika_exporter/contrib/rocksdb.png index af1daf2cb8..40ef6ccba5 100644 Binary files a/tools/pika_exporter/contrib/rocksdb.png and b/tools/pika_exporter/contrib/rocksdb.png differ diff --git a/tools/pika_exporter/exporter/metrics/stats.go b/tools/pika_exporter/exporter/metrics/stats.go index 99efd11101..dd0816fa84 100644 --- a/tools/pika_exporter/exporter/metrics/stats.go +++ b/tools/pika_exporter/exporter/metrics/stats.go @@ -37,6 +37,86 @@ var collectStatsMetrics = map[string]MetricConfig{ ValueName: "total_commands_processed", }, }, + "total_net_input_bytes": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "total_net_input_bytes", + Help: "the total number of bytes read from the network", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "total_net_input_bytes", + }, + }, + "total_net_output_bytes": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "total_net_output_bytes", + Help: "the total number of bytes written to the network", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "total_net_output_bytes", + }, + }, + "total_net_repl_input_bytes": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "total_net_repl_input_bytes", + Help: "the total number of bytes read from the network for replication purposes", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "total_net_repl_input_bytes", + }, + }, + "total_net_repl_output_bytes": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "total_net_repl_output_bytes", + Help: "the total number of bytes written to the network for replication purposes", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "total_net_repl_output_bytes", + }, + }, + "instantaneous_input_kbps": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "instantaneous_input_kbps", + Help: "the network's read rate per second in KB/sec", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "instantaneous_input_kbps", + }, + }, + "instantaneous_output_kbps": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "instantaneous_output_kbps", + Help: "the network's write rate per second in KB/sec", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "instantaneous_output_kbps", + }, + }, + "instantaneous_input_repl_kbps": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "instantaneous_input_repl_kbps", + Help: "the network's read rate per second in KB/sec for replication purposes", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "instantaneous_input_repl_kbps", + }, + }, + "instantaneous_output_repl_kbps": { + Parser: &normalParser{}, + MetricMeta: &MetaData{ + Name: "instantaneous_output_repl_kbps", + Help: "the network's write rate per second in KB/sec for replication purposes", + Type: metricTypeCounter, + Labels: []string{LabelNameAddr, LabelNameAlias}, + ValueName: "instantaneous_output_repl_kbps", + }, + }, "is_bgsaving": { Parser: ®exParser{ name: "is_bgsaving", diff --git a/tools/pika_exporter/exporter/test/test.go b/tools/pika_exporter/exporter/test/test.go index a6b98462cf..463090abdb 100644 --- a/tools/pika_exporter/exporter/test/test.go +++ b/tools/pika_exporter/exporter/test/test.go @@ -4,10 +4,6 @@ var InfoCases = []struct { Name string Info string }{ - {"v3.4.2_master", V342MasterInfo}, - {"v3.4.2_slave", V342SlaveInfo}, - {"v3.4.2_pika", V342PikaInfo}, - // {"v2.2.3.3_master", V2233MasterInfo}, // {"v2.2.3.3_slave", V2233SlaveInfo}, @@ -31,6 +27,14 @@ var InfoCases = []struct { // {"v3.2.7_slave", V327SlaveInfo}, - // {"v3.3.5_master", V335MasterInfo}, - // {"v3.3.5_slave", V335SlaveInfo}, + {"v3.3.5_master", V335MasterInfo}, + {"v3.3.5_slave", V335SlaveInfo}, + + {"v3.4.2_master", V342MasterInfo}, + {"v3.4.2_slave", V342SlaveInfo}, + {"v3.4.2_pika", V342PikaInfo}, + + {"v3.5.0_master", V350MasterInfo}, + {"v3.5.0_slave", V350SlaveInfo}, + {"v3.5.0_pika", V350PikaInfo}, } diff --git a/tools/pika_exporter/exporter/test/v3.4.2_master.go b/tools/pika_exporter/exporter/test/v3.4.2_master.go index d6a6c8a1b4..7be9ddca7d 100644 --- a/tools/pika_exporter/exporter/test/v3.4.2_master.go +++ b/tools/pika_exporter/exporter/test/v3.4.2_master.go @@ -1,7 +1,7 @@ package test var V342MasterInfo = `# Server -pika_version:3.4.0 +pika_version:3.4.2 pika_git_sha:bd30511bf82038c2c6531b3d84872c9825fe836a pika_build_compile_date: Sep 8 2021 os:Linux 3.10.0-693.el7.x86_64 x86_64 diff --git a/tools/pika_exporter/exporter/test/v3.4.2_pika.go b/tools/pika_exporter/exporter/test/v3.4.2_pika.go index 632af76f1c..072cd2de88 100644 --- a/tools/pika_exporter/exporter/test/v3.4.2_pika.go +++ b/tools/pika_exporter/exporter/test/v3.4.2_pika.go @@ -59,137 +59,4 @@ db0 Strings_keys=0, expires=0, invalid_keys=0 db0 Hashes_keys=0, expires=0, invalid_keys=0 db0 Lists_keys=0, expires=0, invalid_keys=0 db0 Zsets_keys=0, expires=0, invalid_keys=0 -db0 Sets_keys=0, expires=0, invalid_keys=0 - - -# RocksDB -#string_ RocksDB -string_num_immutable_mem_table:0 -string_num_immutable_mem_table_flushed:0 -string_mem_table_flush_pending:0 -string_num_running_flushes:0 -string_compaction_pending:0 -string_num_running_compactions:0 -string_background_errors:0 -string_cur_size_active_mem_table:2048 -string_cur_size_all_mem_tables:2048 -string_size_all_mem_tables:2048 -string_estimate_num_keys:12 -string_estimate_table_readers_mem:1892 -string_num_snapshots:0 -string_num_live_versions:1 -string_current_super_version_number:1 -string_estimate_live_data_size:1408 -string_total_sst_files_size:1408 -string_live_sst_files_size:1408 -string_block_cache_capacity:8388608 -string_block_cache_usage:87 -string_block_cache_pinned_usage:87 -string_num_blob_files:0 -string_blob_stats:0 -string_total_blob_file_size:0 -string_live_blob_file_size:0 -#hash_ RocksDB -hash_num_immutable_mem_table:0 -hash_num_immutable_mem_table_flushed:0 -hash_mem_table_flush_pending:0 -hash_num_running_flushes:0 -hash_compaction_pending:0 -hash_num_running_compactions:0 -hash_background_errors:0 -hash_cur_size_active_mem_table:4096 -hash_cur_size_all_mem_tables:4096 -hash_size_all_mem_tables:4096 -hash_estimate_num_keys:0 -hash_estimate_table_readers_mem:0 -hash_num_snapshots:0 -hash_num_live_versions:2 -hash_current_super_version_number:2 -hash_estimate_live_data_size:0 -hash_total_sst_files_size:0 -hash_live_sst_files_size:0 -hash_block_cache_capacity:16777216 -hash_block_cache_usage:174 -hash_block_cache_pinned_usage:174 -hash_num_blob_files:0 -hash_blob_stats:0 -hash_total_blob_file_size:0 -hash_live_blob_file_size:0 -#list_ RocksDB -list_num_immutable_mem_table:0 -list_num_immutable_mem_table_flushed:0 -list_mem_table_flush_pending:0 -list_num_running_flushes:0 -list_compaction_pending:0 -list_num_running_compactions:0 -list_background_errors:0 -list_cur_size_active_mem_table:4096 -list_cur_size_all_mem_tables:4096 -list_size_all_mem_tables:4096 -list_estimate_num_keys:10 -list_estimate_table_readers_mem:3798 -list_num_snapshots:0 -list_num_live_versions:2 -list_current_super_version_number:2 -list_estimate_live_data_size:2571 -list_total_sst_files_size:2571 -list_live_sst_files_size:2571 -list_block_cache_capacity:16777216 -list_block_cache_usage:174 -list_block_cache_pinned_usage:174 -list_num_blob_files:0 -list_blob_stats:0 -list_total_blob_file_size:0 -list_live_blob_file_size:0 -#set_ RocksDB -set_num_immutable_mem_table:0 -set_num_immutable_mem_table_flushed:0 -set_mem_table_flush_pending:0 -set_num_running_flushes:0 -set_compaction_pending:0 -set_num_running_compactions:0 -set_background_errors:0 -set_cur_size_active_mem_table:4096 -set_cur_size_all_mem_tables:4096 -set_size_all_mem_tables:4096 -set_estimate_num_keys:0 -set_estimate_table_readers_mem:0 -set_num_snapshots:0 -set_num_live_versions:2 -set_current_super_version_number:2 -set_estimate_live_data_size:0 -set_total_sst_files_size:0 -set_live_sst_files_size:0 -set_block_cache_capacity:16777216 -set_block_cache_usage:174 -set_block_cache_pinned_usage:174 -set_num_blob_files:0 -set_blob_stats:0 -set_total_blob_file_size:0 -set_live_blob_file_size:0 -#zset_ RocksDB -zset_num_immutable_mem_table:0 -zset_num_immutable_mem_table_flushed:0 -zset_mem_table_flush_pending:0 -zset_num_running_flushes:0 -zset_compaction_pending:0 -zset_num_running_compactions:0 -zset_background_errors:0 -zset_cur_size_active_mem_table:6144 -zset_cur_size_all_mem_tables:6144 -zset_size_all_mem_tables:6144 -zset_estimate_num_keys:0 -zset_estimate_table_readers_mem:0 -zset_num_snapshots:0 -zset_num_live_versions:3 -zset_current_super_version_number:3 -zset_estimate_live_data_size:0 -zset_total_sst_files_size:0 -zset_live_sst_files_size:0 -zset_block_cache_capacity:25165824 -zset_block_cache_usage:261 -zset_block_cache_pinned_usage:261 -zset_num_blob_files:0 -zset_blob_stats:0 -zset_total_blob_file_size:0 -zset_live_blob_file_size:0` +db0 Sets_keys=0, expires=0, invalid_keys=0` diff --git a/tools/pika_exporter/exporter/test/v3.4.2_slave.go b/tools/pika_exporter/exporter/test/v3.4.2_slave.go index dd51a06dfd..d480cbf755 100644 --- a/tools/pika_exporter/exporter/test/v3.4.2_slave.go +++ b/tools/pika_exporter/exporter/test/v3.4.2_slave.go @@ -1,7 +1,7 @@ package test var V342SlaveInfo = `# Server -pika_version:3.4.0 +pika_version:3.4.2 pika_git_sha:bd30511bf82038c2c6531b3d84872c9825fe836a pika_build_compile_date: Sep 8 2021 os:Linux 3.10.0-693.el7.x86_64 x86_64 diff --git a/tools/pika_exporter/exporter/test/v3.5.0_master.go b/tools/pika_exporter/exporter/test/v3.5.0_master.go new file mode 100644 index 0000000000..63655041fe --- /dev/null +++ b/tools/pika_exporter/exporter/test/v3.5.0_master.go @@ -0,0 +1,218 @@ +package test + +var V350MasterInfo = `# Server +pika_version:3.5.0 +pika_git_sha:bd30511bf82038c2c6531b3d84872c9825fe836a +pika_build_compile_date: Sep 8 2021 +os:Linux 3.10.0-693.el7.x86_64 x86_64 +arch_bits:64 +process_id:12549 +tcp_port:9221 +thread_num:4 +sync_thread_num:6 +uptime_in_seconds:8056286 +uptime_in_days:94 +config_file:/app/pika/pika-9221.conf +server_id:1 + +# Data +db_size:41971885221 +db_size_human:40027M +log_size:5150573069 +log_size_human:4911M +compression:snappy +used_memory:1445394489 +used_memory_human:1378M +db_memtable_usage:42493512 +db_tablereader_usage:1402900977 +db_fatal:0 +db_fatal_msg:NULL + +# Clients +connected_clients:7 + +# Stats +total_connections_received:496042 +instantaneous_ops_per_sec:106 +total_commands_processed:11590807682 +total_net_input_bytes:544 +total_net_output_bytes:10017 +total_net_repl_input_bytes:12412 +total_net_repl_output_bytes:24458 +instantaneous_input_kbps:10.4512 +instantaneous_output_kbps:124.458 +instantaneous_input_repl_kbps:24.124 +instantaneous_output_repl_kbps:21.34 +is_bgsaving:No +is_scaning_keyspace:No +is_compact:No +compact_cron: +compact_interval: +is_slots_reloading:No, , 0 +is_slots_cleaningup:No, , 0 +is_slots_migrating:No, , 0 + +# Command_Exec_Count +INFO:464159 +DEL:27429572 +PING:2033416 +EXPIRE:3717952643 +GET:3807086732 +SET:4035576044 +HGETALL:1 +CONFIG:132516 +SLOWLOG:132599 + +# CPU +used_cpu_sys:226152.34 +used_cpu_user:842762.56 +used_cpu_sys_children:0.00 +used_cpu_user_children:0.00 + +# Replication(MASTER) +role:master +connected_slaves:1 +slave0:ip=192.168.201.82,port=9221,conn_fd=88,lag=(db0:0) +db0 binlog_offset=17794 8127680,safety_purge=write2file17784 +consensus last_log=11111111111 + +# Keyspace +# Time:2023-04-14 01:16:01 +# Duration: 41s +db0 Strings_keys=40523556, expires=33332598, invalid_keys=0 +db0 Hashes_keys=0, expires=0, invalid_keys=0 +db0 Lists_keys=0, expires=0, invalid_keys=0 +db0 Zsets_keys=0, expires=0, invalid_keys=0 +db0 Sets_keys=0, expires=0, invalid_keys=0 + +# RocksDB +#string_ RocksDB +string_num_immutable_mem_table:0 +string_num_immutable_mem_table_flushed:0 +string_mem_table_flush_pending:0 +string_num_running_flushes:0 +string_compaction_pending:0 +string_num_running_compactions:0 +string_background_errors:0 +string_cur_size_active_mem_table:2048 +string_cur_size_all_mem_tables:2048 +string_size_all_mem_tables:2048 +string_estimate_num_keys:12 +string_estimate_table_readers_mem:1892 +string_num_snapshots:0 +string_num_live_versions:1 +string_current_super_version_number:1 +string_estimate_live_data_size:1408 +string_total_sst_files_size:1408 +string_live_sst_files_size:1408 +string_block_cache_capacity:8388608 +string_block_cache_usage:87 +string_block_cache_pinned_usage:87 +string_num_blob_files:0 +string_blob_stats:0 +string_total_blob_file_size:0 +string_live_blob_file_size:0 +#hash_ RocksDB +hash_num_immutable_mem_table:0 +hash_num_immutable_mem_table_flushed:0 +hash_mem_table_flush_pending:0 +hash_num_running_flushes:0 +hash_compaction_pending:0 +hash_num_running_compactions:0 +hash_background_errors:0 +hash_cur_size_active_mem_table:4096 +hash_cur_size_all_mem_tables:4096 +hash_size_all_mem_tables:4096 +hash_estimate_num_keys:0 +hash_estimate_table_readers_mem:0 +hash_num_snapshots:0 +hash_num_live_versions:2 +hash_current_super_version_number:2 +hash_estimate_live_data_size:0 +hash_total_sst_files_size:0 +hash_live_sst_files_size:0 +hash_block_cache_capacity:16777216 +hash_block_cache_usage:174 +hash_block_cache_pinned_usage:174 +hash_num_blob_files:0 +hash_blob_stats:0 +hash_total_blob_file_size:0 +hash_live_blob_file_size:0 +#list_ RocksDB +list_num_immutable_mem_table:0 +list_num_immutable_mem_table_flushed:0 +list_mem_table_flush_pending:0 +list_num_running_flushes:0 +list_compaction_pending:0 +list_num_running_compactions:0 +list_background_errors:0 +list_cur_size_active_mem_table:4096 +list_cur_size_all_mem_tables:4096 +list_size_all_mem_tables:4096 +list_estimate_num_keys:10 +list_estimate_table_readers_mem:3798 +list_num_snapshots:0 +list_num_live_versions:2 +list_current_super_version_number:2 +list_estimate_live_data_size:2571 +list_total_sst_files_size:2571 +list_live_sst_files_size:2571 +list_block_cache_capacity:16777216 +list_block_cache_usage:174 +list_block_cache_pinned_usage:174 +list_num_blob_files:0 +list_blob_stats:0 +list_total_blob_file_size:0 +list_live_blob_file_size:0 +#set_ RocksDB +set_num_immutable_mem_table:0 +set_num_immutable_mem_table_flushed:0 +set_mem_table_flush_pending:0 +set_num_running_flushes:0 +set_compaction_pending:0 +set_num_running_compactions:0 +set_background_errors:0 +set_cur_size_active_mem_table:4096 +set_cur_size_all_mem_tables:4096 +set_size_all_mem_tables:4096 +set_estimate_num_keys:0 +set_estimate_table_readers_mem:0 +set_num_snapshots:0 +set_num_live_versions:2 +set_current_super_version_number:2 +set_estimate_live_data_size:0 +set_total_sst_files_size:0 +set_live_sst_files_size:0 +set_block_cache_capacity:16777216 +set_block_cache_usage:174 +set_block_cache_pinned_usage:174 +set_num_blob_files:0 +set_blob_stats:0 +set_total_blob_file_size:0 +set_live_blob_file_size:0 +#zset_ RocksDB +zset_num_immutable_mem_table:0 +zset_num_immutable_mem_table_flushed:0 +zset_mem_table_flush_pending:0 +zset_num_running_flushes:0 +zset_compaction_pending:0 +zset_num_running_compactions:0 +zset_background_errors:0 +zset_cur_size_active_mem_table:6144 +zset_cur_size_all_mem_tables:6144 +zset_size_all_mem_tables:6144 +zset_estimate_num_keys:0 +zset_estimate_table_readers_mem:0 +zset_num_snapshots:0 +zset_num_live_versions:3 +zset_current_super_version_number:3 +zset_estimate_live_data_size:0 +zset_total_sst_files_size:0 +zset_live_sst_files_size:0 +zset_block_cache_capacity:25165824 +zset_block_cache_usage:261 +zset_block_cache_pinned_usage:261 +zset_num_blob_files:0 +zset_blob_stats:0 +zset_total_blob_file_size:0 +zset_live_blob_file_size:0` diff --git a/tools/pika_exporter/exporter/test/v3.5.0_pika.go b/tools/pika_exporter/exporter/test/v3.5.0_pika.go new file mode 100644 index 0000000000..19e141deec --- /dev/null +++ b/tools/pika_exporter/exporter/test/v3.5.0_pika.go @@ -0,0 +1,205 @@ +package test + +var V350PikaInfo = `# Server +pika_version:3.5.0 +pika_git_sha:da5edc98afaf53973c847460a42d7f0604add8cb +pika_build_compile_date: pika_build_date:2023-05-23 03:48:51 +os:Darwin 22.1.0 arm64 +arch_bits:64 +process_id:74663 +tcp_port:9221 +thread_num:1 +sync_thread_num:6 +uptime_in_seconds:3007 +uptime_in_days:1 +config_file:./conf/pika.conf +server_id:1 + +# Data +db_size:2621706 +db_size_human:2M +log_size:7520014 +log_size_human:7M +compression:snappy +used_memory:26170 +used_memory_human:0M +db_memtable_usage:20480 +db_tablereader_usage:5690 +db_fatal:0 +db_fatal_msg:nullptr + +# Clients +connected_clients:1 + +# Stats +total_connections_received:82 +instantaneous_ops_per_sec:0 +total_commands_processed:243 +total_net_input_bytes:544 +total_net_output_bytes:10017 +total_net_repl_input_bytes:0 +total_net_repl_output_bytes:0 +instantaneous_input_kbps:10.4512 +instantaneous_output_kbps:4.1472 +instantaneous_input_repl_kbps:0 +instantaneous_output_repl_kbps:0 +is_bgsaving:No +is_scaning_keyspace:No +is_compact:No +compact_cron: +compact_interval: +is_slots_reloading:No, , 0 +is_slots_cleaningup:No, , 0 +is_slots_migrating:No, , 0 + +# CPU +used_cpu_sys:1.56 +used_cpu_user:0.88 +used_cpu_sys_children:0.01 +used_cpu_user_children:0.00 + +# Replication(MASTER) +role:master +connected_slaves:0 +db0 binlog_offset=0 1355,safety_purge=none + +# Keyspace +# Use "info keyspace" 1 do async statistics +# Time:0 +db0 Strings_keys=0, expires=0, invalid_keys=0 +db0 Hashes_keys=0, expires=0, invalid_keys=0 +db0 Lists_keys=0, expires=0, invalid_keys=0 +db0 Zsets_keys=0, expires=0, invalid_keys=0 +db0 Sets_keys=0, expires=0, invalid_keys=0 + +# RocksDB +#string_ RocksDB +string_num_immutable_mem_table:0 +string_num_immutable_mem_table_flushed:0 +string_mem_table_flush_pending:0 +string_num_running_flushes:0 +string_compaction_pending:0 +string_num_running_compactions:0 +string_background_errors:0 +string_cur_size_active_mem_table:2048 +string_cur_size_all_mem_tables:2048 +string_size_all_mem_tables:2048 +string_estimate_num_keys:12 +string_estimate_table_readers_mem:1892 +string_num_snapshots:0 +string_num_live_versions:1 +string_current_super_version_number:1 +string_estimate_live_data_size:1408 +string_total_sst_files_size:1408 +string_live_sst_files_size:1408 +string_block_cache_capacity:8388608 +string_block_cache_usage:87 +string_block_cache_pinned_usage:87 +string_num_blob_files:0 +string_blob_stats:0 +string_total_blob_file_size:0 +string_live_blob_file_size:0 +#hash_ RocksDB +hash_num_immutable_mem_table:0 +hash_num_immutable_mem_table_flushed:0 +hash_mem_table_flush_pending:0 +hash_num_running_flushes:0 +hash_compaction_pending:0 +hash_num_running_compactions:0 +hash_background_errors:0 +hash_cur_size_active_mem_table:4096 +hash_cur_size_all_mem_tables:4096 +hash_size_all_mem_tables:4096 +hash_estimate_num_keys:0 +hash_estimate_table_readers_mem:0 +hash_num_snapshots:0 +hash_num_live_versions:2 +hash_current_super_version_number:2 +hash_estimate_live_data_size:0 +hash_total_sst_files_size:0 +hash_live_sst_files_size:0 +hash_block_cache_capacity:16777216 +hash_block_cache_usage:174 +hash_block_cache_pinned_usage:174 +hash_num_blob_files:0 +hash_blob_stats:0 +hash_total_blob_file_size:0 +hash_live_blob_file_size:0 +#list_ RocksDB +list_num_immutable_mem_table:0 +list_num_immutable_mem_table_flushed:0 +list_mem_table_flush_pending:0 +list_num_running_flushes:0 +list_compaction_pending:0 +list_num_running_compactions:0 +list_background_errors:0 +list_cur_size_active_mem_table:4096 +list_cur_size_all_mem_tables:4096 +list_size_all_mem_tables:4096 +list_estimate_num_keys:10 +list_estimate_table_readers_mem:3798 +list_num_snapshots:0 +list_num_live_versions:2 +list_current_super_version_number:2 +list_estimate_live_data_size:2571 +list_total_sst_files_size:2571 +list_live_sst_files_size:2571 +list_block_cache_capacity:16777216 +list_block_cache_usage:174 +list_block_cache_pinned_usage:174 +list_num_blob_files:0 +list_blob_stats:0 +list_total_blob_file_size:0 +list_live_blob_file_size:0 +#set_ RocksDB +set_num_immutable_mem_table:0 +set_num_immutable_mem_table_flushed:0 +set_mem_table_flush_pending:0 +set_num_running_flushes:0 +set_compaction_pending:0 +set_num_running_compactions:0 +set_background_errors:0 +set_cur_size_active_mem_table:4096 +set_cur_size_all_mem_tables:4096 +set_size_all_mem_tables:4096 +set_estimate_num_keys:0 +set_estimate_table_readers_mem:0 +set_num_snapshots:0 +set_num_live_versions:2 +set_current_super_version_number:2 +set_estimate_live_data_size:0 +set_total_sst_files_size:0 +set_live_sst_files_size:0 +set_block_cache_capacity:16777216 +set_block_cache_usage:174 +set_block_cache_pinned_usage:174 +set_num_blob_files:0 +set_blob_stats:0 +set_total_blob_file_size:0 +set_live_blob_file_size:0 +#zset_ RocksDB +zset_num_immutable_mem_table:0 +zset_num_immutable_mem_table_flushed:0 +zset_mem_table_flush_pending:0 +zset_num_running_flushes:0 +zset_compaction_pending:0 +zset_num_running_compactions:0 +zset_background_errors:0 +zset_cur_size_active_mem_table:6144 +zset_cur_size_all_mem_tables:6144 +zset_size_all_mem_tables:6144 +zset_estimate_num_keys:0 +zset_estimate_table_readers_mem:0 +zset_num_snapshots:0 +zset_num_live_versions:3 +zset_current_super_version_number:3 +zset_estimate_live_data_size:0 +zset_total_sst_files_size:0 +zset_live_sst_files_size:0 +zset_block_cache_capacity:25165824 +zset_block_cache_usage:261 +zset_block_cache_pinned_usage:261 +zset_num_blob_files:0 +zset_blob_stats:0 +zset_total_blob_file_size:0 +zset_live_blob_file_size:0` diff --git a/tools/pika_exporter/exporter/test/v3.5.0_slave.go b/tools/pika_exporter/exporter/test/v3.5.0_slave.go new file mode 100644 index 0000000000..ffb6658a91 --- /dev/null +++ b/tools/pika_exporter/exporter/test/v3.5.0_slave.go @@ -0,0 +1,220 @@ +package test + +var V350SlaveInfo = `# Server +pika_version:3.5.0 +pika_git_sha:bd30511bf82038c2c6531b3d84872c9825fe836a +pika_build_compile_date: Sep 8 2021 +os:Linux 3.10.0-693.el7.x86_64 x86_64 +arch_bits:64 +process_id:138825 +tcp_port:9221 +thread_num:4 +sync_thread_num:6 +uptime_in_seconds:8056021 +uptime_in_days:94 +config_file:/app/pika/pika.conf +server_id:1 + +# Data +db_size:41977897912 +db_size_human:40033M +log_size:5150607654 +log_size_human:4912M +compression:snappy +used_memory:1421201619 +used_memory_human:1355M +db_memtable_usage:17944432 +db_tablereader_usage:1403257187 +db_fatal:0 +db_fatal_msg:NULL + +# Clients +connected_clients:1 + +# Stats +total_connections_received:82 +instantaneous_ops_per_sec:0 +total_commands_processed:243 +total_net_input_bytes:544 +total_net_output_bytes:10017 +total_net_repl_input_bytes:21122 +total_net_repl_output_bytes:21441 +instantaneous_input_kbps:10.4512 +instantaneous_output_kbps:24.3902 +instantaneous_input_repl_kbps:1.3902 +instantaneous_output_repl_kbps:0.12439 +is_bgsaving:No +is_scaning_keyspace:No +is_compact:No +compact_cron: +compact_interval: +is_slots_reloading:No, , 0 +is_slots_cleaningup:No, , 0 +is_slots_migrating:No, , 0 + +# Command_Exec_Count +EXPIREAT:3717952643 +INFO:464149 +DEL:27429572 +SLAVEOF:1 +PING:132598 +SET:4035576044 +CONFIG:132514 +COMPACT:1 +SLOWLOG:132598 + +# CPU +used_cpu_sys:120451.99 +used_cpu_user:644919.06 +used_cpu_sys_children:0.00 +used_cpu_user_children:0.00 + +# Replication(SLAVE) +role:slave +master_host:192.168.201.81 +master_port:9221 +master_link_status:up +slave_priority:100 +slave_read_only:1 +db0 binlog_offset=17794 8127680,safety_purge=write2file17784 + +# Keyspace +# Time:2023-04-14 01:16:01 +# Duration: 37s +db0 Strings_keys=40523556, expires=33332458, invalid_keys=0 +db0 Hashes_keys=0, expires=0, invalid_keys=0 +db0 Lists_keys=0, expires=0, invalid_keys=0 +db0 Zsets_keys=0, expires=0, invalid_keys=0 +db0 Sets_keys=0, expires=0, invalid_keys=0 + +# RocksDB +#string_ RocksDB +string_num_immutable_mem_table:0 +string_num_immutable_mem_table_flushed:0 +string_mem_table_flush_pending:0 +string_num_running_flushes:0 +string_compaction_pending:0 +string_num_running_compactions:0 +string_background_errors:0 +string_cur_size_active_mem_table:2048 +string_cur_size_all_mem_tables:2048 +string_size_all_mem_tables:2048 +string_estimate_num_keys:12 +string_estimate_table_readers_mem:1892 +string_num_snapshots:0 +string_num_live_versions:1 +string_current_super_version_number:1 +string_estimate_live_data_size:1408 +string_total_sst_files_size:1408 +string_live_sst_files_size:1408 +string_block_cache_capacity:8388608 +string_block_cache_usage:87 +string_block_cache_pinned_usage:87 +string_num_blob_files:0 +string_blob_stats:0 +string_total_blob_file_size:0 +string_live_blob_file_size:0 +#hash_ RocksDB +hash_num_immutable_mem_table:0 +hash_num_immutable_mem_table_flushed:0 +hash_mem_table_flush_pending:0 +hash_num_running_flushes:0 +hash_compaction_pending:0 +hash_num_running_compactions:0 +hash_background_errors:0 +hash_cur_size_active_mem_table:4096 +hash_cur_size_all_mem_tables:4096 +hash_size_all_mem_tables:4096 +hash_estimate_num_keys:0 +hash_estimate_table_readers_mem:0 +hash_num_snapshots:0 +hash_num_live_versions:2 +hash_current_super_version_number:2 +hash_estimate_live_data_size:0 +hash_total_sst_files_size:0 +hash_live_sst_files_size:0 +hash_block_cache_capacity:16777216 +hash_block_cache_usage:174 +hash_block_cache_pinned_usage:174 +hash_num_blob_files:0 +hash_blob_stats:0 +hash_total_blob_file_size:0 +hash_live_blob_file_size:0 +#list_ RocksDB +list_num_immutable_mem_table:0 +list_num_immutable_mem_table_flushed:0 +list_mem_table_flush_pending:0 +list_num_running_flushes:0 +list_compaction_pending:0 +list_num_running_compactions:0 +list_background_errors:0 +list_cur_size_active_mem_table:4096 +list_cur_size_all_mem_tables:4096 +list_size_all_mem_tables:4096 +list_estimate_num_keys:10 +list_estimate_table_readers_mem:3798 +list_num_snapshots:0 +list_num_live_versions:2 +list_current_super_version_number:2 +list_estimate_live_data_size:2571 +list_total_sst_files_size:2571 +list_live_sst_files_size:2571 +list_block_cache_capacity:16777216 +list_block_cache_usage:174 +list_block_cache_pinned_usage:174 +list_num_blob_files:0 +list_blob_stats:0 +list_total_blob_file_size:0 +list_live_blob_file_size:0 +#set_ RocksDB +set_num_immutable_mem_table:0 +set_num_immutable_mem_table_flushed:0 +set_mem_table_flush_pending:0 +set_num_running_flushes:0 +set_compaction_pending:0 +set_num_running_compactions:0 +set_background_errors:0 +set_cur_size_active_mem_table:4096 +set_cur_size_all_mem_tables:4096 +set_size_all_mem_tables:4096 +set_estimate_num_keys:0 +set_estimate_table_readers_mem:0 +set_num_snapshots:0 +set_num_live_versions:2 +set_current_super_version_number:2 +set_estimate_live_data_size:0 +set_total_sst_files_size:0 +set_live_sst_files_size:0 +set_block_cache_capacity:16777216 +set_block_cache_usage:174 +set_block_cache_pinned_usage:174 +set_num_blob_files:0 +set_blob_stats:0 +set_total_blob_file_size:0 +set_live_blob_file_size:0 +#zset_ RocksDB +zset_num_immutable_mem_table:0 +zset_num_immutable_mem_table_flushed:0 +zset_mem_table_flush_pending:0 +zset_num_running_flushes:0 +zset_compaction_pending:0 +zset_num_running_compactions:0 +zset_background_errors:0 +zset_cur_size_active_mem_table:6144 +zset_cur_size_all_mem_tables:6144 +zset_size_all_mem_tables:6144 +zset_estimate_num_keys:0 +zset_estimate_table_readers_mem:0 +zset_num_snapshots:0 +zset_num_live_versions:3 +zset_current_super_version_number:3 +zset_estimate_live_data_size:0 +zset_total_sst_files_size:0 +zset_live_sst_files_size:0 +zset_block_cache_capacity:25165824 +zset_block_cache_usage:261 +zset_block_cache_pinned_usage:261 +zset_num_blob_files:0 +zset_blob_stats:0 +zset_total_blob_file_size:0 +zset_live_blob_file_size:0` diff --git a/tools/pika_exporter/grafana/grafana_prometheus_pika_dashboard.json b/tools/pika_exporter/grafana/grafana_prometheus_pika_dashboard.json index 7ff1d4c62f..40cfa357a5 100644 --- a/tools/pika_exporter/grafana/grafana_prometheus_pika_dashboard.json +++ b/tools/pika_exporter/grafana/grafana_prometheus_pika_dashboard.json @@ -1,8 +1,8 @@ { "__inputs": [ { - "name": "DS_MIXFICSOL", - "label": "Mixficsol", + "name": "DS_PROMETHEUS", + "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", @@ -15,7 +15,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "10.0.1" + "version": "9.5.2" }, { "type": "panel", @@ -66,7 +66,7 @@ "liveNow": false, "panels": [ { - "collapsed": true, + "collapsed": false, "datasource": { "type": "prometheus", "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" @@ -78,415 +78,6 @@ "y": 0 }, "id": 12, - "panels": [ - { - "columns": [], - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 20 - }, - "id": 8, - "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "date" - }, - { - "alias": "pika server addr", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "addr", - "preserveFormat": false, - "sanitize": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "pika server alias", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "alias", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "arch bits", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "arch_bits", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "collect instance", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "instance", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "os", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "os", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "pika version", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "pika_version", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "pika git sha", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "pika_git_sha", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "pika build date", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "pika_build_compile_date", - "thresholds": [], - "type": "date", - "unit": "short" - }, - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_build_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\"}", - "format": "table", - "instant": true, - "intervalFactor": 1, - "refId": "A" - } - ], - "title": "Pika Build Info List", - "transform": "table", - "type": "table-old" - }, - { - "columns": [], - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 25 - }, - "id": 10, - "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "date" - }, - { - "alias": "addr", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "addr", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "alias", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "alias", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "config file", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "config_file", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "collect instance", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "instance", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "process id", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "process_id", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "role", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "role", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "server id", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "server_id", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "tcp port", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "tcp_port", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_server_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\"}", - "format": "table", - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "title": "Pika Server Info List", - "transform": "table", - "type": "table-old" - } - ], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" - }, - "refId": "A" - } - ], - "title": "Overview", - "type": "row" - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 14, "panels": [], "targets": [ { @@ -497,23 +88,23 @@ "refId": "A" } ], - "title": "Base Info", + "title": "Overview", "type": "row" }, { "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fontSize": "100%", "gridPos": { - "h": 3, + "h": 5, "w": 24, "x": 0, - "y": 2 + "y": 1 }, - "id": 32, + "id": 8, "links": [], "scroll": true, "showHeader": true, @@ -680,16 +271,16 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_build_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_build_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\"}", "format": "table", "instant": true, "intervalFactor": 1, "refId": "A" } ], - "title": "Build Info", + "title": "Pika Build Info List", "transform": "table", "type": "table-old" }, @@ -697,16 +288,16 @@ "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fontSize": "100%", "gridPos": { - "h": 3, + "h": 5, "w": 24, "x": 0, - "y": 5 + "y": 6 }, - "id": 31, + "id": 10, "links": [], "scroll": true, "showHeader": true, @@ -869,479 +460,1454 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_server_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_server_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\"}", "format": "table", "instant": true, "intervalFactor": 2, "refId": "A" } ], - "title": "Server Info", + "title": "Pika Server Info List", "transform": "table", "type": "table-old" }, { - "clusterName": "$serverid", - "colorMode": "Disabled", - "colors": { - "crit": "rgba(245, 54, 54, 0.9)", - "disable": "rgba(128, 128, 128, 0.9)", - "ok": "rgba(50, 128, 45, 0.9)", - "warn": "rgba(237, 129, 40, 0.9)" - }, - "cornerRadius": 0, + "collapsed": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" }, - "displayName": "1", - "flipCard": false, - "flipTime": 5, - "fontFormat": "Regular", "gridPos": { - "h": 4, - "w": 3, + "h": 1, + "w": 24, "x": 0, - "y": 8 - }, - "id": 81, - "isAutoScrollOnOverflow": false, - "isGrayOnNoData": false, - "isHideAlertsOnDisable": false, - "isIgnoreOKColors": false, - "links": [], - "title": "Server ID", - "type": "vonage-status-panel" - }, - { - "clusterName": "$role", - "colorMode": "Panel", - "colors": { - "crit": "rgba(245, 54, 54, 0.9)", - "disable": "rgba(128, 128, 128, 0.9)", - "ok": "rgba(50, 128, 45, 0.9)", - "warn": "rgba(237, 129, 40, 0.9)" - }, - "cornerRadius": 0, - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "displayName": "double_master", - "flipCard": false, - "flipTime": 5, - "fontFormat": "Regular", - "gridPos": { - "h": 4, - "w": 4, - "x": 3, - "y": 8 - }, - "id": 79, - "isAutoScrollOnOverflow": false, - "isGrayOnNoData": false, - "isHideAlertsOnDisable": false, - "isIgnoreOKColors": false, - "links": [], - "title": "Role", - "type": "vonage-status-panel" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 7, - "y": 8 - }, - "id": 4, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + "y": 11 }, - "pluginVersion": "10.0.1", + "id": 14, + "panels": [], "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" }, - "expr": "pika_uptime_in_seconds{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "instant": true, - "intervalFactor": 2, - "legendFormat": "", "refId": "A" } ], - "title": "Uptime", - "type": "stat" + "title": "Base Info", + "type": "row" }, { + "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] + "uid": "${DS_PROMETHEUS}" }, + "fontSize": "100%", "gridPos": { - "h": 4, - "w": 3, - "x": 10, - "y": 8 - }, + "h": 3, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 32, + "links": [], + "scroll": true, + "showHeader": true, + "sort": { + "col": 1, + "desc": false + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "date" + }, + { + "alias": "pika server addr", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "addr", + "preserveFormat": false, + "sanitize": false, + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "pika server alias", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "alias", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "arch bits", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "arch_bits", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "collect instance", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "instance", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "os", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "os", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "pika version", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "pika_version", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "pika git sha", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "pika_git_sha", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "pika build date", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "pika_build_compile_date", + "thresholds": [], + "type": "date", + "unit": "short" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "/.*/", + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_build_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Build Info", + "transform": "table", + "type": "table-old" + }, + { + "columns": [], + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fontSize": "100%", + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 15 + }, + "id": 31, + "links": [], + "scroll": true, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "date" + }, + { + "alias": "addr", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "addr", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "alias", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "alias", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "config file", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "config_file", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "collect instance", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "instance", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "process id", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "process_id", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "role", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "role", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "server id", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "server_id", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "tcp port", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "tcp_port", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_server_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, + "intervalFactor": 2, + "refId": "A" + } + ], + "title": "Server Info", + "transform": "table", + "type": "table-old" + }, + { + "clusterName": "$serverid", + "colorMode": "Disabled", + "colors": { + "crit": "rgba(245, 54, 54, 0.9)", + "disable": "rgba(128, 128, 128, 0.9)", + "ok": "rgba(50, 128, 45, 0.9)", + "warn": "rgba(237, 129, 40, 0.9)" + }, + "cornerRadius": 0, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "displayName": "1", + "flipCard": false, + "flipTime": 5, + "fontFormat": "Regular", + "gridPos": { + "h": 4, + "w": 3, + "x": 0, + "y": 18 + }, + "id": 81, + "isAutoScrollOnOverflow": false, + "isGrayOnNoData": false, + "isHideAlertsOnDisable": false, + "isIgnoreOKColors": false, + "links": [], + "title": "Server ID", + "type": "vonage-status-panel" + }, + { + "clusterName": "$role", + "colorMode": "Panel", + "colors": { + "crit": "rgba(245, 54, 54, 0.9)", + "disable": "rgba(128, 128, 128, 0.9)", + "ok": "rgba(50, 128, 45, 0.9)", + "warn": "rgba(237, 129, 40, 0.9)" + }, + "cornerRadius": 0, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "displayName": "double_master", + "flipCard": false, + "flipTime": 5, + "fontFormat": "Regular", + "gridPos": { + "h": 4, + "w": 4, + "x": 3, + "y": 18 + }, + "id": 79, + "isAutoScrollOnOverflow": false, + "isGrayOnNoData": false, + "isHideAlertsOnDisable": false, + "isIgnoreOKColors": false, + "links": [], + "title": "Role", + "type": "vonage-status-panel" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 7, + "y": 18 + }, + "id": 4, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_uptime_in_seconds{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": true, + "intervalFactor": 2, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Uptime", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 10, + "y": 18 + }, "id": 16, "links": [], - "maxDataPoints": 100, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "pika_thread_num{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": true, + "intervalFactor": 2, + "refId": "A" + } + ], + "title": "Tread Num", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 13, + "y": 18 + }, + "id": 18, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_sync_thread_num{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": true, + "intervalFactor": 2, + "refId": "A" + } + ], + "title": "Sync Thread Num", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 18 + }, + "id": 45, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_total_connections_received{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": true, + "intervalFactor": 2, + "refId": "A" + } + ], + "title": "Total Connections Received", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 20, + "y": 18 + }, + "id": 46, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.5.2", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_total_commands_processed{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": true, + "intervalFactor": 2, + "refId": "A" + } + ], + "title": "Total Commands Processed", + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "decimals": 0, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 22 + }, + "hiddenSeries": false, + "id": 75, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_connected_clients{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, + "intervalFactor": 2, + "legendFormat": "connected-clients", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Connected Clients", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 0, + "format": "short", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "decimals": 2, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 22 + }, + "hiddenSeries": false, + "id": 76, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + "alertThreshold": true }, - "pluginVersion": "10.0.1", + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "editorMode": "code", - "expr": "pika_thread_num{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "(irate(pika_used_cpu_sys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m]) + irate(pika_used_cpu_user{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m])) * 100", "format": "time_series", - "instant": true, + "instant": false, "intervalFactor": 2, + "legendFormat": "cpu-usage", "refId": "A" } ], - "title": "Tread Num", - "type": "stat" + "thresholds": [], + "timeRegions": [], + "title": "CPU Usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "percent", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } }, { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + "decimals": 2, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 22 + }, + "hiddenSeries": false, + "id": 77, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "unit": "none" + "expr": "(irate(pika_used_cpu_sys_children{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m]) + irate(pika_used_cpu_user_children{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m])) * 100", + "format": "time_series", + "instant": false, + "intervalFactor": 2, + "legendFormat": "cpu-usage-children", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CPU Usage Children", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "percent", + "logBase": 1, + "min": "0", + "show": true }, - "overrides": [] + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, + "decimals": 2, + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 4, - "w": 3, - "x": 13, - "y": 8 + "h": 8, + "w": 8, + "x": 0, + "y": 30 }, - "id": 18, + "hiddenSeries": false, + "id": 20, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, "links": [], - "maxDataPoints": 100, + "nullPointMode": "null", "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + "alertThreshold": true }, - "pluginVersion": "10.0.1", + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_sync_thread_num{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_used_memory{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "instant": true, + "instant": false, "intervalFactor": 2, + "legendFormat": "used-memory", "refId": "A" } ], - "title": "Sync Thread Num", - "type": "stat" + "thresholds": [], + "timeRegions": [], + "title": "Used Memory", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } }, { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] + "uid": "${DS_PROMETHEUS}" }, + "decimals": 2, + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 8 + "h": 8, + "w": 8, + "x": 8, + "y": 30 }, - "id": 45, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, "links": [], - "maxDataPoints": 100, + "nullPointMode": "null", "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + "alertThreshold": true }, - "pluginVersion": "10.0.1", + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_total_connections_received{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_db_size{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "instant": true, + "instant": false, "intervalFactor": 2, + "legendFormat": "compression-{{compression}}", "refId": "A" } ], - "title": "Total Connections Received", - "type": "stat" + "thresholds": [], + "timeRegions": [], + "title": "DB Size", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } }, { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] + "uid": "${DS_PROMETHEUS}" }, + "decimals": 2, + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 4, - "w": 4, - "x": 20, - "y": 8 + "h": 8, + "w": 8, + "x": 16, + "y": 30 }, - "id": 46, + "hiddenSeries": false, + "id": 24, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, "links": [], - "maxDataPoints": 100, + "nullPointMode": "null", "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" + "alertThreshold": true }, - "pluginVersion": "10.0.1", + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "db-tablereader-usage", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_total_commands_processed{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_db_memtable_usage{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "instant": true, - "intervalFactor": 2, + "intervalFactor": 1, + "legendFormat": "db-memtable-usage", "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_db_tablereader_usage{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "db-tablereader-usage", + "refId": "B" } ], - "title": "Total Commands Processed", - "type": "stat" + "thresholds": [], + "timeRegions": [], + "title": "DB Memtable Usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } }, { "aliasColors": {}, @@ -1350,22 +1916,22 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 0, + "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 8, + "h": 11, + "w": 12, "x": 0, - "y": 12 + "y": 38 }, "hiddenSeries": false, - "id": 75, + "id": 30, "legend": { "alignAsTable": true, - "avg": false, + "avg": true, "current": true, "max": true, "min": true, @@ -1381,7 +1947,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -1393,19 +1959,19 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_connected_clients{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "rate(pika_total_commands_processed{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[5m])", "format": "time_series", "instant": false, "intervalFactor": 2, - "legendFormat": "connected-clients", + "legendFormat": "commands-processed/sec", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Connected Clients", + "title": "Commands Processed in per second", "tooltip": { "shared": true, "sort": 0, @@ -1419,7 +1985,7 @@ }, "yaxes": [ { - "decimals": 0, + "decimals": 2, "format": "short", "logBase": 1, "min": "0", @@ -1442,25 +2008,24 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 12 + "h": 11, + "w": 12, + "x": 12, + "y": 38 }, "hiddenSeries": false, - "id": 76, + "id": 58, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, - "min": true, + "min": false, "show": true, "total": false, "values": true @@ -1473,7 +2038,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -1485,19 +2050,63 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "(irate(pika_used_cpu_sys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m]) + irate(pika_used_cpu_user{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m])) * 100", + "expr": "pika_kv_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "instant": false, - "intervalFactor": 2, - "legendFormat": "cpu-usage", + "intervalFactor": 1, + "legendFormat": "kv-keys", "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_hash_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "hash-keys", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_list_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "list-keys", + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_set_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "set-keys", + "refId": "D" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_zset_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "zset-keys", + "refId": "E" } ], "thresholds": [], "timeRegions": [], - "title": "CPU Usage", + "title": "The number of Keys", "tooltip": { "shared": true, "sort": 0, @@ -1511,8 +2120,7 @@ }, "yaxes": [ { - "decimals": 2, - "format": "percent", + "format": "none", "logBase": 1, "min": "0", "show": true @@ -1527,6 +2135,32 @@ "align": false } }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 49 + }, + "id": 42, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" + }, + "refId": "A" + } + ], + "title": "Replication", + "type": "row" + }, { "aliasColors": {}, "bars": false, @@ -1534,25 +2168,24 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 12 + "h": 11, + "w": 12, + "x": 0, + "y": 50 }, "hiddenSeries": false, - "id": 77, + "id": 193, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, - "min": true, + "min": false, "show": true, "total": false, "values": true @@ -1565,7 +2198,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -1577,19 +2210,20 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "(irate(pika_used_cpu_sys_children{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m]) + irate(pika_used_cpu_user_children{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[1m])) * 100", + "editorMode": "code", + "expr": "pika_master_link_status{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "instant": false, - "intervalFactor": 2, - "legendFormat": "cpu-usage-children", + "intervalFactor": 1, + "legendFormat": "{{master_host}} {{master_port}}", + "range": true, "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "CPU Usage Children", + "title": "Master Link Status", "tooltip": { "shared": true, "sort": 0, @@ -1603,13 +2237,14 @@ }, "yaxes": [ { - "decimals": 2, - "format": "percent", + "$$hashKey": "object:300", + "format": "none", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:301", "format": "short", "logBase": 1, "show": true @@ -1626,22 +2261,22 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 2, + "decimals": 0, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 20 + "h": 11, + "w": 12, + "x": 12, + "y": 50 }, "hiddenSeries": false, - "id": 20, + "id": 194, "legend": { "alignAsTable": true, - "avg": true, + "avg": false, "current": true, "max": true, "min": true, @@ -1657,7 +2292,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -1669,19 +2304,20 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_used_memory{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "editorMode": "code", + "expr": "pika_slave_priority{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", "instant": false, "intervalFactor": 2, - "legendFormat": "used-memory", + "legendFormat": "{{master_host}} {{master_port}}", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Used Memory", + "title": "Slave Priority", "tooltip": { "shared": true, "sort": 0, @@ -1695,13 +2331,15 @@ }, "yaxes": [ { - "decimals": 2, - "format": "bytes", + "$$hashKey": "object:457", + "decimals": 0, + "format": "short", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:458", "format": "short", "logBase": 1, "show": true @@ -1711,6 +2349,38 @@ "align": false } }, + { + "clusterName": "$role", + "colorMode": "Panel", + "colors": { + "crit": "rgba(245, 54, 54, 0.9)", + "disable": "rgba(128, 128, 128, 0.9)", + "ok": "rgba(50, 128, 45, 0.9)", + "warn": "rgba(237, 129, 40, 0.9)" + }, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "displayName": "double_master", + "flipCard": false, + "flipTime": 5, + "fontFormat": "Regular", + "gridPos": { + "h": 5, + "w": 4, + "x": 0, + "y": 61 + }, + "id": 71, + "isAutoScrollOnOverflow": false, + "isGrayOnNoData": false, + "isHideAlertsOnDisable": false, + "isIgnoreOKColors": false, + "links": [], + "title": "Role", + "type": "vonage-status-panel" + }, { "aliasColors": {}, "bars": false, @@ -1718,26 +2388,25 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 2, + "decimals": 0, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, + "h": 5, "w": 8, - "x": 8, - "y": 20 + "x": 4, + "y": 61 }, "hiddenSeries": false, - "id": 2, + "id": 44, "legend": { "alignAsTable": true, - "avg": true, + "avg": false, "current": true, "max": true, "min": true, - "rightSide": false, "show": true, "total": false, "values": true @@ -1750,7 +2419,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -1762,19 +2431,18 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_db_size{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_master_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "instant": false, "intervalFactor": 2, - "legendFormat": "compression-{{compression}}", + "legendFormat": "connected-slaves", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "DB Size", + "title": "Connected Slaves", "tooltip": { "shared": true, "sort": 0, @@ -1788,21 +2456,273 @@ }, "yaxes": [ { - "decimals": 2, - "format": "bytes", + "decimals": 0, + "format": "none", "logBase": 1, "min": "0", "show": true }, { - "format": "short", - "logBase": 1, - "show": true + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "columns": [], + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fontSize": "100%", + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 61 + }, + "id": 68, + "links": [], + "scroll": true, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "date" + }, + { + "alias": "slave server id", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "slave_sid", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "slave ip", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "slave_ip", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "slave port", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "mappingType": 1, + "pattern": "slave_port", + "thresholds": [], + "type": "string", + "unit": "none" + }, + { + "alias": "slave state", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "mappingType": 1, + "pattern": "slave_state", + "thresholds": [], + "type": "string", + "unit": "none" + }, + { + "alias": "slave lag", + "align": "auto", + "colorMode": "cell", + "colors": [ + "rgba(50, 172, 45, 0.97)", + "#508642", + "rgba(245, 54, 54, 0.9)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "mappingType": 1, + "pattern": "Value", + "thresholds": [ + "0", + "1" + ], + "type": "number", + "unit": "none" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_master_slave_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, + "intervalFactor": 2, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Connected Slave List", + "transform": "table", + "type": "table-old" + }, + { + "columns": [], + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fontSize": "100%", + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 66 + }, + "id": 38, + "links": [], + "scroll": true, + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "date" + }, + { + "alias": "safety purge", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "safety_purge", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "expire logs days", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "expire_logs_days", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "expire logs nums", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "expire_logs_nums", + "thresholds": [], + "type": "number", + "unit": "short" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_binlog{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, + "intervalFactor": 2, + "refId": "A" } ], - "yaxis": { - "align": false - } + "title": "Binlog Setting", + "transform": "table", + "type": "table-old" }, { "aliasColors": {}, @@ -1811,22 +2731,21 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, - "w": 8, - "x": 16, - "y": 20 + "w": 12, + "x": 0, + "y": 69 }, "hiddenSeries": false, - "id": 24, + "id": 36, "legend": { "alignAsTable": true, - "avg": true, + "avg": false, "current": true, "max": true, "min": true, @@ -1842,16 +2761,11 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", - "seriesOverrides": [ - { - "alias": "db-tablereader-usage", - "transform": "negative-Y" - } - ], + "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, @@ -1859,29 +2773,18 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_db_memtable_usage{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_binlog{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "intervalFactor": 1, - "legendFormat": "db-memtable-usage", + "intervalFactor": 2, + "legendFormat": "binlog size", "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_db_tablereader_usage{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "db-tablereader-usage", - "refId": "B" } ], "thresholds": [], "timeRegions": [], - "title": "DB Memtable Usage", + "title": "Binlog Size", "tooltip": { "shared": true, "sort": 0, @@ -1895,9 +2798,9 @@ }, "yaxes": [ { - "decimals": 2, "format": "bytes", "logBase": 1, + "min": "0", "show": true }, { @@ -1917,22 +2820,21 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 11, + "h": 8, "w": 12, - "x": 0, - "y": 28 + "x": 12, + "y": 69 }, "hiddenSeries": false, - "id": 30, + "id": 40, "legend": { "alignAsTable": true, - "avg": true, + "avg": false, "current": true, "max": true, "min": true, @@ -1948,7 +2850,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -1960,19 +2862,18 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "rate(pika_total_commands_processed{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}[5m])", + "expr": "pika_binlog_offset{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "instant": false, "intervalFactor": 2, - "legendFormat": "commands-processed/sec", + "legendFormat": "file-num: [{{binlog_offset_filenum}}] binlog-offset", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Commands Processed in per second", + "title": "Binlog Offset", "tooltip": { "shared": true, "sort": 0, @@ -1986,8 +2887,7 @@ }, "yaxes": [ { - "decimals": 2, - "format": "short", + "format": "bytes", "logBase": 1, "min": "0", "show": true @@ -2003,164 +2903,133 @@ } }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, + "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "fill": 1, - "fillGradient": 0, + "fontSize": "100%", "gridPos": { - "h": 11, + "h": 5, "w": 12, - "x": 12, - "y": 28 - }, - "hiddenSeries": false, - "id": 58, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true + "x": 0, + "y": 77 }, - "lines": true, - "linewidth": 1, + "id": 72, "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true + "scroll": true, + "showHeader": true, + "sort": { + "col": 0, + "desc": true }, - "percentage": false, - "pluginVersion": "10.0.1", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ + "styles": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_kv_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "kv-keys", - "refId": "A" + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "date" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_hash_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "hash-keys", - "refId": "B" + "alias": "the peer master host", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "the_peer_master_host", + "thresholds": [], + "type": "string", + "unit": "short" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_list_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "interval": "", - "intervalFactor": 1, - "legendFormat": "list-keys", - "refId": "C" + "alias": "the peer master port", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "mappingType": 1, + "pattern": "the_peer_master_port", + "thresholds": [], + "type": "string", + "unit": "none" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_set_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "set-keys", - "refId": "D" + "alias": "the peer master server id", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "the_peer_master_server_id", + "thresholds": [], + "type": "string", + "unit": "short" }, { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_zset_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "intervalFactor": 1, - "legendFormat": "zset-keys", - "refId": "E" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "The number of Keys", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "logBase": 1, - "min": "0", - "show": true + "alias": "repl state", + "align": "auto", + "colorMode": "cell", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "repl_state", + "thresholds": [ + "1", + "1" + ], + "type": "string", + "unit": "short" }, { - "format": "short", - "logBase": 1, - "show": true + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "hidden", + "unit": "short" } ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 39 - }, - "id": 42, - "panels": [], "targets": [ { "datasource": { "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" + "uid": "${DS_PROMETHEUS}" }, + "expr": "pika_double_master_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, + "intervalFactor": 2, + "legendFormat": "", "refId": "A" } ], - "title": "Replication", - "type": "row" + "title": "Double Master Info", + "transform": "table", + "type": "table-old" }, { "aliasColors": {}, @@ -2169,24 +3038,24 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 11, + "h": 5, "w": 12, - "x": 0, - "y": 40 + "x": 12, + "y": 77 }, "hiddenSeries": false, - "id": 193, + "id": 74, "legend": { "alignAsTable": true, "avg": false, "current": true, "max": true, - "min": false, + "min": true, "show": true, "total": false, "values": true @@ -2199,7 +3068,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -2211,20 +3080,18 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "editorMode": "code", - "expr": "pika_master_link_status{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_double_master_recv_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", "intervalFactor": 1, - "legendFormat": "{{master_host}} {{master_port}}", - "range": true, + "legendFormat": "filenum:[{{double_master_recv_info_binlog_filenum}}] binlog-offset", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Master Link Status", + "title": "Double Master Binlog Offset", "tooltip": { "shared": true, "sort": 0, @@ -2238,14 +3105,11 @@ }, "yaxes": [ { - "$$hashKey": "object:300", - "format": "none", + "format": "short", "logBase": 1, - "min": "0", "show": true }, { - "$$hashKey": "object:301", "format": "short", "logBase": 1, "show": true @@ -2256,242 +3120,250 @@ } }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, + "collapsed": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" }, - "decimals": 0, - "fill": 1, - "fillGradient": 0, "gridPos": { - "h": 11, - "w": 12, - "x": 12, - "y": 40 - }, - "hiddenSeries": false, - "id": 194, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true + "h": 1, + "w": 24, + "x": 0, + "y": 82 }, - "percentage": false, - "pluginVersion": "10.0.1", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "id": 48, + "panels": [], "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" }, - "editorMode": "code", - "expr": "pika_slave_priority{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "instant": false, - "intervalFactor": 2, - "legendFormat": "{{master_host}} {{master_port}}", "refId": "A" } ], - "thresholds": [], - "timeRegions": [], - "title": "Slave Priority", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:457", - "decimals": 0, - "format": "short", - "logBase": 1, - "min": "0", - "show": true - }, - { - "$$hashKey": "object:458", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } + "title": "Time-consuming operation", + "type": "row" }, { - "clusterName": "$role", - "colorMode": "Panel", - "colors": { - "crit": "rgba(245, 54, 54, 0.9)", - "disable": "rgba(128, 128, 128, 0.9)", - "ok": "rgba(50, 128, 45, 0.9)", - "warn": "rgba(237, 129, 40, 0.9)" - }, + "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "displayName": "double_master", - "flipCard": false, - "flipTime": 5, - "fontFormat": "Regular", + "fontSize": "100%", "gridPos": { - "h": 5, - "w": 4, + "h": 3, + "w": 12, "x": 0, - "y": 51 + "y": 83 }, - "id": 71, - "isAutoScrollOnOverflow": false, - "isGrayOnNoData": false, - "isHideAlertsOnDisable": false, - "isIgnoreOKColors": false, + "hideTimeOverride": false, + "id": 53, "links": [], - "title": "Role", - "type": "vonage-status-panel" + "scroll": true, + "showHeader": true, + "sort": { + "col": 6, + "desc": true + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "link": false, + "pattern": "Time", + "type": "date" + }, + { + "alias": "latest start time", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "link": false, + "mappingType": 1, + "pattern": "keyspace_time", + "thresholds": [], + "type": "date", + "unit": "short" + }, + { + "alias": "is scaning keyspace", + "align": "auto", + "colorMode": "cell", + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Value", + "thresholds": [ + "1", + "1" + ], + "type": "number", + "unit": "short" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "pika_is_scaning_keyspace{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, + "intervalFactor": 2, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Scan Keyspace", + "transform": "table", + "type": "table-old" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, + "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "decimals": 0, - "fill": 1, - "fillGradient": 0, + "fontSize": "100%", "gridPos": { - "h": 5, - "w": 8, - "x": 4, - "y": 51 - }, - "hiddenSeries": false, - "id": 44, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true + "h": 3, + "w": 12, + "x": 12, + "y": 83 }, - "lines": true, - "linewidth": 1, + "id": 50, "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true + "scroll": true, + "showHeader": true, + "sort": { + "col": 8, + "desc": true }, - "percentage": false, - "pluginVersion": "10.0.1", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "date" + }, + { + "alias": "latest start time", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "bgsave_start_time", + "thresholds": [], + "type": "date", + "unit": "short" + }, + { + "alias": "is bgsaving", + "align": "auto", + "colorMode": "cell", + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Value", + "thresholds": [ + "1", + "1" + ], + "type": "number", + "unit": "short" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_master_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", + "expr": "pika_is_bgsaving{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, "intervalFactor": 2, - "legendFormat": "connected-slaves", "refId": "A" } ], - "thresholds": [], - "timeRegions": [], - "title": "Connected Slaves", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } + "title": "Bgsave", + "transform": "table", + "type": "table-old" }, { "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fontSize": "100%", "gridPos": { - "h": 5, + "h": 3, "w": 12, - "x": 12, - "y": 51 + "x": 0, + "y": 86 }, - "id": 68, + "hideTimeOverride": false, + "id": 52, "links": [], "scroll": true, "showHeader": true, "sort": { - "col": 0, + "col": 8, "desc": true }, "styles": [ @@ -2499,11 +3371,12 @@ "alias": "Time", "align": "auto", "dateFormat": "YYYY-MM-DD HH:mm:ss", + "link": false, "pattern": "Time", "type": "date" }, { - "alias": "slave server id", + "alias": "latest start time", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", @@ -2512,45 +3385,98 @@ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, + "link": false, "mappingType": 1, - "pattern": "slave_sid", + "pattern": "slots_clean_start_time", "thresholds": [], - "type": "string", + "type": "date", "unit": "short" }, { - "alias": "slave ip", + "alias": "is slots cleaning", "align": "auto", + "colorMode": "cell", "colors": [ - "rgba(245, 54, 54, 0.9)", + "rgba(50, 172, 45, 0.97)", "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" + "rgba(245, 54, 54, 0.9)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, - "pattern": "slave_ip", - "thresholds": [], - "type": "string", + "pattern": "Value", + "thresholds": [ + "1", + "1" + ], + "type": "number", "unit": "short" }, { - "alias": "slave port", + "alias": "", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "mappingType": 1, - "pattern": "slave_port", + "decimals": 2, + "pattern": "/.*/", "thresholds": [], - "type": "string", - "unit": "none" + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "expr": "pika_is_slots_cleaning{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "table", + "instant": true, + "intervalFactor": 2, + "refId": "A" + } + ], + "title": "Slots Clean", + "transform": "table", + "type": "table-old" + }, + { + "columns": [], + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "fontSize": "100%", + "gridPos": { + "h": 3, + "w": 12, + "x": 12, + "y": 86 + }, + "hideTimeOverride": false, + "id": 51, + "links": [], + "scroll": true, + "showHeader": true, + "sort": { + "col": 8, + "desc": true + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "link": false, + "pattern": "Time", + "type": "date" }, { - "alias": "slave state", + "alias": "latest start time", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", @@ -2558,30 +3484,33 @@ "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "link": false, "mappingType": 1, - "pattern": "slave_state", + "pattern": "slots_reload_start_time", "thresholds": [], - "type": "string", - "unit": "none" + "type": "date", + "unit": "short" }, { - "alias": "slave lag", + "alias": "is slots reloading", "align": "auto", "colorMode": "cell", "colors": [ "rgba(50, 172, 45, 0.97)", - "#508642", + "rgba(237, 129, 40, 0.89)", "rgba(245, 54, 54, 0.9)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, "mappingType": 1, "pattern": "Value", "thresholds": [ - "0", + "1", "1" ], "type": "number", - "unit": "none" + "unit": "short" }, { "alias": "", @@ -2602,17 +3531,16 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_master_slave_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_is_slots_reloading{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "table", "instant": true, "intervalFactor": 2, - "legendFormat": "", "refId": "A" } ], - "title": "Connected Slave List", + "title": "Slots Reload", "transform": "table", "type": "table-old" }, @@ -2620,21 +3548,22 @@ "columns": [], "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fontSize": "100%", "gridPos": { "h": 3, "w": 24, "x": 0, - "y": 56 + "y": 89 }, - "id": 38, + "hideTimeOverride": false, + "id": 54, "links": [], "scroll": true, "showHeader": true, "sort": { - "col": 0, + "col": 8, "desc": true }, "styles": [ @@ -2642,11 +3571,12 @@ "alias": "Time", "align": "auto", "dateFormat": "YYYY-MM-DD HH:mm:ss", + "link": false, "pattern": "Time", "type": "date" }, { - "alias": "safety purge", + "alias": "compact cron", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", @@ -2655,30 +3585,35 @@ ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, + "link": false, "mappingType": 1, - "pattern": "safety_purge", + "pattern": "compact_cron", "thresholds": [], "type": "string", "unit": "short" }, { - "alias": "expire logs days", + "alias": "is compact", "align": "auto", + "colorMode": "cell", "colors": [ - "rgba(245, 54, 54, 0.9)", + "rgba(50, 172, 45, 0.97)", "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" + "rgba(245, 54, 54, 0.9)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, - "pattern": "expire_logs_days", - "thresholds": [], + "pattern": "Value", + "thresholds": [ + "1", + "1" + ], "type": "number", "unit": "short" }, { - "alias": "expire logs nums", + "alias": "compact interval", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", @@ -2688,9 +3623,9 @@ "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, - "pattern": "expire_logs_nums", + "pattern": "compact_interval", "thresholds": [], - "type": "number", + "type": "string", "unit": "short" }, { @@ -2712,19 +3647,45 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_binlog{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_is_compact{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "table", "instant": true, "intervalFactor": 2, "refId": "A" } ], - "title": "Binlog Setting", + "title": "Compact", "transform": "table", "type": "table-old" }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 92 + }, + "id": 56, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" + }, + "refId": "A" + } + ], + "title": "Keys Metrics", + "type": "row" + }, { "aliasColors": {}, "bars": false, @@ -2732,18 +3693,18 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 12, + "h": 11, + "w": 8, "x": 0, - "y": 59 + "y": 93 }, "hiddenSeries": false, - "id": 36, + "id": 62, "legend": { "alignAsTable": true, "avg": false, @@ -2762,7 +3723,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "10.0.1", + "pluginVersion": "9.5.2", "pointradius": 5, "points": false, "renderer": "flot", @@ -2774,18 +3735,20 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_binlog{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "editorMode": "code", + "expr": "pika_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", + "instant": false, "intervalFactor": 2, - "legendFormat": "binlog size", + "legendFormat": "{{data_type}} {{db}} ", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Binlog Size", + "title": "Keys", "tooltip": { "shared": true, "sort": 0, @@ -2799,7 +3762,7 @@ }, "yaxes": [ { - "format": "bytes", + "format": "none", "logBase": 1, "min": "0", "show": true @@ -2821,18 +3784,18 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 59 + "h": 11, + "w": 8, + "x": 8, + "y": 93 }, "hiddenSeries": false, - "id": 40, + "id": 191, "legend": { "alignAsTable": true, "avg": false, @@ -2844,193 +3807,66 @@ "values": true }, "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "10.0.1", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_binlog_offset{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "time_series", - "intervalFactor": 2, - "legendFormat": "file-num: [{{binlog_offset_filenum}}] binlog-offset", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Binlog Offset", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "columns": [], - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fontSize": "100%", - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 67 - }, - "id": 72, - "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "date" - }, - { - "alias": "the peer master host", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "the_peer_master_host", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "the peer master port", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "mappingType": 1, - "pattern": "the_peer_master_port", - "thresholds": [], - "type": "string", - "unit": "none" - }, - { - "alias": "the peer master server id", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "the_peer_master_server_id", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "repl state", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "repl_state", - "thresholds": [ - "1", - "1" - ], - "type": "string", - "unit": "short" - }, - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_double_master_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "table", - "instant": true, + "editorMode": "code", + "expr": "pika_expire_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, "intervalFactor": 2, - "legendFormat": "", + "legendFormat": "{{data_type}} {{db}} ", "refId": "A" } ], - "title": "Double Master Info", - "transform": "table", - "type": "table-old" + "thresholds": [], + "timeRegions": [], + "title": "Expire Keys", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } }, { "aliasColors": {}, @@ -3039,18 +3875,18 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 67 + "h": 11, + "w": 8, + "x": 16, + "y": 93 }, "hiddenSeries": false, - "id": 74, + "id": 192, "legend": { "alignAsTable": true, "avg": false, @@ -3081,18 +3917,20 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_double_master_recv_info{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "editorMode": "code", + "expr": "pika_invalid_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", - "intervalFactor": 1, - "legendFormat": "filenum:[{{double_master_recv_info_binlog_filenum}}] binlog-offset", + "instant": false, + "intervalFactor": 2, + "legendFormat": "{{data_type}} {{db}} ", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Double Master Binlog Offset", + "title": "Invalid Keys", "tooltip": { "shared": true, "sort": 0, @@ -3106,8 +3944,9 @@ }, "yaxes": [ { - "format": "short", + "format": "none", "logBase": 1, + "min": "0", "show": true }, { @@ -3122,570 +3961,495 @@ }, { "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" - }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 72 + "y": 104 }, - "id": 48, + "id": 203, "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" - }, - "refId": "A" - } - ], - "title": "Time-consuming operation", + "title": "Network", "type": "row" }, { - "columns": [], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "fontSize": "100%", + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 3, + "h": 8, "w": 12, "x": 0, - "y": 73 + "y": 105 }, - "hideTimeOverride": false, - "id": 53, + "hiddenSeries": false, + "id": 195, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 6, - "desc": true + "nullPointMode": "null", + "options": { + "alertThreshold": true }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "link": false, - "pattern": "Time", - "type": "date" - }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ { - "alias": "latest start time", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "keyspace_time", - "thresholds": [], - "type": "date", - "unit": "short" - }, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pika_total_net_input_bytes{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, + "intervalFactor": 1, + "legendFormat": "{{addr}}", + "range": true, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Total Net Input Bytes", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "alias": "is scaning keyspace", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value", - "thresholds": [ - "1", - "1" - ], - "type": "number", - "unit": "short" + "$$hashKey": "object:2385", + "format": "bytes", + "logBase": 1, + "min": "0", + "show": true }, { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" + "$$hashKey": "object:2386", + "format": "short", + "logBase": 1, + "show": true } ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "decimals": 2, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 105 + }, + "hiddenSeries": false, + "id": 196, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "pika_is_scaning_keyspace{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "table", - "instant": true, + "expr": "pika_instantaneous_input_kbps{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, "intervalFactor": 2, - "legendFormat": "", + "legendFormat": "{{ addr }}", "refId": "A" } ], - "title": "Scan Keyspace", - "transform": "table", - "type": "table-old" - }, - { - "columns": [], - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fontSize": "100%", - "gridPos": { - "h": 3, - "w": 12, - "x": 12, - "y": 73 + "thresholds": [], + "timeRegions": [], + "title": "Instantaneous Input Kbps", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - "id": 50, - "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 8, - "desc": true + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "date" - }, - { - "alias": "latest start time", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "bgsave_start_time", - "thresholds": [], - "type": "date", - "unit": "short" - }, + "yaxes": [ { - "alias": "is bgsaving", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", + "$$hashKey": "object:2231", "decimals": 2, - "mappingType": 1, - "pattern": "Value", - "thresholds": [ - "1", - "1" - ], - "type": "number", - "unit": "short" + "format": "KiBs", + "label": "", + "logBase": 1, + "min": "0", + "show": true }, { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_is_bgsaving{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "table", - "instant": true, - "intervalFactor": 2, - "refId": "A" + "$$hashKey": "object:2232", + "format": "short", + "logBase": 1, + "show": true } ], - "title": "Bgsave", - "transform": "table", - "type": "table-old" + "yaxis": { + "align": false, + "alignLevel": 0 + } }, { - "columns": [], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "fontSize": "100%", + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 3, + "h": 8, "w": 12, "x": 0, - "y": 76 + "y": 113 }, - "hideTimeOverride": false, - "id": 52, + "hiddenSeries": false, + "id": 197, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 8, - "desc": true + "nullPointMode": "null", + "options": { + "alertThreshold": true }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "link": false, - "pattern": "Time", - "type": "date" - }, - { - "alias": "latest start time", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "slots_clean_start_time", - "thresholds": [], - "type": "date", - "unit": "short" - }, - { - "alias": "is slots cleaning", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value", - "thresholds": [ - "1", - "1" - ], - "type": "number", - "unit": "short" - }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pika_total_net_output_bytes{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, + "intervalFactor": 1, + "legendFormat": "{{addr}}", + "range": true, + "refId": "A" } ], - "targets": [ + "thresholds": [], + "timeRegions": [], + "title": "Total Net Output Bytes", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_is_slots_cleaning{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "table", - "instant": true, - "intervalFactor": 2, - "refId": "A" + "$$hashKey": "object:2385", + "format": "bytes", + "logBase": 1, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2386", + "format": "short", + "logBase": 1, + "show": true } ], - "title": "Slots Clean", - "transform": "table", - "type": "table-old" + "yaxis": { + "align": false + } }, { - "columns": [], + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "fontSize": "100%", + "decimals": 2, + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 3, + "h": 8, "w": 12, "x": 12, - "y": 76 + "y": 113 }, - "hideTimeOverride": false, - "id": 51, + "hiddenSeries": false, + "id": 198, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 8, - "desc": true + "nullPointMode": "null", + "options": { + "alertThreshold": true }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "link": false, - "pattern": "Time", - "type": "date" - }, - { - "alias": "latest start time", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "slots_reload_start_time", - "thresholds": [], - "type": "date", - "unit": "short" - }, - { - "alias": "is slots reloading", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value", - "thresholds": [ - "1", - "1" - ], - "type": "number", - "unit": "short" - }, - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, - "expr": "pika_is_slots_reloading{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "table", - "instant": true, + "editorMode": "code", + "expr": "pika_instantaneous_output_kbps{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, "intervalFactor": 2, + "legendFormat": "{{ addr }}", "refId": "A" } ], - "title": "Slots Reload", - "transform": "table", - "type": "table-old" - }, - { - "columns": [], - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "fontSize": "100%", - "gridPos": { - "h": 3, - "w": 24, - "x": 0, - "y": 79 + "thresholds": [], + "timeRegions": [], + "title": "Instantaneous Output Kbps", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" }, - "hideTimeOverride": false, - "id": 54, - "links": [], - "scroll": true, - "showHeader": true, - "sort": { - "col": 8, - "desc": true + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "link": false, - "pattern": "Time", - "type": "date" - }, - { - "alias": "compact cron", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": false, - "mappingType": 1, - "pattern": "compact_cron", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "is compact", - "align": "auto", - "colorMode": "cell", - "colors": [ - "rgba(50, 172, 45, 0.97)", - "rgba(237, 129, 40, 0.89)", - "rgba(245, 54, 54, 0.9)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value", - "thresholds": [ - "1", - "1" - ], - "type": "number", - "unit": "short" - }, + "yaxes": [ { - "alias": "compact interval", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", + "$$hashKey": "object:2231", "decimals": 2, - "mappingType": 1, - "pattern": "compact_interval", - "thresholds": [], - "type": "string", - "unit": "short" + "format": "KiBs", + "label": "", + "logBase": 1, + "min": "0", + "show": true }, { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "/.*/", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_MIXFICSOL}" - }, - "expr": "pika_is_compact{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", - "format": "table", - "instant": true, - "intervalFactor": 2, - "refId": "A" + "$$hashKey": "object:2232", + "format": "short", + "logBase": 1, + "show": true } ], - "title": "Compact", - "transform": "table", - "type": "table-old" + "yaxis": { + "align": false, + "alignLevel": 0 + } }, { - "collapsed": false, + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, "datasource": { "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" + "uid": "${DS_PROMETHEUS}" }, + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 1, - "w": 24, + "h": 8, + "w": 12, "x": 0, - "y": 82 + "y": 121 }, - "id": 56, - "panels": [], + "hiddenSeries": false, + "id": 199, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": { "type": "prometheus", - "uid": "f1b0a045-7478-4185-a338-3a88f6d1fe97" + "uid": "${DS_PROMETHEUS}" }, + "editorMode": "code", + "exemplar": false, + "expr": "pika_total_net_repl_input_bytes{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, + "intervalFactor": 1, + "legendFormat": "{{addr}}", + "range": true, "refId": "A" } ], - "title": "Keys Metrics", - "type": "row" + "thresholds": [], + "timeRegions": [], + "title": "Total Net Replication Input Bytes", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2385", + "format": "bytes", + "logBase": 1, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:2386", + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } }, { "aliasColors": {}, @@ -3694,21 +4458,22 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, + "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 11, - "w": 8, - "x": 0, - "y": 83 + "h": 8, + "w": 12, + "x": 12, + "y": 121 }, "hiddenSeries": false, - "id": 62, + "id": 200, "legend": { "alignAsTable": true, - "avg": false, + "avg": true, "current": true, "max": true, "min": true, @@ -3736,20 +4501,20 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "pika_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_instantaneous_input_repl_kbps{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", "instant": false, "intervalFactor": 2, - "legendFormat": "{{data_type}} {{db}} ", + "legendFormat": "{{ addr }}", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Keys", + "title": "Instantaneous Input Replication Kbps", "tooltip": { "shared": true, "sort": 0, @@ -3763,19 +4528,24 @@ }, "yaxes": [ { - "format": "none", + "$$hashKey": "object:2231", + "decimals": 2, + "format": "KiBs", + "label": "", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:2232", "format": "short", "logBase": 1, "show": true } ], "yaxis": { - "align": false + "align": false, + "alignLevel": 0 } }, { @@ -3785,21 +4555,21 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 11, - "w": 8, - "x": 8, - "y": 83 + "h": 8, + "w": 12, + "x": 0, + "y": 129 }, "hiddenSeries": false, - "id": 191, + "id": 201, "legend": { "alignAsTable": true, - "avg": false, + "avg": true, "current": true, "max": true, "min": true, @@ -3827,20 +4597,22 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "pika_expire_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "exemplar": false, + "expr": "pika_total_net_repl_output_bytes{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", "instant": false, - "intervalFactor": 2, - "legendFormat": "{{data_type}} {{db}} ", + "intervalFactor": 1, + "legendFormat": "{{addr}}", + "range": true, "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Expire Keys", + "title": "Total Net Replication Output Bytes", "tooltip": { "shared": true, "sort": 0, @@ -3854,12 +4626,14 @@ }, "yaxes": [ { - "format": "none", + "$$hashKey": "object:2385", + "format": "bytes", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:2386", "format": "short", "logBase": 1, "show": true @@ -3876,21 +4650,22 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, + "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { - "h": 11, - "w": 8, - "x": 16, - "y": 83 + "h": 8, + "w": 12, + "x": 12, + "y": 129 }, "hiddenSeries": false, - "id": 192, + "id": 202, "legend": { "alignAsTable": true, - "avg": false, + "avg": true, "current": true, "max": true, "min": true, @@ -3918,20 +4693,20 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", - "expr": "pika_invalid_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "expr": "pika_instantaneous_output_repl_kbps{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", "format": "time_series", "instant": false, "intervalFactor": 2, - "legendFormat": "{{data_type}} {{db}} ", + "legendFormat": "{{ addr }}", "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Invalid Keys", + "title": "Instantaneous Output Replication Kbps", "tooltip": { "shared": true, "sort": 0, @@ -3945,19 +4720,24 @@ }, "yaxes": [ { - "format": "none", + "$$hashKey": "object:2231", + "decimals": 2, + "format": "KiBs", + "label": "", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:2232", "format": "short", "logBase": 1, "show": true } ], "yaxis": { - "align": false + "align": false, + "alignLevel": 0 } }, { @@ -3966,7 +4746,7 @@ "h": 1, "w": 24, "x": 0, - "y": 94 + "y": 137 }, "id": 90, "panels": [], @@ -3980,7 +4760,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -3989,7 +4769,7 @@ "h": 13, "w": 6, "x": 0, - "y": 95 + "y": 138 }, "hiddenSeries": false, "id": 190, @@ -4023,7 +4803,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_mem_table_flush_pending{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4036,7 +4816,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "Is Memtable Flush Pending", + "title": "Memtable Flush Pending", "tooltip": { "shared": true, "sort": 0, @@ -4050,13 +4830,15 @@ }, "yaxes": [ { + "$$hashKey": "object:3638", "decimals": 0, - "format": "short", + "format": "bool", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:3639", "format": "short", "logBase": 1, "show": true @@ -4073,7 +4855,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -4082,7 +4864,7 @@ "h": 13, "w": 6, "x": 6, - "y": 95 + "y": 138 }, "hiddenSeries": false, "id": 97, @@ -4116,7 +4898,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_num_immutable_mem_table{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4129,7 +4911,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "Num Immutable MemTable", + "title": "Immutable MemTable", "tooltip": { "shared": true, "sort": 0, @@ -4143,14 +4925,16 @@ }, "yaxes": [ { + "$$hashKey": "object:3880", "decimals": 0, - "format": "short", + "format": "none", "logBase": 1, "min": "0", "show": true }, { - "format": "short", + "$$hashKey": "object:3881", + "format": "none", "logBase": 1, "show": true } @@ -4166,7 +4950,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -4175,7 +4959,7 @@ "h": 13, "w": 6, "x": 12, - "y": 95 + "y": 138 }, "hiddenSeries": false, "id": 126, @@ -4209,7 +4993,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_num_immutable_mem_table_flushed{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4222,7 +5006,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "Num Immutable Memtable Flushed", + "title": "Immutable Memtable Flushed", "tooltip": { "shared": true, "sort": 0, @@ -4236,13 +5020,15 @@ }, "yaxes": [ { + "$$hashKey": "object:4122", "decimals": 0, - "format": "short", + "format": "none", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:4123", "format": "short", "logBase": 1, "show": true @@ -4259,7 +5045,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -4268,7 +5054,7 @@ "h": 13, "w": 6, "x": 18, - "y": 95 + "y": 138 }, "hiddenSeries": false, "id": 98, @@ -4302,7 +5088,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_num_running_flushes{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4315,7 +5101,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "Num Running Flushes", + "title": "Running Flushes", "tooltip": { "shared": true, "sort": 0, @@ -4329,6 +5115,7 @@ }, "yaxes": [ { + "$$hashKey": "object:5804", "decimals": 0, "format": "short", "logBase": 1, @@ -4336,6 +5123,7 @@ "show": true }, { + "$$hashKey": "object:5805", "format": "short", "logBase": 1, "show": true @@ -4352,7 +5140,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -4361,7 +5149,7 @@ "h": 13, "w": 8, "x": 0, - "y": 108 + "y": 151 }, "hiddenSeries": false, "id": 127, @@ -4395,7 +5183,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_cur_size_active_mem_table{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4445,7 +5233,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -4454,7 +5242,7 @@ "h": 13, "w": 8, "x": 8, - "y": 108 + "y": 151 }, "hiddenSeries": false, "id": 102, @@ -4488,7 +5276,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_cur_size_all_mem_tables{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4538,7 +5326,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -4547,7 +5335,7 @@ "h": 13, "w": 8, "x": 16, - "y": 108 + "y": 151 }, "hiddenSeries": false, "id": 103, @@ -4581,7 +5369,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_size_all_mem_tables{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4631,7 +5419,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -4640,7 +5428,7 @@ "h": 13, "w": 8, "x": 0, - "y": 121 + "y": 164 }, "hiddenSeries": false, "id": 131, @@ -4674,7 +5462,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_block_cache_capacity{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4724,7 +5512,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -4733,7 +5521,7 @@ "h": 13, "w": 8, "x": 8, - "y": 121 + "y": 164 }, "hiddenSeries": false, "id": 109, @@ -4767,7 +5555,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_block_cache_usage{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4817,7 +5605,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -4826,7 +5614,7 @@ "h": 13, "w": 8, "x": 16, - "y": 121 + "y": 164 }, "hiddenSeries": false, "id": 110, @@ -4860,7 +5648,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_block_cache_pinned_usage{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4910,7 +5698,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -4919,7 +5707,7 @@ "h": 13, "w": 6, "x": 0, - "y": 134 + "y": 177 }, "hiddenSeries": false, "id": 188, @@ -4953,7 +5741,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_compaction_pending{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -4980,13 +5768,15 @@ }, "yaxes": [ { + "$$hashKey": "object:6573", "decimals": 0, - "format": "short", + "format": "bool", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:6574", "format": "short", "logBase": 1, "show": true @@ -5003,7 +5793,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -5012,7 +5802,7 @@ "h": 13, "w": 6, "x": 6, - "y": 134 + "y": 177 }, "hiddenSeries": false, "id": 101, @@ -5046,7 +5836,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_num_running_compactions{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5073,13 +5863,15 @@ }, "yaxes": [ { + "$$hashKey": "object:6074", "decimals": 0, - "format": "short", + "format": "none", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:6075", "format": "short", "logBase": 1, "show": true @@ -5096,7 +5888,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -5105,7 +5897,7 @@ "h": 13, "w": 6, "x": 12, - "y": 134 + "y": 177 }, "hiddenSeries": false, "id": 129, @@ -5139,7 +5931,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_total_sst_files_size{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5189,7 +5981,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -5198,7 +5990,7 @@ "h": 13, "w": 6, "x": 18, - "y": 134 + "y": 177 }, "hiddenSeries": false, "id": 130, @@ -5232,7 +6024,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_live_sst_files_size{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5282,7 +6074,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -5291,7 +6083,7 @@ "h": 13, "w": 6, "x": 0, - "y": 147 + "y": 190 }, "hiddenSeries": false, "id": 132, @@ -5325,7 +6117,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "exemplar": false, @@ -5340,7 +6132,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "Num Blob Files", + "title": "Blob Files", "tooltip": { "shared": true, "sort": 0, @@ -5354,13 +6146,15 @@ }, "yaxes": [ { + "$$hashKey": "object:6827", "decimals": 0, - "format": "short", + "format": "none", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:6828", "format": "short", "logBase": 1, "show": true @@ -5377,7 +6171,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -5386,7 +6180,7 @@ "h": 13, "w": 6, "x": 6, - "y": 147 + "y": 190 }, "hiddenSeries": false, "id": 133, @@ -5420,7 +6214,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_blob_stats{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5447,6 +6241,7 @@ }, "yaxes": [ { + "$$hashKey": "object:7309", "decimals": 2, "format": "bytes", "logBase": 1, @@ -5454,6 +6249,7 @@ "show": true }, { + "$$hashKey": "object:7310", "format": "short", "logBase": 1, "show": true @@ -5470,7 +6266,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -5479,7 +6275,7 @@ "h": 13, "w": 6, "x": 12, - "y": 147 + "y": 190 }, "hiddenSeries": false, "id": 134, @@ -5513,7 +6309,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_total_blob_file_size{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5563,7 +6359,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, @@ -5572,7 +6368,7 @@ "h": 13, "w": 6, "x": 18, - "y": 147 + "y": 190 }, "hiddenSeries": false, "id": 135, @@ -5606,7 +6402,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_live_blob_file_size{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5656,16 +6452,16 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { "h": 13, - "w": 8, + "w": 6, "x": 0, - "y": 160 + "y": 203 }, "hiddenSeries": false, "id": 128, @@ -5699,7 +6495,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_estimate_live_data_size{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5749,16 +6545,16 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 2, "fill": 1, "fillGradient": 0, "gridPos": { "h": 13, - "w": 8, - "x": 8, - "y": 160 + "w": 6, + "x": 6, + "y": 203 }, "hiddenSeries": false, "id": 105, @@ -5792,7 +6588,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_estimate_table_readers_mem{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5842,16 +6638,16 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, "fillGradient": 0, "gridPos": { "h": 13, - "w": 8, - "x": 16, - "y": 160 + "w": 6, + "x": 12, + "y": 203 }, "hiddenSeries": false, "id": 104, @@ -5885,7 +6681,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_estimate_num_keys{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5912,13 +6708,110 @@ }, "yaxes": [ { + "$$hashKey": "object:7567", "decimals": 0, + "format": "none", + "logBase": 1, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:7568", "format": "short", "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "decimals": 2, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 13, + "w": 6, + "x": 18, + "y": 203 + }, + "hiddenSeries": false, + "id": 204, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.5.2", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "pika_estimate_pending_compaction_bytes{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", + "format": "time_series", + "instant": false, + "intervalFactor": 2, + "legendFormat": "{{data_type}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Estimate Pending Compaction Bytes", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:481", + "decimals": 2, + "format": "bytes", + "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:482", "format": "short", "logBase": 1, "show": true @@ -5935,7 +6828,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -5944,7 +6837,7 @@ "h": 13, "w": 6, "x": 0, - "y": 173 + "y": 216 }, "hiddenSeries": false, "id": 187, @@ -5978,7 +6871,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_background_errors{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -5991,7 +6884,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "Num Background Errors", + "title": "Background Errors", "tooltip": { "shared": true, "sort": 0, @@ -6005,13 +6898,15 @@ }, "yaxes": [ { + "$$hashKey": "object:7809", "decimals": 0, - "format": "short", + "format": "none", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:7810", "format": "short", "logBase": 1, "show": true @@ -6028,7 +6923,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -6037,7 +6932,7 @@ "h": 13, "w": 6, "x": 6, - "y": 173 + "y": 216 }, "hiddenSeries": false, "id": 189, @@ -6071,7 +6966,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_current_super_version_number{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -6098,13 +6993,15 @@ }, "yaxes": [ { + "$$hashKey": "object:8051", "decimals": 0, - "format": "short", + "format": "none", "logBase": 1, "min": "0", "show": true }, { + "$$hashKey": "object:8052", "format": "short", "logBase": 1, "show": true @@ -6121,7 +7018,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -6130,7 +7027,7 @@ "h": 13, "w": 6, "x": 12, - "y": 173 + "y": 216 }, "hiddenSeries": false, "id": 107, @@ -6164,7 +7061,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_num_live_versions{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -6214,7 +7111,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "decimals": 0, "fill": 1, @@ -6223,7 +7120,7 @@ "h": 13, "w": 6, "x": 18, - "y": 173 + "y": 216 }, "hiddenSeries": false, "id": 106, @@ -6257,7 +7154,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "pika_num_snapshots{job=~\"$job\", group=~\"$group\", instance=~\"$instance\", addr=~\"$addr\", alias=~\"$alias\"}", @@ -6314,7 +7211,7 @@ "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "definition": "", "hide": 0, @@ -6337,7 +7234,7 @@ "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "definition": "", "hide": 0, @@ -6360,7 +7257,7 @@ "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "definition": "", "hide": 0, @@ -6383,7 +7280,7 @@ "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "definition": "", "hide": 0, @@ -6406,7 +7303,7 @@ "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "definition": "", "hide": 0, @@ -6429,7 +7326,7 @@ "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "definition": "", "hide": 2, @@ -6452,7 +7349,7 @@ "current": {}, "datasource": { "type": "prometheus", - "uid": "${DS_MIXFICSOL}" + "uid": "${DS_PROMETHEUS}" }, "definition": "", "hide": 2, @@ -6505,6 +7402,6 @@ "timezone": "", "title": "Prometheus Pika Exporter", "uid": "HYwVT4mZz", - "version": 1, + "version": 6, "weekStart": "" } \ No newline at end of file