Skip to content

Server Dashboard for Oracle, MongoDB and Redis #3609

Closed

Description

@datlechin

Problem

Database > Server Dashboard lists sessions, metrics and slow queries, with Cancel Query and Terminate Session, on PostgreSQL, Redshift, CockroachDB, MySQL, MariaDB, SQL Server and ClickHouse (features/server-dashboard.mdx:51-61), and shows metrics on Typesense (databases/typesense.mdx:101). On any other engine the menu item is dimmed. The engines with a dashboard are a closed list in apple/TablePro/Core/ServerDashboard/ServerDashboardQueryProviderFactory.swift:50-57.

Oracle, MongoDB and Redis are missing. Finding the session that holds a lock or the client hammering a server means writing the catalog query or admin command by hand, then another one to stop it.

Proposed solution

One provider per engine, behind the same dashboard:

  • Oracle: sessions from V$SESSION joined to V$SQL for the statement text, with LAST_CALL_ET as the duration. Metrics from V$SYSMETRIC and V$INSTANCE (sessions, CPU, logical reads per second, uptime). Cancel with ALTER SYSTEM CANCEL SQL 'sid, serial#' on 18c and later; terminate with ALTER SYSTEM KILL SESSION 'sid, serial#' IMMEDIATE.
  • MongoDB: operations from the $currentOp aggregation stage, metrics from serverStatus (current and available connections, operation counters, uptime, resident memory), and cancel with killOp. The profiler's system.profile feeds slow queries where profiling is on.
  • Redis: clients from CLIENT LIST (address, name, database, age, idle time, last command), metrics from INFO (connected clients, used memory, operations per second, keyspace hit ratio, uptime), slow queries from SLOWLOG GET, and terminate with CLIENT KILL ID. On a cluster, one row per node.
  • The rule the dashboard already follows holds here: what the account cannot see stays blank, and the dashboard says which privilege or ACL command is missing (features/server-dashboard.mdx:6).

Done when: each engine's sessions, metrics and slow queries fill in against a local server, and each Cancel or Terminate offered works and confirms first.

Alternatives considered

Query V$SESSION, run db.currentOp() or CLIENT LIST in a query tab, then run the kill command by hand.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    platform-macos
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions