Monitor External Applications
Learn to monitor third-party applications like Redis, MySQL, Nginx, and more using Prometheus exporters. Set up comprehensive monitoring for your entire application stack.
Popular Exporters
Redis Exporter
Monitor Redis database performance and metrics
Track Redis memory usage, connection counts, hit ratios, and command statistics.
Key Metrics:
redis-exporter
MySQL Exporter
Monitor MySQL database health and performance
Collect MySQL server metrics including query performance, connection status, and replication lag.
Key Metrics:
mysql-exporter
Nginx Exporter
Monitor Nginx web server metrics
Track HTTP request rates, response times, error rates, and upstream server health.
Key Metrics:
nginx-exporter
Elasticsearch Exporter
Monitor Elasticsearch cluster and indices
Monitor cluster health, index statistics, shard status, and search performance.
Key Metrics:
elasticsearch-exporter
Monitoring Setup Process
Deploy Exporter
Install the appropriate exporter for your application
Use Helm charts or Kubernetes manifests to deploy exporters alongside your applications.
$ helm install redis-exporter prometheus-community/prometheus-redis-exporter$ kubectl apply -f redis-exporter-deployment.yaml
Create ServiceMonitor
Configure Prometheus to scrape exporter metrics
Define ServiceMonitor resources to tell Prometheus how to discover and scrape your exporters.
apiVersion: monitoring.coreos.com/v1kind: ServiceMonitormetadata:name: redis-exporter-monitor
Configure Dashboards
Import Grafana dashboards for visualization
Use pre-built dashboards or create custom ones to visualize your application metrics.
$ Dashboard ID: 763$ Import dashboard in Grafana$ Configure data source as Prometheus
Set Up Alerts
Create alert rules for critical metrics
Define PrometheusRule resources to alert on important application metrics.
apiVersion: monitoring.coreos.com/v1kind: PrometheusRulemetadata:name: redis-alerts
Sample Monitoring Setups
Redis Monitoring
Complete Redis monitoring setup with exporter and dashboards
Components:
Dashboard ID:
763
Alert Types:
MySQL Monitoring
Comprehensive MySQL database monitoring solution
Components:
Dashboard ID:
7362
Alert Types:
Nginx Monitoring
Web server monitoring with performance metrics
Components:
Dashboard ID:
12559
Alert Types:
Best Practices
Monitoring Guidelines
Follow these best practices for effective third-party application monitoring.
- Use official exporters when available for better compatibility
- Configure appropriate scrape intervals based on application criticality
- Set up proper labels for service discovery and routing
- Use consistent naming conventions for ServiceMonitors
- Monitor exporter health and restart failed exporters
- Regularly update exporters to latest versions
- Test alert rules in staging environments before production
Quick Start Commands
Common Exporter Deployments
Quick deployment commands for popular exporters using Helm.
Redis Exporter
$ helm install redis-exporter prometheus-community/prometheus-redis-exporter \
--set redisAddress=redis://redis-service:6379
MySQL Exporter
$ helm install mysql-exporter prometheus-community/prometheus-mysql-exporter \
--set mysql.host=mysql-service --set mysql.user=exporter
Nginx Exporter
$ helm install nginx-exporter prometheus-community/prometheus-nginx-exporter \
--set nginx.scrapeUri=http://nginx-service/nginx_status
Ready to Monitor Your Own Apps?
Now that you can monitor third-party applications, learn how to instrument your own applications with custom metrics.