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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] 推薦使用 `2.37.9` 的版本,是長期支持版本 prometheus是多副本。僅Prometheus配置文件的 `external_labels` 值不一樣,其他步驟都是都是一樣的 ## 下載Prometheus ```shell curl -L -o /usr/local/src/prometheus-2.37.9.linux-amd64.tar.gz https://github.com/prometheus/prometheus/releases/download/v2.37.9/prometheus-2.37.9.linux-amd64.tar.gz tar xf /usr/local/src/prometheus-2.37.9.linux-amd64.tar.gz -C /opt ``` ## 創建數據目錄 ```shell mkdir -p /data/prometheus /app/prometheus cp -r /opt/prometheus-2.37.9.linux-amd64/console* /app/prometheus cp /opt/prometheus-2.37.9.linux-amd64/prometheus /opt/prometheus-2.37.9.linux-amd64/promtool /usr/local/bin/ ``` ## 修改配置文件 ```shell cp /opt/prometheus-2.37.9.linux-amd64/prometheus.yml /app/prometheus # global字段下添加標簽,每個Prometheus的replica值都需要設置不一致 vim /app/prometheus/prometheus.yml global: ... external_labels: replica: A ``` ## 修改權限 ```shell chown -R ops. /data/prometheus /app/prometheus ``` ## 創建systemd服務 ```shell cat <<-EOF | sudo tee /usr/lib/systemd/system/prometheus.service > /dev/null [Unit] Description=prometheus Documentation=https://prometheus.io/ After=network.target [Service] Type=simple User=ops Group=ops ExecStartPre=/usr/local/bin/promtool check config /app/prometheus/prometheus.yml ExecStart=/usr/local/bin/prometheus \\ --config.file=/app/prometheus/prometheus.yml \\ --web.listen-address=127.0.0.1:9090 \\ --web.enable-lifecycle --web.enable-admin-api \\ --web.console.templates=/app/prometheus/consoles \\ --web.console.libraries=/app/prometheus/console_libraries \\ --storage.tsdb.path=/data/prometheus/ \\ --storage.tsdb.min-block-duration=2h \\ --storage.tsdb.max-block-duration=2h \\ --storage.tsdb.retention.time=2h \\ --log.level=info --log.format=json ExecReload=/usr/bin/curl -s -X POST http://127.0.0.1:9090/-/reload TimeoutStartSec=20s Restart=always LimitNOFILE=20480000 [Install] WantedBy=multi-user.target EOF ``` ## 啟動服務 ```shell systemctl daemon-reload systemctl enable prometheus --now systemctl is-active prometheus.service ``` ## 驗證 ```shell $ curl 127.0.0.1:9090/-/healthy Prometheus Server is Healthy. ``` ## 參考文檔 二進制安裝Prometheus:https://prometheus.io/docs/prometheus/latest/installation/#using-pre-compiled-binaries 下載Prometheus地址:https://prometheus.io/download/
                  <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>

                              哎呀哎呀视频在线观看