Repository for Alert Templates

Is there a repository for code samples used to create Alert Templates? (Prometheus?)

Similar to the code below I used to configure a disk space alert.

templates:

  • name: HostOutOfDiskSpace
    version: 1
    summary: HostOutOfDiskSpace
    expr: (node_filesystem_avail_bytes * 100) / node_filesystem_size_bytes < 20 and ON (instance, device, mountpoint) node_filesystem_readonly == 0
    severity: warning
    annotations:
    summary: Host out of disk space (instance {{ $labels.instance }})
    description: “Disk is almost full (< 20% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}”
1 Like

Hi Mike,

There is no public repository with alert templates for PMM.

1 Like

I suppose I just need a list of metrics available for use within the PMM Alerts. Would this be available within the node_exporter documentation? Example : node_filesystem_avail_bytes

Thanks!

1 Like

Available metrics can be get in Explore.

e.g.

1 Like