Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMS does not contain expected text #100

Open
mcf-rocks opened this issue Aug 30, 2021 · 1 comment
Open

SMS does not contain expected text #100

mcf-rocks opened this issue Aug 30, 2021 · 1 comment

Comments

@mcf-rocks
Copy link

mcf-rocks commented Aug 30, 2021

I have this in the alert rules:

      expr: node_disk_device_size_used_perc > 60
      for: 1m
      labels:
        severity: "warning"
      annotations:
        description: "Disk device {{ $labels.device }} on {{ $labels.instance }} at {{ $value }}% used"

What I get in my text message is:

FIRING
device=/dev/sda1
instance=bababoom
job=bababoomjob
severity=warning

I would like the text to contain the description -- do you know how ot do it?

@mcf-rocks
Copy link
Author

I also tried like this

rules:
      labels:
        severity: "warning"
        text: "Disk device {{ $labels.device }} on {{ $labels.instance }} at {{ $value }}% used"

and

sachet.yaml:
    text: '{{ .Labels.text }}'

Now I don't even get the text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant