Applications are the foundational namespace unit in Castrel for organizing and isolating operational context. If you have multiple unrelated business systems within the same Castrel tenant, Applications allow you to keep them logically separated.
An Application is a container that groups related operational resources together:
Services and Infrastructures
Both Services and Infrastructures belong to an Application. They are connected through Service Instances:
This model captures the relationship between what your application does (Services) and where it runs (Infrastructures).
Public Services and Public Infrastructures
In real-world scenarios, multiple Applications often share common components:
mysql Service entry, but both reference the same Public Service definition. This allows each team to maintain application-specific knowledge while sharing common documentation.Connectors (Global)
Connectors are global resources that represent data sources like Prometheus, Elasticsearch, or Grafana Loki. They are not scoped to any specific Application.
Applications record which Connectors contain their observability data. This linkage tells Castrel: "When investigating this Application, query these Connectors for relevant data."
Context Isolation
When investigating incidents or triaging alerts, Castrel uses the Application boundary to scope its analysis:
Multi-Team Support
Different teams can work independently within their own Applications:
app-ecommerceapp-data-platformOnce configured, Castrel will automatically scope its operations to the appropriate Application context.