Difference between revisions of "Prometheus addtional-scrape-configs"
Jump to navigation
Jump to search
(Created page with "https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/additional-scrape-config.md https://blog.checklyhq.com/autoscaling-checkly-agents-with-keda...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | https:// | + | https://stackoverflow.com/questions/55360726/how-to-add-extrascrapeconfigs-to-prometheus-helm-chart-from-set-argument |
+ | ``` | ||
+ | - job_name: 'sample-pods' | ||
+ | scrape_interval: 1s | ||
+ | metrics_path: / | ||
+ | kubernetes_sd_configs: | ||
+ | - role: endpoints | ||
+ | 2. We deploy stable/prometheus helm chart: | ||
+ | |||
+ | sudo helm upgrade --install prometheus \ | ||
+ | --set rbac.create=true \ | ||
+ | --set server.persistentVolume.enabled=false \ | ||
+ | --set alertmanager.persistentVolume.enabled=false \ | ||
+ | --set alertmanager.enabled=false \ | ||
+ | --set kubeStateMetrics.enabled=false \ | ||
+ | --set nodeExporter.enabled=false \ | ||
+ | --set pushgateway.enabled=false \ | ||
+ | --set-file extraScrapeConfigs=extraScrapeConfigs.yaml \ | ||
+ | stable/prometheus | ||
+ | ``` | ||
https://blog.checklyhq.com/autoscaling-checkly-agents-with-keda-in-kubernetes/ | https://blog.checklyhq.com/autoscaling-checkly-agents-with-keda-in-kubernetes/ | ||
+ | |||
+ | https://prometheus.io/docs/prometheus/latest/configuration/configuration/ | ||
+ | |||
+ | https://se7entyse7en.dev/posts/how-to-set-up-kubernetes-service-discovery-in-prometheus/ | ||
+ | |||
+ | https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/additional-scrape-config.md |
Latest revision as of 15:33, 4 December 2023
- job_name: 'sample-pods' scrape_interval: 1s metrics_path: / kubernetes_sd_configs: - role: endpoints 2. We deploy stable/prometheus helm chart: sudo helm upgrade --install prometheus \ --set rbac.create=true \ --set server.persistentVolume.enabled=false \ --set alertmanager.persistentVolume.enabled=false \ --set alertmanager.enabled=false \ --set kubeStateMetrics.enabled=false \ --set nodeExporter.enabled=false \ --set pushgateway.enabled=false \ --set-file extraScrapeConfigs=extraScrapeConfigs.yaml \ stable/prometheus
https://blog.checklyhq.com/autoscaling-checkly-agents-with-keda-in-kubernetes/
https://prometheus.io/docs/prometheus/latest/configuration/configuration/
https://se7entyse7en.dev/posts/how-to-set-up-kubernetes-service-discovery-in-prometheus/