Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pepper-metrics

> 数据库
Open source

pepper metrics is a tool, it can helps you collect runtime performance use RED method, and then output as log / timeseries data, by default it use prometheus as

186 stars0 likes2 views
WebsiteGitHub

About

pepper metrics is a tool, it can helps you collect runtime performance use RED method, and then output as log / timeseries data, by default it use prometheus as

Pepper Metrics Project

Overview

Pepper Metrics基于RED理论,即对每个服务 (这里的服务特指进程中的某种调用,比如调用一次数据库查询)进行RED指标收集,并持久化到数据库,并通过dashboard进行展示,辅助进行性能趋势分析。

Support Us

如果项目对你有帮助,请狠击右上角那个叫Star的按钮,如下图:

或者觉得我们有很多不足,请狠击Issues然后留下你的问题,我们会第一时间回复

Document / WIKI

https://github.com/zrbcool/pepper-metrics/wiki

Features

  • 对Jedis/JedisCluster操作进行性能收集分析
  • 对Http请求进行性能分析
  • 对Mybatis的数据库操作进行性能分析
  • 对Motan/Dubbo的RPC调用进行性能分析(支持调用方及服务方)
  • 对多种时序数据库数据源的支持,目前默认为Prometheus
  • 开箱即用的Grafana Dashboard,方便对历史趋势进行分析
  • 基于SPI的可扩展架构,非常容易开发插件支持更多的开源组件

Who use

酷划在线成立于2014年,是国内激励广告行业的领军者。酷划致力于打造一个用户、广告主、平台三方共赢的激励广告生态体系,旗下产品“酷划锁屏”“淘新闻”分别为锁屏、资讯行业的领跑者。

Quickly Run A Demo Within 10 minutes

请参考独立项目:https://github.com/zrbcool/pepper-metrics-demo
线上Demo:http://blog.zrbcool.top/

Quick Start

以Mybatis集成为例,更多其他请参考:User Guide

  • 增加maven依赖
xml

    
    
        top.zrbcool
        pepper-metrics-mybatis
        1.0.11
    
    
    
        top.zrbcool
        pepper-metrics-ds-prometheus
        1.0.11
    
  • 配置Pepper Metrics定制的Mybatis插件使集成生效
xml

    
        ...
    
    
    
        
    
    
        ...
    
  • 日志输出效果:
…
  • Prometheus指标输出效果(默认的实现,可以修改为其他数据库)
…

Maven dependency

以Mybatis为例,更多其他请参考:User Guide

xml

    
    
        top.zrbcool
        pepper-metrics-mybatis
        1.0.11
    
    
    
        top.zrbcool
        pepper-metrics-ds-prometheus
        1.0.11
    

Building

bash
mvn clean package install -DskipTests

Contact

  • Bugs: Issues

  • Plan & Progress: Trello

  • Dingtalk chat group Link:

  • Developer

    • @zrbcool
    • @Lord-X

Special Thanks

感谢作者所在公司酷划在线给作者提供开放的技术环境,并充分支持回馈开源社区项目。

License

Pepper Metrics is released under the Apache License 2.0.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javadubbografanajedismybatis

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库