Monitor custom kubernetes pod metrics using Prometheus

You have to add this three annotation to your pods: prometheus.io/scrape: ‘true’ prometheus.io/path: ‘/data/metrics’ prometheus.io/port: ’80’ How it will work? Look at the kubernetes-pods job of config-map.yaml you are using to configure prometheus, – job_name: ‘kubernetes-pods’ kubernetes_sd_configs: – role: pod relabel_configs: – source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape] action: keep regex: true – source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path] action: replace target_label: __metrics_path__ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)