Skip to content

Commit b3675e3

Browse files
lrochetteafzal442
authored andcommitted
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]> Signed-off-by: Afzal Ansari <[email protected]>
1 parent f707dc9 commit b3675e3

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
@@ -41,7 +41,22 @@ stringData:
4141
grafana-api-key: api-key
4242
```
4343
44-
7. Create subscription for your Grafana integration
44+
7. Create a template in `argo-notifications-cm` Configmap
45+
This will be used to pass the (required) text of the annocation to Grafana (or re-use an existing one)
46+
As there is no specific template for Grafana, you must use the generic `message`:
47+
48+
```yaml
49+
apiVersion: v1
50+
kind: ConfigMap
51+
metadata:
52+
name: argocd-notifications-cm
53+
data:
54+
templates:
55+
template.app-deployed: |
56+
messsage: Application {{.app.metadata.name}} is now running new version of deployments manifests.
57+
```
58+
59+
8. Create subscription for your Grafana integration
4560

4661
```yaml
4762
apiVersion: argoproj.io/v1alpha1
@@ -51,5 +66,5 @@ metadata:
5166
notifications.argoproj.io/subscribe.<trigger-name>.grafana: tag1|tag2 # list of tags separated with |
5267
```
5368

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

0 commit comments

Comments
 (0)