国产睡熟迷奷白丝护士系列精品,中文色字幕网站,免费h网站在线观看的,亚洲开心激情在线

      <sup id="hb9fh"></sup>
          1. 千鋒教育-做有情懷、有良心、有品質(zhì)的職業(yè)教育機(jī)構(gòu)

            手機(jī)站
            千鋒教育

            千鋒學(xué)習(xí)站 | 隨時(shí)隨地免費(fèi)學(xué)

            千鋒教育

            掃一掃進(jìn)入千鋒手機(jī)站

            領(lǐng)取全套視頻
            千鋒教育

            關(guān)注千鋒學(xué)習(xí)站小程序
            隨時(shí)隨地免費(fèi)學(xué)習(xí)課程

            當(dāng)前位置:首頁  >  技術(shù)干貨  > Prometheus 通過將數(shù)據(jù)遠(yuǎn)程寫入InfluxDB 1.x存儲(chǔ)

            Prometheus 通過將數(shù)據(jù)遠(yuǎn)程寫入InfluxDB 1.x存儲(chǔ)

            來源:千鋒教育
            發(fā)布人:yyy
            時(shí)間: 2023-06-27 11:41:00 1687837260

              安裝influxdb1.x

            wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.0.x86_64.rpm
            yum -y localinstall influxdb-1.8.0.x86_64.rpm

               編輯配置文件

              最終修改效果項(xiàng)如下所示

            bind-address = "0.0.0.0:8088"
            [meta]
            dir = "/var/lib/influxdb/meta"
            [data]
            dir = "/var/lib/influxdb/data"
            wal-dir = "/var/lib/influxdb/wal"
            cache-max-memory-size = "8g"
            series-id-set-cache-size = 100
            [coordinator]
            max-concurrent-queries = 0
            query-timeout = "0s"
            log-queries-after = "10s"
            max-select-series = 0
            max-select-buckets = 0
            [retention]
            [shard-precreation]
            advance-period = "10m"
            [monitor]
            [http]
            enabled = true
            bind-address = ":8086"
            log-enabled = false
            max-row-limit = 10000

               啟動(dòng)服務(wù)

            systemctl start influxdb
            systemctl enable influxdb

            建庫
            curl -XPOST http://192.168.241.13:8086/query --data-urlencode "q=CREATE DATABASE prometheus"
            或者
            influx -precision rfc3339
            create database prometheus;
            show databases;

               準(zhǔn)備remote_storage_adapter

              對(duì)于業(yè)務(wù)比較大的環(huán)境Local storage是絕對(duì)滿足不了的,那么就要用remote storage了。

              Prometheus的remote storage需要借助adapter實(shí)現(xiàn),adapter會(huì)提供write url和read url給Prometheus,這樣Prometheus獲取到數(shù)據(jù)后就會(huì)先寫到本地然后再調(diào)用write url寫到遠(yuǎn)端。

              下載一個(gè)可執(zhí)行文件remote_storage_adapter。

              GitHub地址:

            https://github.com/prometheus/prometheus/blob/main/documentation/examples/remote_storage/remote_storage_adapter/README.md

               需要安裝一個(gè)go環(huán)境并進(jìn)行build。我已經(jīng)build好了,下載下面的地址可以直接用。

            wget https://github.com/zyiqian/charts/blob/main/prometheus/remote_storage_adapter
            chmod +x remote_storage_adapter

               手工啟動(dòng)

            nohup /usr/local/sbin/remote_storage_adapter 
            --influxdb-url=http://192.168.241.13:8086
            --influxdb.database=prometheus
            --influxdb.retention-policy=autogen >/var/log/remote_storage_adapter.log 2>&1 &

               將remote_storage_adapter注冊(cè)為系統(tǒng)服務(wù)

            cat>/lib/systemd/system/remote_storage_adapter.service<<EOF
            [Service]
            Restart=on-failure
            WorkingDirectory=/root/
            ExecStart=/usr/local/sbin/remote_storage_adapter --influxdb-url=http://192.168.241.13:8086/ --influxdb.database="prometheus" --influxdb.retention-policy=autogen
            [Install]
            WantedBy=multi-user.target
            EOF

            systemctl daemon-reload
            systemctl enable remote_storage_adapter
            systemctl start remote_storage_adapter
            systemctl status remote_storage_adapter

               配置prometheus遠(yuǎn)程寫入

              修改prometheus.yml中的配置remoteWrite和remoteRead

            remote_write:
            - url: "http://192.168.241.13:8086/api/v1/prom/write?db=prometheus"
            remote_read:
            - url: "http://192.168.241.13:8086/api/v1/prom/read?db=prometheus"

               查看Influxdb

            # influx
            Connected to http://localhost:8086 version 1.8.0
            influxdb shell version: 1.8.0
            > show databases;
            name: databases
            name
            ----

            prometheus
            _internal
            > use prometheus
            Using database prometheus
            > SHOW MEASUREMENTS;
            name: measurements
            name
            ----
            ALERTS
            ALERTS_
            FOR_STATE
            aggregator_
            openapi_v2_regeneration_count

             

            tags: prometheus
            聲明:本站稿件版權(quán)均屬千鋒教育所有,未經(jīng)許可不得擅自轉(zhuǎn)載。
            10年以上業(yè)內(nèi)強(qiáng)師集結(jié),手把手帶你蛻變精英
            請(qǐng)您保持通訊暢通,專屬學(xué)習(xí)老師24小時(shí)內(nèi)將與您1V1溝通
            免費(fèi)領(lǐng)取
            今日已有369人領(lǐng)取成功
            劉同學(xué) 138****2860 剛剛成功領(lǐng)取
            王同學(xué) 131****2015 剛剛成功領(lǐng)取
            張同學(xué) 133****4652 剛剛成功領(lǐng)取
            李同學(xué) 135****8607 剛剛成功領(lǐng)取
            楊同學(xué) 132****5667 剛剛成功領(lǐng)取
            岳同學(xué) 134****6652 剛剛成功領(lǐng)取
            梁同學(xué) 157****2950 剛剛成功領(lǐng)取
            劉同學(xué) 189****1015 剛剛成功領(lǐng)取
            張同學(xué) 155****4678 剛剛成功領(lǐng)取
            鄒同學(xué) 139****2907 剛剛成功領(lǐng)取
            董同學(xué) 138****2867 剛剛成功領(lǐng)取
            周同學(xué) 136****3602 剛剛成功領(lǐng)取
            相關(guān)推薦HOT
            PUE是什么?

            一、PUE是什么PUE,即功耗比(Power Usage Effectiveness),是數(shù)據(jù)中心的能源效率指標(biāo)。它是數(shù)據(jù)中心總功耗與設(shè)備功耗的比值,用于評(píng)估數(shù)據(jù)中...詳情>>

            2023-10-15 07:13:07
            graph cut和graph cuts有什么區(qū)別?

            1.語境不同graph cut”通常在描述一個(gè)操作時(shí)使用,比如”perform a graph cut”,它指的是在圖中找到一個(gè)切割,將圖劃分為兩個(gè)...詳情>>

            2023-10-15 07:02:16
            什么是雙機(jī)熱備?

            一、雙機(jī)熱備的原理雙機(jī)熱備是指在系統(tǒng)中配置兩臺(tái)服務(wù)器(主服務(wù)器和備份服務(wù)器),兩者通過高速網(wǎng)絡(luò)連接進(jìn)行實(shí)時(shí)數(shù)據(jù)同步和狀態(tài)同步。主服務(wù)器...詳情>>

            2023-10-15 06:37:02
            偏最小二乘支持向量機(jī)和支持向量機(jī)回歸的區(qū)別是什么?

            1.模型構(gòu)建的理論基礎(chǔ)不同支持向量機(jī)回歸(SVR)基于統(tǒng)計(jì)學(xué)習(xí)理論,其主要思想是找到一個(gè)超平面,使得大部分?jǐn)?shù)據(jù)點(diǎn)都在這個(gè)超平面的一定范圍內(nèi),...詳情>>

            2023-10-15 06:30:45
            VAE、GAN和transformer有什么區(qū)別?

            1.模型結(jié)構(gòu)不同VAE(變分自編碼器)是一種生成模型,其基于概率圖模型和自編碼器,能夠?qū)W習(xí)數(shù)據(jù)的潛在分布。GAN(生成對(duì)抗網(wǎng)絡(luò))同樣是一種生成...詳情>>

            2023-10-15 06:10:12