# my global config global: scrape_interval: 1h evaluation_interval: 1h #scrape_timeout: 20s # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: # - alertmanager:9093 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: # - "first_rules.yml" # - "second_rules.yml" # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself. scrape_configs: # The job name is added as a label `job=` to any timeseries scraped from this config. - job_name: "prometheus" # metrics_path defaults to '/metrics' # scheme defaults to 'http'. static_configs: - targets: ["localhost:9090"] - job_name: 'blackbox' metrics_path: /probe params: module: [http_2xx] file_sd_configs: - files: ['/etc/prometheus/blackbox-targets.yml'] relabel_configs: - source_labels: [__address__] # SNI@IP form. first part is domain name regex: "(.*)@.*" target_label: __param_hostname - source_labels: [__address__] # Take second Part for Target IP regex: ".*@(.*)" replacement: "https://${1}:443" target_label: __param_target - source_labels: [__address__] # Instance name is full line target_label: instance - source_labels: [] # Real blackbox ip replacement: 172.29.50.102:9115 target_label: __address__ # For basic auth #target_label: __param_headers