| 
									
										
										
										
											2015-05-07 22:47:18 +08:00
										 |  |  | # my global config
 | 
					
						
							| 
									
										
										
										
											2015-05-20 00:12:58 +08:00
										 |  |  | global:
 | 
					
						
							| 
									
										
										
										
											2021-06-12 18:47:47 +08:00
										 |  |  |   scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
 | 
					
						
							| 
									
										
										
										
											2016-11-21 16:53:59 +08:00
										 |  |  |   evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
 | 
					
						
							| 
									
										
										
										
											2015-05-07 22:47:18 +08:00
										 |  |  |   # scrape_timeout is set to the global default (10s).
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-01 06:02:08 +08:00
										 |  |  | # Alertmanager configuration
 | 
					
						
							|  |  |  | alerting:
 | 
					
						
							|  |  |  |   alertmanagers:
 | 
					
						
							| 
									
										
										
										
											2021-06-12 18:47:47 +08:00
										 |  |  |     - static_configs:
 | 
					
						
							|  |  |  |         - targets:
 | 
					
						
							|  |  |  |           # - alertmanager:9093
 | 
					
						
							| 
									
										
										
										
											2017-11-01 06:02:08 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-03 14:29:51 +08:00
										 |  |  | # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
 | 
					
						
							| 
									
										
										
										
											2015-05-07 22:47:18 +08:00
										 |  |  | rule_files:
 | 
					
						
							| 
									
										
										
										
											2017-11-01 06:02:08 +08:00
										 |  |  |   # - "first_rules.yml"
 | 
					
						
							|  |  |  |   # - "second_rules.yml"
 | 
					
						
							| 
									
										
										
										
											2015-05-07 22:47:18 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-25 04:06:36 +08:00
										 |  |  | # A scrape configuration containing exactly one endpoint to scrape:
 | 
					
						
							| 
									
										
										
										
											2015-05-07 22:47:18 +08:00
										 |  |  | # Here it's Prometheus itself.
 | 
					
						
							|  |  |  | scrape_configs:
 | 
					
						
							|  |  |  |   # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
 | 
					
						
							| 
									
										
										
										
											2021-06-12 18:47:47 +08:00
										 |  |  |   - job_name: "prometheus"
 | 
					
						
							| 
									
										
										
										
											2015-05-07 22:47:18 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     # metrics_path defaults to '/metrics'
 | 
					
						
							|  |  |  |     # scheme defaults to 'http'.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-14 15:39:34 +08:00
										 |  |  |     static_configs:
 | 
					
						
							| 
									
										
										
										
											2021-06-12 18:47:47 +08:00
										 |  |  |       - targets: ["localhost:9090"]
 |