prometheus: rename annotation message to summary
This commit is contained in:
		
							parent
							
								
									c3e907f3f3
								
							
						
					
					
						commit
						1babcc195c
					
				|  | @ -45,7 +45,7 @@ func init() { | ||||||
| 			firingAlerts := request.Alerts.Firing() | 			firingAlerts := request.Alerts.Firing() | ||||||
| 			if len(firingAlerts) > 0 { | 			if len(firingAlerts) > 0 { | ||||||
| 				for _, a := range firingAlerts { | 				for _, a := range firingAlerts { | ||||||
| 					if description, ok := a.Annotations["message"]; ok { | 					if description, ok := a.Annotations["summary"]; ok { | ||||||
| 						content = fmt.Sprintf("%s\n%s", content, description) | 						content = fmt.Sprintf("%s\n%s", content, description) | ||||||
| 						html = fmt.Sprintf("%s<br/>%s", html, description) | 						html = fmt.Sprintf("%s<br/>%s", html, description) | ||||||
| 					} | 					} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue