<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之旅 廣告
                # Configuring a Monitoring node for Scaling and High Availability > 原文:[https://docs.gitlab.com/ee/administration/high_availability/monitoring_node.html](https://docs.gitlab.com/ee/administration/high_availability/monitoring_node.html) * [Standalone Monitoring node using Omnibus GitLab](#standalone-monitoring-node-using-omnibus-gitlab) * [Migrating to Service Discovery](#migrating-to-service-discovery) # Configuring a Monitoring node for Scaling and High Availability[](#configuring-a-monitoring-node-for-scaling-and-high-availability "Permalink") 在 GitLab 12.0 中[引入](https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/3786) . 您可以配置 Prometheus 節點以監視 GitLab. ## Standalone Monitoring node using Omnibus GitLab[](#standalone-monitoring-node-using-omnibus-gitlab "Permalink") Omnibus GitLab 軟件包可用于配置運行[Prometheus](../monitoring/prometheus/index.html)和[Grafana](../monitoring/performance/grafana_configuration.html)的獨立 Monitoring 節點. 監視節點不是高度可用. 請參閱[縮放和高可用性](../reference_architectures/index.html)的 GitLab 擴展和高可用性選項的概述. 以下步驟是使用 Omnibus 配置運行 Prometheus 和 Grafana 的 Monitoring 節點的最低必需步驟: 1. SSH 進入"監視"節點. 2. 從 GitLab 下載頁面使用**步驟 1 和 2** [下載/安裝](https://about.gitlab.com/install/)所需的 Omnibus GitLab 軟件包. * 不要完成下載頁面上的任何其他步驟. 3. [`CONSUL_SERVER_NODES`](../postgresql/replication_and_failover.html#consul-information) ,請確保收集[`CONSUL_SERVER_NODES`](../postgresql/replication_and_failover.html#consul-information) ,它們是 Consul 服務器節點的 IP 地址或 DNS 記錄. 請注意,它們顯示為`YYYY consul1.gitlab.example.com ZZZZ` 4. 編輯`/etc/gitlab/gitlab.rb`并添加內容: ``` external_url 'http://gitlab.example.com' # Enable Prometheus prometheus['enable'] = true prometheus['listen_address'] = '0.0.0.0:9090' prometheus['monitor_kubernetes'] = false # Enable Login form grafana['disable_login_form'] = false # Enable Grafana grafana['enable'] = true grafana['admin_password'] = 'toomanysecrets' # Enable service discovery for Prometheus consul['enable'] = true consul['monitoring_service_discovery'] = true # Replace placeholders # Y.Y.Y.Y consul1.gitlab.example.com Z.Z.Z.Z # with the addresses of the Consul server nodes consul['configuration'] = { retry_join: %w(Y.Y.Y.Y consul1.gitlab.example.com Z.Z.Z.Z), } # Disable all other services gitlab_rails['auto_migrate'] = false alertmanager['enable'] = false gitaly['enable'] = false gitlab_exporter['enable'] = false gitlab_workhorse['enable'] = false nginx['enable'] = true postgres_exporter['enable'] = false postgresql['enable'] = false redis['enable'] = false redis_exporter['enable'] = false sidekiq['enable'] = false puma['enable'] = false node_exporter['enable'] = false gitlab_exporter['enable'] = false ``` 5. 運行`sudo gitlab-ctl reconfigure`來編譯配置. 下一步是告訴所有其他節點監視節點在哪里: 1. 編輯`/etc/gitlab/gitlab.rb` ,然后添加或查找并取消注釋以下行: ``` gitlab_rails['prometheus_address'] = '10.0.0.1:9090' ``` 其中`10.0.0.1:9090`是 Prometheus 節點的 IP 地址和端口. 2. 保存文件并[重新配置 GitLab,](../restart_gitlab.html#omnibus-gitlab-reconfigure)以使更改生效. ## Migrating to Service Discovery[](#migrating-to-service-discovery "Permalink") 使用`consul['monitoring_service_discovery'] = true`啟用使用服務發現進行`consul['monitoring_service_discovery'] = true` ,請確保未在`/etc/gitlab/gitlab.rb`設置`prometheus['scrape_configs']` . 在`/etc/gitlab/gitlab.rb`同時設置`consul['monitoring_service_discovery'] = true`和`prometheus['scrape_configs']`都會導致錯誤.
                  <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>

                              哎呀哎呀视频在线观看