mongoqp

A frontend for MongoDB's query profiler collection.

  • 所有者: jmikola/mongoqp
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

mongoqp

mongoqp is a frontend for MongoDB's query profiler collections (i.e.
db.system.profile), built using Silex and MongoDB PHP Library.

It currently supports:

  • Toggling query profiler levels (off, slow, all) per database
  • Grouping similar queries by BSON structure
  • Reporting aggregate query statistics (min, max, average, times)
  • Sorting, pagination and filtering via DataTables

Future plans:

  • Control over slow query thresholds
  • Improving analytics
  • Persistent data collection

Screenshots

Server view

Database view

Setup

Installation

Dependencies are managed with Composer, a PHP package manager. This project
is also published as a package, which means it can be installed with:

$ composer create-project jmikola/mongoqp

Configuration

The src/ directory includes a config.php.dist file, which may be copied
to config.php and customized. If config.php is not present, the default
configuration will be included.

Currently, the following options are available:

  • debug: Enable verbose error reporting
  • mongodb.client.uri: MongoDB connection URI string
  • mongodb.client.uriOptions: MongoDB connection URI options
  • mongodb.client.driverOptions: MongoDB driver options
  • twig.cache_dir: Cache directory for Twig templates

Database Connection

By default, the application will connect to a standalone MongoDB server on the
local host (i.e. new MongoDB\Client). The connection may be customized via the
mongodb.client options, like so:

$app['mongodb.client.uri'] = 'mongodb://example.com:27017';

The above example connects to a standalone server by its hostname. Consult the
MongoDB PHP library documentation for additional examples on connecting
to a replica set or specifying auth credentials.

Database profiling cannot be enabled on mongos instances. If you are profiling
queries in a sharded cluster, the application should be configured to connect to
an individual shard.

Cache Directory

By default, the application will use mongoqp-cache/ within the system's
temporary directory. This path, which must be writable, may be customized via
the twig.cache_dir configuration option.

Web Server

The application can be started using:

$ php -S localhost:8080 -t web

Instructions for other web server configurations are outlined in the
Silex documentation.

主要指标

概览
名称与所有者jmikola/mongoqp
主编程语言JavaScript
编程语言PHP (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2012-09-20 05:54:53
推送于2017-07-24 17:39:23
最后一次提交2017-07-24 13:35:43
发布数3
最新版本名称v1.1.1 (发布于 )
第一版名称v1.0.0 (发布于 2013-03-26 17:41:45)
用户参与
星数168
关注者数18
派生数23
提交数38
已启用问题?
问题数16
打开的问题数6
拉请求数3
打开的拉请求数2
关闭的拉请求数4
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?