Add status service to healthchecks.io
This commit is contained in:
		
							parent
							
								
									a15e70d73d
								
							
						
					
					
						commit
						849b3a277d
					
				
					 2 changed files with 18 additions and 0 deletions
				
			
		|  | @ -46,3 +46,17 @@ resource "healthchecksio_check" "healthcheck" { | ||||||
|   timeout = 300 |   timeout = 300 | ||||||
|   grace = 600 |   grace = 600 | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | resource "healthchecksio_check" "status" { | ||||||
|  |   name = "status.serguzim.me" | ||||||
|  |   desc = "Monitoring for the status service" | ||||||
|  | 
 | ||||||
|  |   channels = [ | ||||||
|  |     data.healthchecksio_channel.email.id, | ||||||
|  |     data.healthchecksio_channel.signal.id, | ||||||
|  |     data.healthchecksio_channel.ntfy.id, | ||||||
|  |   ] | ||||||
|  | 
 | ||||||
|  |   timeout = 300 | ||||||
|  |   grace = 600 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @ -40,6 +40,10 @@ output "healthchecksio" { | ||||||
|         "ping_url" = check.ping_url |         "ping_url" = check.ping_url | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |     status = { | ||||||
|  |       "id" = healthchecksio_check.status.id | ||||||
|  |       "ping_url" = healthchecksio_check.status.ping_url | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue