# 立即体验开箱即用的原生 Grafana Dashboard 支持｜ Greptime 双周精选

Source: https://greptime.cn/blogs/2024-02-07-biweekly

## 内容概述

作为一个成长中的开源项目，GreptimeDB 的进展离不开来自全球的社区贡献者们，感谢各位！

过去的两周，我们继续推进 v0.7 的迭代，重点关注性能调优和测试，并加速研发新特性。以下是这段时间的总结：

- **以全面提升 Memtable 的写入、查询、flush 性能为目标，持续优化 Memtable**

- **正式开启 Greptime Flow 流计算引擎的研发工作，为 GreptimeDB 添加流计算支持**

- **对 Remote WAL 进行压力测试，针对云端部署做性能调优**

- **进一步填充模糊测试框架，提升 GreptimeDB 的稳定性**

- **持续扩充系统表（Information Schema），进一步优化用户查询系统元数据的体验**

## 社区贡献者名单

在过去的两周里，GreptimeDB 共合并了 47 个 PR，其中有 1 位独立贡献者，累计 1 个 PR 被成功合并，还有很多待合并的 PR。

祝贺以下各位在过去 2 周内成为我们活跃的贡献者：

- @[SergeTupchiy](https://github.com/SergeTupchiy) ([dbclient#37](https://github.com/GreptimeTeam/greptimedb-client-erl/pull/37))

🎉 热烈欢迎 @[SergeTupchiy](https://github.com/SergeTupchiy) 作为新的贡献者加入社区并成功合并了首个 PR，还有更多来自其他独立贡献者的 PR 正在等待合并。

同时衷心感谢我们所有的成员和贡献者！是你们的付出让我们的项目得以成功，也是你们让 GreptimeDB 成为一个更优质的产品。让我们一起努力，建立一个更棒的社区！

## PR 亮点

### [db#3196](https://github.com/GreptimeTeam/greptimedb/pull/3196) 搭建 Greptime Flow 流计算引擎的基础框架

Greptime Flow 流计算引擎，它的设计目标是针对单表做持续聚合的轻量化引擎，支持流计算引擎的基础功能。您可以关注该 Tracking Issue：
https://github.com/GreptimeTeam/greptimedb/issues/3187，
了解和参与 Greptime Flow 的开发，期待您的反馈。

### [db#3263](https://github.com/GreptimeTeam/greptimedb/pull/3263) 添加 Grafana Dashboard 基础配置文件，方便用户和开发者观测 GreptimeDB

我们在代码仓库中添加了一个基础的 Grafana Dashboard 配置文件：
https://github.com/GreptimeTeam/greptimedb/blob/main/grafana/greptimedb.json，
您可以使用它在 Grafana 中开启原生的 GreptimeDB dashboard，其中包括 CPU、内存 等性能信息，以及多个重要组件的监控面板。

### [db#3194](https://github.com/GreptimeTeam/greptimedb/pull/3194) 支持批量创建逻辑表，进一步完善 Metric Engine

### [db#3277](https://github.com/GreptimeTeam/greptimedb/pull/3277) 为 `CachedMetaKvBackend` 的 `batch_get` 接口添加 cache，提升 `MetaKv Backend` 的批量查询性能

在分布式环境中，我们需要频繁地查询存储在 `Metasrv` 的 `metadata`。为了提高查询性能，我们在之前就已经实现了 `CacheMetaKvBackend`，为 `MetaKvBackend` 的 `get` 等接口添加了 Cache 支持，能够在 `metadata` 有效期内支持高效的查询。现在，我们为批量查询接口 `batch_get` 也添加了 Cache 支持，进一步提升了 `MetaKvBackend` 的查询性能。

### [db#3269](https://github.com/GreptimeTeam/greptimedb/pull/3269) 通过优化过滤逻辑来减少临时内存的使用，大幅减少 Memtable 查询时的内存开销

我们在插入数据到 memtable 时，添加了一些简单而有效的过滤逻辑，以减少 record batch 的创建。在特定场景下，这个优化可以为 Memtable 减少超过 63% 的内存占用。

### [db#3240](https://github.com/GreptimeTeam/greptimedb/pull/3240) 为模糊测试框架添加 Insert 和 Select SQL 语句随机生成器，增强 GreptimeDB 处理非法 SQL 语句的健壮性

## Good First Issue

### [db##3262 参与完善 GreptimeDB 开箱即用的 Grafana Dashboard 配置](https://github.com/GreptimeTeam/greptimedb/issues/3262)  

关键词：可观测，Grafana

难度：中等

### [db#3183 为建表 SQL 语句添加指定 Memtable 类型的功能](https://github.com/GreptimeTeam/greptimedb/issues/3183)

关键词：SQL，Memtable

难度：简单

### [db#3059 根据给定的 OpenDAL 函数重构现有的代码](https://github.com/GreptimeTeam/greptimedb/issues/3059)

关键词：OpenDAL，Cache

难度：困难

### [db#2888 规范化 GreptimeDB HTTP APIs 的返回状态码](https://github.com/GreptimeTeam/greptimedb/issues/2888)

关键词：API

难度：简单

## 关于 Greptime

[Greptime 格睿科技](https://greptime.cn/)专注于为可观测、物联网及车联网等领域提供实时、高效的数据存储和分析服务，帮助客户挖掘数据的深层价值。目前基于云原生的时序数据库 [GreptimeDB](https://github.com/GreptimeTeam/greptimedb) 已经衍生出多款适合不同用户的解决方案，更多信息或 demo 展示请联系下方小助手（微信号：greptime）。

欢迎对开源感兴趣的朋友们参与贡献和讨论，从带有 good first issue 标签的 issue 开始你的开源之旅吧～期待在开源社群里遇见你！添加小助手微信即可加入“技术交流群”与志同道合的朋友们面对面交流哦~

Star us on GitHub Now: https://github.com/GreptimeTeam/greptimedb

官网：https://greptime.cn/

文档：https://docs.greptime.cn/

Twitter: https://twitter.com/Greptime

Slack: https://greptime.com/slack

LinkedIn: https://www.linkedin.com/company/greptime/
