Update telegraf config
This commit is contained in:
		
							parent
							
								
									6fadc45e24
								
							
						
					
					
						commit
						589677c50a
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -7,7 +7,7 @@ | |||
|   flush_interval = "10s" | ||||
|   flush_jitter = "0s" | ||||
|   precision = "" | ||||
|   hostname = "node002.serguzim.me" | ||||
|   hostname = "{{ inventory_hostname }}" | ||||
|   omit_hostname = false | ||||
| 
 | ||||
| [[outputs.influxdb_v2]] | ||||
|  | @ -16,6 +16,13 @@ | |||
|   organization = "{{ svc.influxdb.organization }}" | ||||
|   bucket = "{{ svc.influxdb.bucket }}" | ||||
| 
 | ||||
| [[inputs.prometheus]] | ||||
|   urls = [ | ||||
|   {%- for host_data in opentofu.hosts.values() -%} | ||||
|     "https://{{ host_data.fqdn_vpn }}:2019/metrics", | ||||
|   {%- endfor -%} | ||||
|   ] | ||||
| 
 | ||||
| [[inputs.prometheus]] | ||||
|   urls = [ | ||||
|   {%- for url in svc.prometheus_unprotected.urls -%} | ||||
|  |  | |||
|  | @ -7,7 +7,6 @@ telegraf_svc: | |||
|     bucket: metrics | ||||
|   prometheus_unprotected: | ||||
|     urls: | ||||
|       - http://node002.vpn.serguzim.net:2019/metrics | ||||
|       - https://matrix.serguzim.me/_synapse/metrics | ||||
|       - https://push.serguzim.me/metrics | ||||
|       - https://tick.serguzim.me/metrics | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue