<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] ## 定義記錄規則 Prometheus 支持兩種經過配置之后可以定期進行評估的規則:記錄規則和[告警規則](https://hulining.gitbook.io/prometheus/prometheus/configuration/alerting_rules) ## 記錄規則 記錄規則使您可以預先計算經常或計算量大的表達式,并將結果保存為一組新的時間序列。查詢預計算結果通常比每次執行原始表達式要快得多。這對于每次刷新時都需要重復查詢相同的表達式的儀表板特別有用 規則文件的語法是: 復制 ``` groups: # 組的名稱。一個文件中必須唯一 name: <string> # 評估組中規則的頻率 [ interval: <duration> | default = global.evaluation_interval ] rules: # 要輸出到的新的時間序列的名稱。必須是合法的數據指標名稱 record: <string> # 要執行的 PromQL 表達式。每隔執行周期的時間,表達式都會在當前時間進行執行,并將結果記錄為一組新的時間序列,其數據指標名稱由 "record" 給出 expr: <string> # 存儲結果之前要添加或覆蓋的標簽 labels: [ <labelname>: <labelvalue> ] ``` 示例 ``` groups: - name: example rules: - record: job:http_inprogress_requests:sum expr: sum by (job) (http_inprogress_requests) ``` > 注意: `sum by (job) (http_inprogress_requests)` 與 `sum(http_inprogress_requests) by (job) ` 等價 ## 規則語法檢查 因為僅當所有規則文件的格式正確時,才會應用更改,所以需要提前檢測 ``` promtool check rules /path/to/example.rules.yml ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看