Docs

Dashboard and graphs

Dashboard and graphs

The Dashboard is the first page of the panel. It's where staff act, see what's happening, and check the network is working.

What's on it

From the top:

Section Who sees it What
Look someone up, Take action View records; staff who may take any action Buttons to People and to the Enforce page (below)
Finish setting up Admins, until first-run setup is finished A link to Set up
Figures View records Active bans, timeouts running, cases this week and auto-mod hits this week, each with a small trend line and a link to the list behind it
Actions, last 30 days View records A chart of actions, for your current server or the whole network
Needs attention View records Anything waiting on staff: auto-mod paused by the safety brake, timeouts ending within the hour, servers with problems, and servers waiting to be confirmed
Latest cases View records The newest cases, each with the person's main alias and Discord ID, linked to their record
Network status View records (buttons: admins) Every server, with no problems or what needs attention, and servers waiting to be confirmed (below)
Charts View records The network's charts and your own (below)

Latest cases and Network status update by themselves when something changes. Each section's Refresh button reloads only that section, any time.

Arranging the cards

Customise at the top of the Dashboard lets you arrange its cards: drag a card (or use its ← → arrows) to move it, pick its width (a quarter up to full), or hide it with the crossed-out eye. Hidden cards are listed in the bar at the top as Show … buttons. Done finishes; Reset goes back to the usual layout. Each change is saved as you make it, with your sign-in, so your layout follows you to every device, and only you see it. A person's Summary tab has the same Customise button, with one layout for every person you open. On a phone, cards keep your order but are always full width.

Taking action

Take action opens the Enforce page, where staff sanction one or more people at once: add them by Discord ID, @mention or a name the bot has seen, then choose the action, reason, length and server. See Initiating a sanction.

Network status

One row per server in the network: a green dot when everything works, or an amber one with each problem and how to fix it. The checks are listed in Managing servers and networks. They include missing permissions, the bot's role being too low, missing or unreachable channels, an unlocked message-log channel, and mirroring failures in the last 24 hours.

  • Servers asking to join the network, or to move to it from another, are listed under Asking to join, with who asked. Admins Confirm or Decline them.
  • Admins get Confirm for those and Remove for servers in the network, and Lock again for a message-log channel whose permissions were changed.
  • Add server goes to Your servers.

Programs get the same answer from GET /api/v1/network/status.

Charts

Below Network status are charts: the network's charts first, then your own.

The network's charts are set by admins in Settings → Dashboard and shown to everyone. On a new install they are:

Chart Shows
Sanctions by type Bans, mutes, timeouts and so on, each day for 30 days, stacked
Sanctions by source Slash commands, the panel, the API, auto-mod, Discord's own menus and Discord's AutoMod, each week for 90 days
Auto-mod hits by rule Each day for 30 days
Joins and leaves First appearances, rejoins and departures, each day for 30 days, as lines
Active sanctions The number of bans, mutes and timeouts in force now, with its trend over 30 days
Member count People in the network each day for 90 days, each person counted once (below)

Networks set up before Member count was one of these get it added once, at the end, unless they already have a network chart counting members.

Reading a chart

  • Point at a chart, or tab to it and use the arrow keys, to read every series at that date.
  • Show as a table, under each chart, lists every number.
  • Dates follow your time zone (Your settings).
  • With a current server chosen, charts count only that server. Choose Whole network to see everything.
  • You only ever see counts from servers your roles let you view. Charts split by moderator are shown only to admins.
  • At most 8 series are drawn; the rest are added together as Other.

Adding your own

Add a chart makes one that only you see. Choose:

Option Choices
What it counts Sanctions, All cases (notes and lifts included), Active sanctions, Auto-mod hits, Joins and leaves, First appearances, Deleted messages, Member count (below)
Split by Nothing (one total), Action, Source, Server, Moderator, Auto-mod rule, or Join or leave. Each measure offers the ones that make sense for it.
How far back 1 to 365 days
Step Hour, day, week (starting Monday) or month, up to 400 steps
Drawn as Stacked bars, bars side by side, lines, or a number with its trend
Title Up to 60 characters; empty uses the measure's name

The ⋯ menu on a chart edits, moves or deletes your own charts, and hides one of the network's from your dashboard. Show hidden charts brings them back. Your charts and hidden charts are saved with your sign-in, so they follow you to every device.

Member counts

Member count is how many people were in the servers at the end of each step, each person counted once. With Nothing (one total) it is the whole network: someone in several servers counts once, and accounts linked on one person's record (alts) count as that one person, so it is not the servers' counts added up. With Server, each server counts the people in it the same way, so a person in two servers appears in both. With a current server chosen, it counts only that server.

It is a level, like Active sanctions: A number, with its trend shows the count now. It is worked out from the member lists and the arrivals and departures the bot records, so today's number matches the member lists. When the bot joins a server it records everyone already there at the date they joined, so the line goes back to the server's start, but before the bot joined it only knows the people who were still there then, so earlier numbers can be low.

Personal charts need the Personal dashboard charts feature of the network's plan (included in every plan today).

Changing the network's charts

Admins edit, add, reorder and delete the network's charts in Settings → Dashboard, with the same options. Changes show on everyone's dashboard at once. Staff can hide a network chart for themselves, but can't change it.

Graphs in Grafana

The dashboard's charts are the quick version. For long-term graphs and alerts, point Grafana (through Prometheus) at the bot's /metrics:

  1. Set REVENGEBOT_METRICS_TOKEN to a long random string and restart the bot. Without it, /metrics is off.
  2. Add a Prometheus scrape job that sends the token as a bearer token (example).
  3. In Grafana, add the Prometheus data source and graph the revengebot_… metrics: cases by type and source, active sanctions, mirror failures, auto-mod hits, member events, webhook deliveries, servers, members per server, the auto-mod safety brake and the Discord connection.

Other programs can read the dashboard's own numbers from GET /api/v1/stats/series, with a key that has the stats:read scope (API).

Are you sure?