Skip to content

Commit 3ec18d4

Browse files
authored
docs: Adding info about template for Grafana service (#386)
* Adding info about template Signed-off-by: lrochette <[email protected]> * signing off Signed-off-by: lrochette <[email protected]> --------- Signed-off-by: lrochette <[email protected]>
1 parent e3fe626 commit 3ec18d4

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

docs/services/grafana.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,22 @@ stringData:
3737
grafana-api-key: api-key
3838
```
3939
40-
7. Create subscription for your Grafana integration
40+
7. Create a template in `argo-notifications-cm` Configmap
41+
This will be used to pass the (required) text of the annocation to Grafana (or re-use an existing one)
42+
As there is no specific template for Grafana, you must use the generic `message`:
43+
44+
```yaml
45+
apiVersion: v1
46+
kind: ConfigMap
47+
metadata:
48+
name: argocd-notifications-cm
49+
data:
50+
templates:
51+
template.app-deployed: |
52+
messsage: Application {{.app.metadata.name}} is now running new version of deployments manifests.
53+
```
54+
55+
8. Create subscription for your Grafana integration
4156

4257
```yaml
4358
apiVersion: argoproj.io/v1alpha1
@@ -47,5 +62,5 @@ metadata:
4762
notifications.argoproj.io/subscribe.<trigger-name>.grafana: tag1|tag2 # list of tags separated with |
4863
```
4964

50-
8. Change the annotations settings
51-
![8](https://user-images.githubusercontent.com/18019529/112022083-47fb0600-8b75-11eb-849b-d25d41925909.png)
65+
9. Change the annotations settings
66+
![8](https://user-images.githubusercontent.com/18019529/112022083-47fb0600-8b75-11eb-849b-d25d41925909.png)

0 commit comments

Comments
 (0)