<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # Monitoring AWS Resources > 原文:[https://docs.gitlab.com/ee/user/project/integrations/prometheus_library/cloudwatch.html](https://docs.gitlab.com/ee/user/project/integrations/prometheus_library/cloudwatch.html) * [Requirements](#requirements) * [Metrics supported](#metrics-supported) * [Configuring Prometheus to monitor for Cloudwatch metrics](#configuring-prometheus-to-monitor-for-cloudwatch-metrics) * [Specifying the Environment label](#specifying-the-environment-label) # Monitoring AWS Resources[](#monitoring-aws-resources "Permalink") 在 GitLab 9.4 中[引入](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/12621) GitLab 支持從[Elastic Load Balancer](https://aws.amazon.com/elasticloadbalancing/)開始自動檢測和監視 AWS 資源. 這是通過利用官方[Cloudwatch 導出程序提供的](https://github.com/prometheus/cloudwatch_exporter) ,該程序將[Cloudwatch 指標](https://aws.amazon.com/cloudwatch/)轉換為 Prometheus 可讀形式. ## Requirements[](#requirements "Permalink") 必須啟用[Prometheus 服務](../prometheus.html) . ## Metrics supported[](#metrics-supported "Permalink") | Name | Query | | --- | --- | | 吞吐量(要求/秒) | `sum(aws_elb_request_count_sum{%{environment_filter}}) / 60` | | 延遲(毫秒) | `avg(aws_elb_latency_average{%{environment_filter}}) * 1000` | | HTTP 錯誤率(%) | `sum(aws_elb_httpcode_backend_5_xx_sum{%{environment_filter}}) / sum(aws_elb_request_count_sum{%{environment_filter}})` | ## Configuring Prometheus to monitor for Cloudwatch metrics[](#configuring-prometheus-to-monitor-for-cloudwatch-metrics "Permalink") 要開始使用 Cloudwatch 監控,您應該安裝和配置[Cloudwatch 導出程序](https://github.com/prometheus/cloudwatch_exporter) ,該程序可檢索和解析指定的 Cloudwatch 指標并將其轉換為 Prometheus 監控端點. 目前,唯一受支持的 AWS 資源是 Elastic Load Balancer,其 Cloudwatch 指標在[此處記錄](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-cloudwatch-metrics.html) . 樣品的 CloudWatch 導出配置文件,配置用于基本 AWS ELB 監測,是[可供下載](../samples/cloudwatch.yml) . ## Specifying the Environment label[](#specifying-the-environment-label "Permalink") 為了隔離并僅顯示給定環境的相關指標,GitLab 需要一種方法來檢測關聯了哪些標簽. 為此,GitLab 將[查找`environment`標簽](index.html#identifying-environments) .
                  <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>

                              哎呀哎呀视频在线观看