The Simplest Way to Make Linstor and Looker Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running linstor and looker together lets teams turn raw block storage metrics into clear charts. Linstor manages persistent storage volumes across clusters, while Looker reads database tables to build reports. This setup helps platform teams track disk use, replica health, and volume growth over time. Since Looker does not read Linstor directly, a SQL database sits between the two tools. An export job collects storage state from the Linstor controller and writes rows to SQL. Looker then runs qu

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Running linstor and looker together lets teams turn raw block storage metrics into clear charts. Linstor manages persistent storage volumes across clusters, while Looker reads database tables to build reports.

This setup helps platform teams track disk use, replica health, and volume growth over time. Since Looker does not read Linstor directly, a SQL database sits between the two tools. An export job collects storage state from the Linstor controller and writes rows to SQL. Looker then runs queries against those tables to show storage trends to the team.

How linstor and looker share data and permissions

Data moves from the storage cluster to the reporting app in three clear steps. First, the Linstor controller tracks volume placement, node status, and free space across storage pools. A scheduled collector script reads this state from the controller API on a set timer. That collector writes the fresh storage metrics into a central SQL database.

Second, the collector authenticates to the Linstor controller using a client certificate or token. That role only needs read rights on cluster metadata and resource status. It should never hold rights to create, resize, or delete storage volumes.

Third, Looker logs in to the SQL database to read the collected storage tables. Looker uses a dedicated database user to run analytical queries and build charts. This database role only needs permission to read specific reporting tables and views. Separating the collector writer role from the Looker reader role keeps the pipeline safe.

Common failure modes and how to scope roles

Many teams take shortcuts when they set up this reporting pipeline. One common mistake is giving Looker direct read access to the internal Linstor controller database. Heavy analytical queries can lock tables and slow down storage operations across the cluster. Always send metrics to a separate reporting database instead of querying the live controller store.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another risk comes from shared service accounts with broad database permissions. If Looker logs in with an admin database user, any report builder can query sensitive tables. Create a dedicated read-only SQL role just for the reporting app. Grant that role select rights only on the storage metric schema.

Shared database logins also make audit logs hard to read during a security check. When five teams query through one shared account, the database log shows only one user. Teams cannot tell which person ran an expensive query or viewed sensitive node details. You should also restrict network paths between the storage cluster, the database, and the reporting app. Allow the collector host to reach the Linstor API port, and block all other hosts. Allow Looker to reach only the reporting database port, not the storage nodes.

Finally, watch out for personal data that might slip into volume labels or tenant tags. If teams put customer emails or phone numbers in metadata tags, those strings enter SQL. Masking rules can rewrite emails, phone numbers, card numbers, or national IDs in query results.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Can Looker query the Linstor controller API directly?

No, Looker requires a SQL database to run queries and build charts. You must export Linstor cluster metrics into a SQL table before Looker can read them.

Why should Looker not read the live Linstor database?

Large reporting queries use heavy CPU and memory on the database server. Running them on the live controller store can slow down volume creation and failover tasks.

What database permissions does the Looker user need?

The Looker database user only needs read permissions on the reporting schema. Never grant write, drop, or admin rights to the account used for building dashboards.

The query runs. The emails stay hidden.