Observability
Teabar provides comprehensive observability features to help you monitor environment health, track costs, analyze usage patterns, and debug issues across your ephemeral infrastructure.
Overview
Observability in Teabar covers four key areas:
- Metrics - Real-time and historical performance data
- Cost Tracking - Resource consumption and billing analysis
- Activity Tracking - Audit logs and user activity
- Health Monitoring - Environment status and alerts
Note
All observability data is retained for 90 days by default. Enterprise plans can configure custom retention periods.
Key Features
Real-Time Dashboard
The Teabar dashboard provides at-a-glance visibility into:
- Active environments across all projects
- Resource utilization (CPU, memory, storage)
- Cost trends and projections
- Recent activity and deployments
Metrics Collection
Teabar automatically collects metrics from all environments:
# View current metrics for an environment
teabar metrics show my-env
# Export metrics to JSON
teabar metrics export --format json --output metrics.json
# Stream real-time metrics
teabar metrics stream my-env Alerting
Configure alerts to notify your team of important events:
# teabar.yaml
alerts:
- name: high-cost-warning
condition: daily_cost > 100
channels:
- slack:#platform-alerts
- email:[email protected]
- name: environment-unhealthy
condition: health_check_failed
channels:
- pagerduty:platform-oncall Quick Links
Metrics
Collect and analyze performance metrics from your environments
Cost Tracking
Monitor resource consumption and optimize cloud spending
Activity Tracking
Track user actions and environment changes
Health Monitoring
Monitor environment health and configure alerts
Checkpoints
Create and restore environment snapshots
Integration with External Tools
Teabar integrates with popular observability platforms:
| Platform | Integration Type | Features |
|---|---|---|
| Datadog | Native | Metrics, logs, APM |
| Prometheus | Export | Metrics scraping |
| Grafana | Dashboard | Visualization |
| PagerDuty | Alerts | Incident management |
| Slack | Notifications | Real-time alerts |
Example: Datadog Integration
# Configure Datadog integration
teabar config set integrations.datadog.api_key $DD_API_KEY
teabar config set integrations.datadog.site datadoghq.com
# Enable metrics forwarding
teabar config set integrations.datadog.metrics.enabled true Best Practices
- Set up alerts early - Configure cost and health alerts before environments scale
- Review metrics weekly - Identify optimization opportunities in resource usage
- Use checkpoints - Create snapshots before major changes for easy rollback
- Tag environments - Use consistent labels for easier filtering and analysis
- Export data regularly - Back up observability data to your own storage
CLI Commands
| Command | Description |
|---|---|
teabar metrics | View and export environment metrics |
teabar logs | Access environment logs |
teabar activity | View recent activity |
teabar checkpoint | Manage environment snapshots |