How do you collect metrics from applications that cannot expose `/metrics` (legacy, Windows, closed-source)?
IntermediateProductionKubernetes & Multi-Cluster Observability
Answer
Pick the closest translator:
- Exporters that sit next to the system: mysqld_exporter, postgres_exporter, windows_exporter, JMX exporter as a Java agent.
- Log-derived metrics in Alloy, Vector or Loki recording rules when the only output is logs.
- OTel Collector receivers (
hostmetrics,sqlquery,jmx,statsd) converting to Prometheus with theprometheusexporter orprometheusremotewrite. - StatsD/Graphite bridges (
statsd_exporter,graphite_exporter) with mapping configs that turn dotted names into labels.
Always map to bounded labels, and treat the exporter as part of the service's deployment so it scales and is monitored (up) like the app.
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?Intermediate