# Best practice for testing Grafana app plugins without using live production data before publishing?

**URL:** <https://community.grafana.com/t/best-practice-for-testing-grafana-app-plugins-without-using-live-production-data-before-publishing/161604>\
**Category:** Grafana Plugin Development\
**Tags:** github, query-help, plugins\
**Created:** [February 9, 2026, 10:35am UTC](https://community.grafana.com/t/best-practice-for-testing-grafana-app-plugins-without-using-live-production-data-before-publishing/161604 "2026-02-09T10:35:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarika1731](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@sarika1731](https://community.grafana.com/u/sarika1731)\
**Post date:** [February 9, 2026, 10:35am UTC](https://community.grafana.com/t/best-practice-for-testing-grafana-app-plugins-without-using-live-production-data-before-publishing/161604/1 "2026-02-09T10:35:45Z")

</div>

Hi Grafana community 👋

I’m building an **App Plugin** (incident-first reliability / RCA style workflow) that correlates metrics, logs, traces, and Kubernetes context into a guided investigation view.

The plugin includes:

- A backend (Go) that aggregates data and builds incident timelines

- A frontend app UI inside Grafana

- A **TestData-based “chaos / simulation mode”** for safe testing (deterministic, synthetic, real-time streams via SSE)

- Clear labeling of **test vs prod mode** (no real telemetry is queried in test mode)

### My current challenge

I’m **not able to test against real production telemetry** , which means:

- I rely on Grafana **TestData** and synthetic events for most testing

- Some incident lists / lifecycle flows are generated or simulated

- End-to-end behavior is realistic, but the data source is not live production Prometheus/Loki/Tempo

I’ve followed Grafana plugin docs and TestData guidance, but I want to confirm best practices from experienced plugin authors.

### My questions

1. Is it acceptable to **publish a plugin for review** when:

2. Are reviewers generally okay with:

3. Is there a recommended **staging or non-prod testing pattern** for app plugins that require complex observability data, before catalog publication?

I want to make sure I’m aligning with Grafana’s expectations and not over-engineering pre-publish testing.

Any guidance from Grafana team members or plugin authors would be hugely appreciated 🙏  
Thanks!

* * *

## 

* * *

---

<div class="post-metadata">

**Author:** ![sunker](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sunker](https://community.grafana.com/u/sunker)\
**Post date:** [February 24, 2026, 11:51am UTC](https://community.grafana.com/t/best-practice-for-testing-grafana-app-plugins-without-using-live-production-data-before-publishing/161604/2 "2026-02-24T11:51:55Z")

</div>

Hi!

Totally understand the challenge. I’m afraid we currently don’t have a single best practice or standardized way to mock datasource or third-party responses for plugins since datasources vary a lot. In general, solid e2e coverage matters, and it’s up to the plugin author to decide where mocks make sense vs where live integrations are needed.

Using deterministic synthetic incidents and a clearly labeled simulation/test mode is fine and can be a good way to validate workflows and UI safely.

There may also be cases where Playwright network [mocking](https://playwright.dev/docs/mock) is useful. The plugine2e package includes some mocking abstractions too (it’s partly covered [here](https://grafana.com/developers/plugin-tools/e2e-test-a-plugin/test-a-data-source-plugin/data-queries#test-parts-of-the-query-editor-in-isolation)).

One important thing for catalog review though: we don’t have a shared testing environment for plugin submissions. The review team still needs a reliable way to test the plugin with actual data to approve it. In the submission form you’re asked to provide setup details for the review environment (how to provision datasources, required config, any credentials needed, sample data, etc), so make that as actionable as possible.

Whether a specific test strategy is sufficient for approval is hard to answer without seeing the repo and how the plugin behaves in practice. If you’re reasonably confident in your current setup, submit it and we’ll give concrete feedback during review.

Sorry I can’t give a more straight answer, but hope this helps set expectations and gives you a reasonable path forward.

/Erik
