Grafana Cloud

Requirements and overhead

Review system requirements, database permissions, and performance impact before setting up Database Observability. This page covers what you need to run Alloy, what access your monitoring user requires, and how much overhead to expect on your databases.

System requirements

Grafana Cloud

RequirementDetails
AccountGrafana Cloud account with Editor or Admin role
StackAccess to Grafana Cloud Mimir (metrics) and Grafana Cloud Loki (logs) data sources
PermissionsAbility to view and create dashboards

Grafana Alloy

RequirementDetails
VersionGrafana Alloy 1.13.0 or later
Stability levelRun with --stability.level=public-preview flag
NetworkOutbound access to Grafana Cloud endpoints
Database accessNetwork connectivity to monitored databases

PostgreSQL requirements

RequirementMinimum versionNotes
PostgreSQL14PostgreSQL 13 and earlier are not supported
pg_stat_statementsRequiredExtension must be installed and enabled; requires restart
Monitoring userRequiredUser with pg_monitor and pg_read_all_stats roles

For detailed configuration and permission setup, refer to Set up PostgreSQL.

MySQL requirements

RequirementMinimum versionNotes
MySQL8.0MySQL 5.7 and earlier are not supported
MariaDBNot supportedPerformance Schema implementation differs from MySQL
Performance SchemaRequiredEnabled by default in MySQL 8.0+
Monitoring userRequiredUser with PROCESS, REPLICATION CLIENT, and SELECT privileges on performance_schema

For detailed configuration and permission setup, refer to Set up MySQL.

Performance overhead

Database Observability is designed to minimize impact on your production databases. Understanding the overhead helps you make informed decisions about collection intervals and features.

Database query overhead

The monitoring queries executed by Alloy are lightweight read operations:

Query typeDatabaseNotes
pg_stat_statementsPostgreSQLReads cached statistics
pg_stat_activityPostgreSQLReads active session info
Performance SchemaMySQLReads cached statistics
Query samples (MySQL)MySQLCaptures running queries
Query samples (PostgreSQL)PostgreSQLCaptures running queries
Schema detailsBothCached, reads metadata
Explain plansBothRuns EXPLAIN on sampled queries

Explain plan considerations:

Explain plans execute EXPLAIN (not EXPLAIN ANALYZE) on sampled queries. This operation:

  • Does not execute the query
  • Uses cached statistics to estimate costs
  • Has minimal overhead for most queries
  • Can be disabled if needed via collector configuration

Reduce overhead

If you need to reduce monitoring overhead:

  1. Increase collection intervals: Change collect_interval from 1 minute to 5 minutes
  2. Reduce explain plan sampling: Set explain_plans.per_collect_ratio to 0.5 or lower
  3. Exclude schemas: Use exclude_schemas (MySQL) or exclude_databases (PostgreSQL) to skip non-critical databases

Checklist before setup

Before proceeding with setup, verify:

  • Grafana Cloud account is active with appropriate permissions
  • Database version meets minimum requirements
  • Required extensions/features are enabled (pg_stat_statements, Performance Schema)
  • Network connectivity exists between Alloy location and databases
  • Network connectivity exists between Alloy location and Grafana Cloud
  • Monitoring user credentials are ready
  • Database team is aware of monitoring overhead expectations