This commit is contained in:
dpavle 2024-04-15 14:34:24 +00:00
parent 34cac5e335
commit 0ebd217928

View file

@ -200,7 +200,7 @@ To check whether it is installed, run <code class="code docutils literal notrans
<a class="ansibleOptionLink" href="#parameter-main--prometheus_alert_rules" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>Full list of alerting rules which will be copied to <code class="docutils literal notranslate"><span class="pre">{{</span> <span class="pre">prometheus_config_dir</span> <span class="pre">}}/rules/ansible_managed.rules</span></code>.</p>
<p>Alerting rules can be also provided by other files located in <code class="docutils literal notranslate"><span class="pre">{{</span> <span class="pre">prometheus_config_dir</span> <span class="pre">}}/rules/</span></code> which have a <code class="docutils literal notranslate"><span class="pre">*.rules</span></code> or <code class="docutils literal notranslate"><span class="pre">*.rules.yml</span></code> extension</p>
<p>Alerting rules can be also provided by other files located in <code class="docutils literal notranslate"><span class="pre">{{</span> <span class="pre">prometheus_config_dir</span> <span class="pre">}}/rules/</span></code> which have a <code class="docutils literal notranslate"><span class="pre">*.yml</span></code> extension</p>
<p>Please see default values in role defaults/main.yml</p>
</div></td>
</tr>
@ -209,7 +209,7 @@ To check whether it is installed, run <code class="code docutils literal notrans
<a class="ansibleOptionLink" href="#parameter-main--prometheus_alert_rules_files" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
</div></td>
<td><div class="ansible-option-cell"><p>List of folders where ansible will look for files containing alerting rules which will be copied to <code class="docutils literal notranslate"><span class="pre">{{</span> <span class="pre">prometheus_config_dir</span> <span class="pre">}}/rules/</span></code>.</p>
<p>Files must have a <code class="docutils literal notranslate"><span class="pre">*.rules</span></code> or <code class="docutils literal notranslate"><span class="pre">*.rules.yml</span></code> extension</p>
<p>Files must have a <code class="docutils literal notranslate"><span class="pre">*.yml</span></code> extension</p>
<p class="ansible-option-line"><strong class="ansible-option-default-bold">Default:</strong> <code class="ansible-option-default docutils literal notranslate"><span class="pre">[&quot;prometheus/rules/*.rules&quot;]</span></code></p>
</div></td>
</tr>