1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      如何進(jìn)行Prometheusredis監(jiān)控

      如何進(jìn)行Prometheus redis監(jiān)控,很多新手對此不是很清楚,為了幫助大家解決這個(gè)難題,下面小編將為大家詳細(xì)講解,有這方面需求的人可以來學(xué)習(xí)下,希望你能有所收獲。

      成都創(chuàng)新互聯(lián)公司主要從事成都網(wǎng)站制作、成都網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)豐潤,10多年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):13518219792

       簡介

      redis_exporter就是為了收集redis服務(wù)指標(biāo)的應(yīng)用。

      如何進(jìn)行Prometheus redis監(jiān)控

      下載運(yùn)行

      1. wget -c -t 100 https://github.com/oliver006/redis_exporter/releases/download/v1.15.0/redis_exporter-v1.15.0.linux-amd64.tar.gz 

      2.  

      3. tar zxvf   redis_exporter-v1.15.0.linux-amd64.tar.gz 

      4.  

      5. cd redis_exporter-v1.15.0.linux-amd64 

      6.  

      7. ./redis_exporter 


      INFO[0000] Redis Metrics Exporter v1.15.0    build date: 2020-12-27-18:57:05    sha1: 43ec65f7a22041e64ec557291c36500d04c6f6b0    Go: go1.15.6    GOOS: linux    GOARCH: amd64  INFO[0000] Providing metrics at :9121/metrics

      默認(rèn)端口是9121,默認(rèn)鏈接是redis://localhost:6379

      如何進(jìn)行Prometheus redis監(jiān)控

      如果設(shè)置了密碼,就需要在執(zhí)行的時(shí)候,指定密碼

      ./redis_exporter -redis.addr 'redis://localhost:6379'   -redis.password  redispassword

      查看更多參數(shù)

      1. ./redis_exporter -h 


      Usage of ./redis_exporter:   -check-key-groups string         Comma separated list of lua regex for grouping keys   -check-key-groups-batch-size int         Check key groups batch size hint for the underlying SCAN (default 10000)   -check-keys string         Comma separated list of key-patterns to export value and length/size, searched for with SCAN   -check-single-keys string         Comma separated list of single keys to export value and length/size   -check-single-streams string         Comma separated list of single streams to export info about streams, groups and consumers   -check-streams string         Comma separated list of stream-patterns to export info about streams, groups and consumers, searched for with SCAN   -config-command string         What to use for the CONFIG command (default "CONFIG")   -connection-timeout string         Timeout for connection to Redis instance (default "15s")   -count-keys string         Comma separated list of patterns to count, eg: 'db3=sessions:*'. Warning: The exporter runs SCAN to count the keys.   -debug         Output verbose debug information   -export-client-list         Whether to scrape Client List specific metrics   -export-client-port         Whether to include the client's port when exporting the client list. Warning: including the port increases the number of metrics generated and will make your Prometheus server take up more memory   -include-system-metrics         Whether to include system metrics like e.g. redis_total_system_memory_bytes   -is-tile38         Whether to scrape Tile38 specific metrics   -log-format string         Log format, valid options are txt and json (default "txt")   -max-distinct-key-groups int         The maximum number of distinct key groups with the most memory utilization to present as distinct metrics per database, the leftover key groups will be aggregated in the 'overflow' bucket (default 100)   -namespace string         Namespace for metrics (default "redis")   -ping-on-connect         Whether to ping the redis instance after connecting   -redis-only-metrics         Whether to also export go runtime metrics   -redis.addr string         Address of the Redis instance to scrape (default "redis://localhost:6379")   -redis.password string         Password of the Redis instance to scrape   -redis.user string         User name to use for authentication (Redis ACL for Redis 6.0 and newer)   -script string         Path to Lua Redis script for collecting extra metrics   -set-client-name         Whether to set client name to redis_exporter (default true)   -skip-tls-verification         Whether to to skip TLS verification   -tls-ca-cert-file string         Name of the CA certificate file (including full path) if the server requires TLS client authentication   -tls-client-cert-file string         Name of the client certificate file (including full path) if the server requires TLS client authentication   -tls-client-key-file string         Name of the client key file (including full path) if the server requires TLS client authentication   -tls-server-cert-file string         Name of the server certificate file (including full path) if the web interface and telemetry should use TLS   -tls-server-key-file string         Name of the server key file (including full path) if the web interface and telemetry should use TLS   -version         Show version information and exit   -web.listen-address string         Address to listen on for web interface and telemetry. (default ":9121")   -web.telemetry-path string         Path under which to expose metrics. (default "/metrics")

      部署腳本

      如何進(jìn)行Prometheus redis監(jiān)控
      #!/bin/bash  VERSION="1.15.0"  wget  -t 100  -c  https://github.com/oliver006/redis_exporter/releases/download/v${VERSION}/redis_exporter-${VERSION}.linux-amd64.tar.gz  if [ ! -e redis_exporter-${VERSION}.linux-amd64.tar.gz ] then     echo "安裝包下載失敗"     exit 1 fi tar xvfz redis_exporter-${VERSION}.linux-amd64.tar.gz -C /opt/ cd /opt ln -s redis_exporter-${VERSION}.linux-amd64  redis_exporter cat > /etc/systemd/system/redis_exporter.service <

      prometheus配置

      添加下面的job

      - job_name: 'redis'     # metrics_path defaults to '/metrics'    # scheme defaults to 'http'.     static_configs:    - targets: ['localhost:9121']

      配置好以后,reload一下prometheus就可以加載

      kill -HUP [promethues_pid]

      指標(biāo)展示

      指標(biāo)可以通過prometheus的WebUI進(jìn)行查看

      http://[promethe server ip]:9090

      如果需要畫圖,可以直接使用grafana,有人已經(jīng)配置好了圖形可以通過grafana官方下的dashboard搜索redis_exporter,配置好prometheus數(shù)據(jù)源,直接導(dǎo)入grafana就可以直接展示了。

      看完上述內(nèi)容是否對您有幫助呢?如果還想對相關(guān)知識有進(jìn)一步的了解或閱讀更多相關(guān)文章,請關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝您對創(chuàng)新互聯(lián)的支持。


      新聞名稱:如何進(jìn)行Prometheusredis監(jiān)控
      轉(zhuǎn)載注明:http://ef60e0e.cn/article/ghhgoc.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        兴隆县| 德令哈市| 隆化县| 仁寿县| 奇台县| 乌海市| 柳河县| 霍州市| 闻喜县| 三原县| 化州市| 岱山县| 武鸣县| 江达县| 鸡西市| 铜陵市| 保康县| 息烽县| 安新县| 莆田市| 根河市| 万载县| 涟源市| 砀山县| 松滋市| 柳林县| 阿坝县| 吴旗县| 专栏| 台湾省| 凤阳县| 贵南县| 吉木乃县| 沽源县| 五常市| 黄龙县| 通河县| 太保市| 庄河市| 鲁山县| 盐池县|