The Simplest Way to Make Crossplane and Prtg Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use crossplane and prtg together to build cloud resources and watch their health. Crossplane creates databases and networks from code, while PRTG checks if those items stay online. This setup stops manual alert work for platform teams. When an engineer requests a new database, the cluster builds it and adds health sensors at the same time. The monitoring tool starts checking uptime right away without human steps. You get fresh cloud resources with active alerts from the very first minute.

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.

Teams use crossplane and prtg together to build cloud resources and watch their health. Crossplane creates databases and networks from code, while PRTG checks if those items stay online.

This setup stops manual alert work for platform teams. When an engineer requests a new database, the cluster builds it and adds health sensors at the same time. The monitoring tool starts checking uptime right away without human steps. You get fresh cloud resources with active alerts from the very first minute.

How crossplane and prtg share data and permissions

Crossplane runs inside a Kubernetes cluster and controls outside APIs through provider pods. Each provider pod reads desired state files and calls target APIs to make changes. To link these two tools, the cluster needs a way to talk to the monitoring server.

First, an admin creates a dedicated service account inside the monitoring server. That account gets a secret token or password for API calls. You store that secret inside the cluster secret store. The cluster controller reads the secret when it needs to log in to the monitoring API.

Data flows in one primary direction during setup. A developer writes a manifest to ask for a new server or database. Crossplane reads this file and builds the cloud resource first. Once the cloud provider returns an IP address or hostname, the cluster sends that address to PRTG. The monitoring tool then adds a new device and starts running ping or port checks. During ongoing checks, the cluster queries the monitoring API to confirm the sensor still exists. If someone deletes the sensor by hand, the controller puts it back right away.

Common failure modes and how to scope roles

Many teams make the mistake of using a single admin account for this link. If a shared admin key leaks from the cluster, an attacker can change every alert rule. Shared accounts also ruin your audit logs. When fifty cluster jobs use one login, you cannot see which team broke a sensor.

Broad API keys cause huge problems during a bad code push. A broken loop in a cluster composition can flood the monitoring server with thousands of requests. This flood can lock up the monitoring database or delete good sensors in other groups. Unlogged API queries also leave blind spots during security reviews. Also, health checks sometimes pull database rows that hold user emails or phone numbers. Putting raw results into open alert logs creates a privacy risk, so masking must rewrite matched fields in results.

Crossplane Composition Security + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can prevent these failures by scoping roles and network paths tightly. Give each team or namespace its own service account in the monitoring tool. Limit each account so it can only write to one specific device group. Never grant global admin rights to a cluster controller.

Lock down the network path between the cluster and the monitoring server as well. Use firewall rules so only specific controller pods can reach the monitoring API port. Set strict rate limits on the API to block runaway reconciliation loops. Finally, turn on detailed query logs so you can trace every change back to a single cluster request.

Keeping sensors clean during resource teardown

Creating sensors is only half of the daily lifecycle work. When teams delete test databases, old sensors often stay behind and fire false alarms. No one wants a pager alert at night for a test server that no longer exists.

Good deletion policies in your cluster manifests solve this headache. When a developer removes a cloud app, the controller tells the monitoring server to remove the matching device first. Once the sensor is gone, the controller deletes the cloud server. Your alert dashboards stay clean and accurate all day long.

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

How does Crossplane add a new device to PRTG?

The cluster controller reads the new cloud resource address and sends an API request to the monitoring server. That request creates the device object and attaches standard health sensors right away.

Why should we avoid shared admin keys between these tools?

Shared admin keys give the cluster full control to delete any sensor across your whole company. They also hide which specific team or workload made a bad change in the audit logs.

What happens when a developer deletes a managed cloud resource?

The cluster controller sees the delete event and calls the monitoring API to remove the matching sensors. This stops false alerts from firing after the cloud server shuts down.

The query runs. The emails stay hidden.