Difference between revisions of ".tpl"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* Examples: https://prometheus.io/docs/prometheus/latest/configuration/template_examples/
 
* Examples: https://prometheus.io/docs/prometheus/latest/configuration/template_examples/
<pre>
+
 
alert: InstanceDown
+
alert: InstanceDown
expr: up == 0
+
expr: up == 0
for: 5m
+
for: 5m
labels:
+
labels:
  severity: page
+
  severity: page
annotations:
+
[[annotations:]]
  summary: "Instance {{$labels.instance}} down"
+
  summary: "Instance {{$labels.instance}} down"
  description: "{{$labels.instance}} of job {{$labels.job}} has been down for more than 5 minutes."
+
  description: "{{$labels.instance}} of job {{$labels.job}} has been down for more than 5 minutes."
</pre>
 
  
  
 
  [[promtool check rules]]
 
  [[promtool check rules]]
  
 +
== Related ==
 +
* <code>[[helm create]]</code>
 +
* [[my-first-chart/templates/_helpers.tpl]]
  
 
== See also ==
 
== See also ==
* {{PromTool]]
+
* {{promtool check rules}}
 +
* {{promtool}}
 
* {{Prometheus}}
 
* {{Prometheus}}
  
 
[[Category:Prometheus]]
 
[[Category:Prometheus]]

Latest revision as of 10:23, 9 July 2024

Advertising: