← Back to DAGDA | Support | Source: https://github.com/MapColonies/grafana-word-cloud-plugin
Skip to content

About

Modern Word Cloud / Tag Cloud panel plugin for Grafana v13+ (React 19)

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MapColonies Word Cloud Panel Logo

MapColonies Word Cloud Panel for Grafana

A modern, deterministic, React 19–native Word Cloud / Tag Cloud visualization for Grafana v13+.

CI Release Grafana >=13.0.0 React 19 License: MIT

Features · Screenshots · Deployment · Data Sources · Panel Options · Local Demo · Migration


MapColonies Word Cloud Panel — Interactive Tooltips, Log Tokenization & Hebrew RTL

Why mapcolonies-wordcloud-panel?

Built from the ground up by MapColonies as a robust, actively maintained replacement for the unmaintained magnesium-wordcloud-panel:

  • Grafana v13+ & React 19 Native: Zero legacy @grafana/toolkit or abandoned react-wordcloud dependencies. Built on @grafana/create-plugin, @grafana/* 13.x SDKs, and d3-cloud v2.

  • Stable Across Refreshes: Uses a deterministic Mulberry32 seeded PRNG so your word cloud never jumps around randomly on every dashboard refresh.

  • Works With Any Data Source: SQL (PostgreSQL, MySQL, ClickHouse), Elasticsearch, OpenSearch, Prometheus, Loki, InfluxDB, Infinity/JSON, and TestData.

  • Plugin ID: mapcolonies-wordcloud-panel

  • Grafana Compatibility: >= 13.0.0 (verified via automated Playwright E2E across 13.0, 13.1, 13.2, 13.3, and nightly)


Features

Capability Details
Dual Data Ingestion Pre-aggregated (fields) mode auto-detects word + value columns (with manual pickers), or switch to client-side tokenize mode to split raw logs/text with Unicode regex, case folding, and stop-word filtering.
Multi-Frame & Wide-Format Support Merges duplicate words across rows and DataFrames (sum, max, mean, count) and automatically falls back to series displayName for Prometheus and wide-format Elasticsearch queries.
Crisp Declarative SVG & RTL Declarative React 19 <svg> rendering powered by d3-cloud v2 — razor-sharp at any DPI, debounced on panel resize, with full Unicode, emoji, and Hebrew/Arabic (RTL) support.
Native Grafana FieldConfig Full support for Grafana color schemes (Continuous palettes, Thresholds, Classic Palette, Single Color), units, decimals, value mappings, overrides, plus an optional per-word colorField column.
Rich Interactivity Theme-aware hover tooltips (full untruncated word, formatted value, % share), smooth hover dimming, native DataLinks (direct open or multi-link menu), keyboard accessibility, and click-to-set dashboard variables ($selected_word).
Typography & Layout Controls Configurable font family/weight, min/max font sizes, linear / sqrt / log scaling, archimedean / rectangular spirals, rotation presets (horizontal, 0°/90°, custom range), word padding, truncation, and layout seed.

Screenshots

Custom Colors, Orthogonal Rotation & Live Elasticsearch (Terms + Raw Data)

Custom Color Column, Orthogonal Rotation, and Elasticsearch Terms & Raw Logs Tokenization

Native Grafana v13 Panel Options Editor

Grafana v13 Panel Options Editor for MapColonies Word Cloud Panel


Deployment & Installation

Replace v1.0.2 / 1.0.2 below with any tag from the GitHub Releases page.

Unsigned Plugin Note: Releases published without a GRAFANA_ACCESS_POLICY_TOKEN are unsigned. Grafana requires explicitly allowlisting unsigned plugins via GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=mapcolonies-wordcloud-panel (or allow_loading_unsigned_plugins = mapcolonies-wordcloud-panel under [plugins] in grafana.ini). If you sign the plugin with a Grafana Access Policy token, this allowlist is not required.

1. Grafana CLI (Direct from GitHub Releases)

grafana cli \
  --pluginUrl https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip \
  plugins install mapcolonies-wordcloud-panel

Add the allowlist to grafana.ini (if using an unsigned release) and restart Grafana:

[plugins]
allow_loading_unsigned_plugins = mapcolonies-wordcloud-panel

2. Docker / Docker Compose

Pass the GitHub Release .zip URL directly to GF_INSTALL_PLUGINS:

services:
  grafana:
    image: grafana/grafana:13.2.4
    ports:
      - '3000:3000'
    environment:
      GF_INSTALL_PLUGINS: 'https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip;mapcolonies-wordcloud-panel'
      GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: 'mapcolonies-wordcloud-panel'

3. Kubernetes / Helm (grafana/grafana Chart)

Add the plugin URL and allowlist to your Helm values.yaml:

plugins:
  - https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip;mapcolonies-wordcloud-panel

grafana.ini:
  plugins:
    allow_loading_unsigned_plugins: mapcolonies-wordcloud-panel

For air-gapped Kubernetes clusters, mirror mapcolonies-wordcloud-panel-1.0.2.zip to your internal artifact registry (Artifactory / Nexus / S3 / Nginx) and point plugins: to that internal URL (or mount the unzipped mapcolonies-wordcloud-panel/ directory into /var/lib/grafana/plugins/mapcolonies-wordcloud-panel via an initContainer / PVC).

4. Manual / Air-Gapped Installation (with SHA256 Verification)

# 1. Download the release archive and checksum file
curl -LO https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/mapcolonies-wordcloud-panel-1.0.2.zip
curl -LO https://github.com/MapColonies/grafana-word-cloud-plugin/releases/download/v1.0.2/SHA256SUMS

# 2. Verify archive integrity
sha256sum -c SHA256SUMS

# 3. Extract into Grafana's plugins directory
unzip mapcolonies-wordcloud-panel-1.0.2.zip -d /var/lib/grafana/plugins/

# 4. Restart Grafana
sudo systemctl restart grafana-server

5. Optional: Private / Community Signing

To publish signed releases automatically in GitHub Actions, generate a Grafana Access Policy Token and save it as a repository secret named GRAFANA_ACCESS_POLICY_TOKEN. The Release workflow automatically runs pnpm run sign when this secret is present.


Data Source Query Recipes

PostgreSQL / SQL (fields mode)

SELECT word, count, color
FROM word_frequencies
ORDER BY count DESC;
  • Set Input mode to Word + Value fields (default).
  • Optional: set Color field to color to use per-row hex/CSS colors instead of Grafana FieldConfig palettes.

Elasticsearch (Terms Aggregation)

  • Metric: Count
  • Group by: Terms -> tag (or service.keyword), Order by Doc Count desc.
  • Leave Word / text field and Value / count field empty (auto-detected).

Elasticsearch (Raw Data) / Loki (tokenize mode)

  • Query raw log documents (Elasticsearch Raw Data metric or Loki log query).
  • Set Input mode to Tokenize text.
  • Set Word / text field to message (Elasticsearch) or Line (Loki).
  • Configure Stop words (e.g., the, and, in, to, for, of) and Case normalization (Lowercase).

Prometheus (Time-Series Fallback)

sum by (service) (increase(http_requests_total[1h]))
  • Leave Word / text field and Value / count field empty; the plugin automatically extracts each series' displayName as the word and aggregates its numeric values.

Panel Options Reference

Category Option Description
Data Input mode Word + Value fields (pre-aggregated) or Tokenize text (client-side word counting).
Data Word / Value / Color field Explicit field pickers (auto-detects first string & numeric fields when empty).
Data Duplicate word aggregation Combine duplicate words across rows/frames via Sum, Max, Mean, or Count.
Data Max words / Minimum value / Stop words Cap rendered words (default 150), filter low-frequency terms, and exclude stop words.
Tokenization Delimiter regex / Case normalization Unicode-aware regex split (default [^\p{L}\p{N}_-]+) and Lowercase / Uppercase / Preserve.
Typography & Layout Font family / Font weight / Min & Max size Inherits Grafana theme font by default; configurable pixel bounds.
Typography & Layout Font size scale / Spiral / Padding Linear, Sqrt, or Log scaling; Archimedean or Rectangular spiral.
Typography & Layout Rotation / Max word length / Layout seed Horizontal, 0° / 90°, or custom angle steps; Unicode-safe truncation; deterministic seed.
Interactivity Tooltip / Percentage share Theme-aware hover tooltip showing full word, formatted value, and % share.
Interactivity Click-to-set dashboard variable Optional dashboard variable name (without $) updated via locationService when clicking a word.
Standard options Color scheme / Thresholds / Units / Data links Native Grafana FieldConfig styling and link interpolation (${__data.fields.*}, ${__value.raw}).

Local Development Stack (Docker Compose)

This repository includes a self-contained docker-compose.yaml bundling Grafana 13.2.4, PostgreSQL 16, Elasticsearch 8.17, automatic seed scripts (provisioning/seed/01-seed.sql and provisioning/seed/seed-es.sh), provisioned datasources, and a 7-panel demo dashboard.

# 1. Install dependencies & build the plugin
pnpm install
pnpm run build

# 2. Start PostgreSQL + Elasticsearch (auto-seeded) + Grafana 13
docker compose up --build

Open http://localhost:3001/d/mapcolonies-wordcloud-demo (override port via GRAFANA_PORT=3000).

On-Demand Re-Seeding

pnpm run seed                                 # Re-seed PostgreSQL + Elasticsearch
pnpm run seed -- --only postgres --stress 300 # Re-seed PostgreSQL + 300 synthetic words
pnpm run seed -- --only es                    # Re-seed Elasticsearch index with fresh timestamps

Scripts & Testing

pnpm run dev            # Watch-mode webpack build
pnpm run typecheck      # TypeScript check
pnpm run lint           # ESLint check
pnpm run test:ci        # Jest + React Testing Library unit tests
pnpm run build          # Production bundle -> dist/
pnpm run validate:react # Scan built bundle for React 19 compatibility
GRAFANA_URL=http://localhost:3001 pnpm run e2e # Playwright E2E against Docker Compose stack

Migrating from magnesium-wordcloud-panel

See MIGRATION.md for manual migration steps and the automated dashboard JSON migration CLI (pnpm run migrate:dashboard).

Contributing & Security

License

MIT © MapColonies

About

Modern Word Cloud / Tag Cloud panel plugin for Grafana v13+ (React 19)

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages