国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù)

這篇具有很好參考價(jià)值的文章主要介紹了prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù)。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

一、下載prometheus

https://github.com/prometheus/prometheus/releases/download/v2.45.0/prometheus-2.45.0.linux-amd64.tar.gz

二、解壓prometheus

 tar -zxvf prometheus-2.45.0.linux-amd64.tar.gz -C /data/src

重命名目錄

mv prometheus-2.45.0.linux-amd64/ prometheus

三、查看prometheus目錄

 ls
console_libraries  consoles  LICENSE  NOTICE  prometheus  prometheus.yml  promtool

四、查看prometheus版本

 ./prometheus --version
prometheus, version 2.45.0 (branch: HEAD, revision: 8ef767e396bf8445f009f945b0162fd71827f445)
  build user:       root@920118f645b7
  build date:       20230623-15:09:49
  go version:       go1.20.5
  platform:         linux/amd64
  tags:             netgo,builtinassets,stringlabels

五、查看prometheus的配置文件

cat prometheus.yml 
# my global config
global:
  scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
  alertmanagers:
    - static_configs:
        - targets:
          # - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["localhost:9090"]

六、啟動(dòng)prometheus

./prometheus --config.file=prometheus.yml
ts=2023-07-10T14:18:25.894Z caller=main.go:534 level=info msg="No time or size retention was set so using the default time retention" duration=15d
ts=2023-07-10T14:18:25.894Z caller=main.go:578 level=info msg="Starting Prometheus Server" mode=server version="(version=2.45.0, branch=HEAD, revision=8ef767e396bf8445f009f945b0162fd71827f445)"
ts=2023-07-10T14:18:25.894Z caller=main.go:583 level=info build_context="(go=go1.20.5, platform=linux/amd64, user=root@920118f645b7, date=20230623-15:09:49, tags=netgo,builtinassets,stringlabels)"
ts=2023-07-10T14:18:25.894Z caller=main.go:584 level=info host_details="(Linux 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net mynextev.net)"
ts=2023-07-10T14:18:25.894Z caller=main.go:585 level=info fd_limits="(soft=100002, hard=100002)"
ts=2023-07-10T14:18:25.894Z caller=main.go:586 level=info vm_limits="(soft=unlimited, hard=unlimited)"
ts=2023-07-10T14:18:25.896Z caller=web.go:562 level=info component=web msg="Start listening for connections" address=0.0.0.0:9090
ts=2023-07-10T14:18:25.897Z caller=main.go:1019 level=info msg="Starting TSDB ..."
ts=2023-07-10T14:18:25.898Z caller=tls_config.go:274 level=info component=web msg="Listening on" address=[::]:9090
ts=2023-07-10T14:18:25.898Z caller=tls_config.go:277 level=info component=web msg="TLS is disabled." http2=false address=[::]:9090
ts=2023-07-10T14:18:25.901Z caller=head.go:595 level=info component=tsdb msg="Replaying on-disk memory mappable chunks if any"
ts=2023-07-10T14:18:25.901Z caller=head.go:676 level=info component=tsdb msg="On-disk memory mappable chunks replay completed" duration=5.464μs
ts=2023-07-10T14:18:25.901Z caller=head.go:684 level=info component=tsdb msg="Replaying WAL, this may take a while"
ts=2023-07-10T14:18:25.902Z caller=head.go:755 level=info component=tsdb msg="WAL segment loaded" segment=0 maxSegment=0
ts=2023-07-10T14:18:25.902Z caller=head.go:792 level=info component=tsdb msg="WAL replay completed" checkpoint_replay_duration=30.401μs wal_replay_duration=440.59μs wbl_replay_duration=175ns total_replay_duration=497.133μs
ts=2023-07-10T14:18:25.903Z caller=main.go:1040 level=info fs_type=XFS_SUPER_MAGIC
ts=2023-07-10T14:18:25.903Z caller=main.go:1043 level=info msg="TSDB started"
ts=2023-07-10T14:18:25.903Z caller=main.go:1224 level=info msg="Loading configuration file" filename=prometheus.yml
ts=2023-07-10T14:18:25.908Z caller=main.go:1261 level=info msg="Completed loading of configuration file" filename=prometheus.yml totalDuration=4.283491ms db_storage=2.843μs remote_storage=4.02μs web_handler=359ns query_engine=2.046μs scrape=3.883248ms scrape_sd=29.859μs notify=36.267μs notify_sd=10.1μs rules=2.501μs tracing=22.132μs
ts=2023-07-10T14:18:25.908Z caller=main.go:1004 level=info msg="Server is ready to receive web requests."
ts=2023-07-10T14:18:25.908Z caller=manager.go:995 level=info component="rule manager" msg="Starting rule manager..."

七、登陸prometheus

http://ip:9090prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)
prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)

八、查看prometheus jmx

http://ip:9090/metrics
prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)

九、下載grafana

wget https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm/Packages/grafana-10.0.1-1.x86_64.rpm

十、安裝grafana

yum install grafana-10.0.1-1.x86_64.rpm

十一、啟動(dòng)grafana

啟動(dòng)grafana

systemctl start grafana-server.service

查看grafana狀態(tài)

systemctl status grafana-server.service 
● grafana-server.service - Grafana instance
   Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2023-07-10 22:33:52 CST; 2s ago
     Docs: http://docs.grafana.org
 Main PID: 14630 (grafana)
   CGroup: /system.slice/grafana-server.service
           └─14630 /usr/share/grafana/bin/grafana server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.pid --...

Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=modules t=2023-07-10T22:33:52.929664759+08....."
Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=ngalert.state.manager t=2023-07-10T22:33:5...up"
Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net systemd[1]: Started Grafana instance.
Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=ngalert.state.manager t=2023-07-10T22:33:5…067μs
Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=ticker t=2023-07-10T22:33:52.930088471+08:...:00
Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=ngalert.multiorg.alertmanager t=2023-07-10...er"
Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=grafanaStorageLogger t=2023-07-10T22:33:52...ng"
Jul 10 22:33:52 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=http.server t=2023-07-10T22:33:52.93363107...et=
Jul 10 22:33:53 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=plugins.update.checker t=2023-07-10T22:33:...7ms
Jul 10 22:33:53 t-qcbj5-hadoop-database-003.test-qcloud-dd-insight.net grafana[14630]: logger=grafana.update.checker t=2023-07-10T22:33:...1ms
Hint: Some lines were ellipsized, use -l to show in full.

十二、登陸grafana

賬號(hào)和密碼都是:admin
prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)

十三、添加prometheus數(shù)據(jù)源

prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)prometheus的URL是http://ip:9090
prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)
添加成功后保存數(shù)據(jù)源,成功如下所示
prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)

十四、prometheus收集服務(wù)jmx信息

修改配置文件prometheus.yml

- job_name: 'debezium-prod-jmx'
  static_configs:
    - targets: ['10.170.116.170:7081', '10.170.77.194:7081']  # 多個(gè)JMX端口的地址和端口

重啟prometheus

十五、查看prometheus的status

發(fā)現(xiàn)成功采集debezium服務(wù)的jmx數(shù)據(jù)
prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)

十六、grafana為prometheus添加dashboard

grafana官網(wǎng)搜索你想監(jiān)控的服務(wù)的dashboard:

  • https://grafana.com/grafana/dashboards/

兩種方法:

  • grafana官網(wǎng)搜索UID
  • 復(fù)制服務(wù)json

唯一標(biāo)識(shí)符 (UID)
儀表板的唯一標(biāo)識(shí)符 (UID) 可用于唯一標(biāo)識(shí)多個(gè) Grafana 安裝之間的儀表板。 UID 允許使用一致的 URL 來訪問儀表板,因此更改儀表板的標(biāo)題不會(huì)破壞任何指向該儀表板的書簽鏈接。

prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)

查看添加的dashboard:

prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù),日常分享專欄,prometheus,采集服務(wù)的jmx數(shù)據(jù),grafana,dashboard,展示jmx數(shù)據(jù)文章來源地址http://www.zghlxwxcb.cn/news/detail-561907.html

到了這里,關(guān)于prometheus采集服務(wù)的jmx數(shù)據(jù),grafana通過dashboard展示jmx數(shù)據(jù)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Springboot 集成Prometheus 數(shù)據(jù)采集 使用grafana 監(jiān)控報(bào)告告警 郵件配置

    Springboot 集成Prometheus 數(shù)據(jù)采集 使用grafana 監(jiān)控報(bào)告告警 郵件配置

    目錄 Springboot 相關(guān) Pom 重點(diǎn)包 如果有需要可以增加安全包-一般內(nèi)部機(jī)房沒啥事-(非必選) Application.yml配置文件-(非必選) Application.properties management.endpoints.web.exposure.include介紹 啟動(dòng)類 查看監(jiān)控信息 Prometheus Prometheus.yml 配置 如果使用類安全包-(非必選) 啟動(dòng)就可以看到了

    2024年02月11日
    瀏覽(28)
  • 【Prometheus】mysqld_exporter采集+Grafana出圖+AlertManager預(yù)警

    【Prometheus】mysqld_exporter采集+Grafana出圖+AlertManager預(yù)警

    前提環(huán)境:已經(jīng)安裝和配置好prometheus server 所有組件對(duì)應(yīng)的版本: prometheus-2.44.0 mysqld_exporter-0.14.0 grafana-enterprise-9.1.2-1.x86_64.rpm alertmanager-0.25.0 prometheus-webhook-dingtalk-2.1.0 mysql_exporter是用來收集MysQL或者M(jìn)ariadb數(shù)據(jù)庫相關(guān)指標(biāo)的,mysql_exporter需要連接到數(shù)據(jù)庫并有相關(guān)權(quán)限。既可以

    2024年02月09日
    瀏覽(23)
  • Prometheus服務(wù)器、Prometheus被監(jiān)控端、Grafana、監(jiān)控MySQL數(shù)據(jù)庫、自動(dòng)發(fā)現(xiàn)概述、配置自動(dòng)發(fā)現(xiàn)、Alertmanager

    Prometheus服務(wù)器、Prometheus被監(jiān)控端、Grafana、監(jiān)控MySQL數(shù)據(jù)庫、自動(dòng)發(fā)現(xiàn)概述、配置自動(dòng)發(fā)現(xiàn)、Alertmanager

    目錄 Prometheus概述 部署Prometheus服務(wù)器 環(huán)境說明: 配置時(shí)間 安裝Prometheus服務(wù)器 添加被監(jiān)控端 部署通用的監(jiān)控exporter Grafana 概述 部署Grafana 展示node1的監(jiān)控信息 監(jiān)控MySQL數(shù)據(jù)庫 配置MySQL 配置mysql exporter 配置mysql exporter 配置prometheus監(jiān)控mysql 自動(dòng)發(fā)現(xiàn)機(jī)制 概述 基于文件自動(dòng)發(fā)現(xiàn)

    2024年02月21日
    瀏覽(49)
  • Prometheus服務(wù)器、Prometheus被監(jiān)控端、Grafana、Prometheus服務(wù)器、Prometheus被監(jiān)控端、Grafana

    Prometheus服務(wù)器、Prometheus被監(jiān)控端、Grafana、Prometheus服務(wù)器、Prometheus被監(jiān)控端、Grafana

    day03Prometheus概述部署Prometheus服務(wù)器環(huán)境說明:配置時(shí)間安裝Prometheus服務(wù)器添加被監(jiān)控端部署通用的監(jiān)控exporterGrafana概述部署Grafana展示node1的監(jiān)控信息監(jiān)控MySQL數(shù)據(jù)庫配置MySQL配置mysql exporter配置mysql exporter配置prometheus監(jiān)控mysql自動(dòng)發(fā)現(xiàn)機(jī)制概述基于文件自動(dòng)發(fā)現(xiàn)修改Prometheus使

    2024年02月14日
    瀏覽(32)
  • prometheus+grafana進(jìn)行服務(wù)器資源監(jiān)控

    prometheus+grafana進(jìn)行服務(wù)器資源監(jiān)控

    在性能測(cè)試中,服務(wù)器資源是值得關(guān)注一項(xiàng)內(nèi)容,目前,市面上已經(jīng)有很多的服務(wù)器資 源監(jiān)控方法和各種不同的監(jiān)控工具,方便在各個(gè)項(xiàng)目中使用。 但是,在性能測(cè)試中,究竟哪些指標(biāo)值得被關(guān)注呢? 監(jiān)控有著的分級(jí)體系,下面引用: 在以前的工作中,想要實(shí)現(xiàn)服務(wù)器資源

    2024年02月10日
    瀏覽(25)
  • prometheus + grafana進(jìn)行服務(wù)器資源監(jiān)控

    prometheus + grafana進(jìn)行服務(wù)器資源監(jiān)控

    在性能測(cè)試中,服務(wù)器資源是值得關(guān)注一項(xiàng)內(nèi)容,目前,市面上已經(jīng)有很多的服務(wù)器資 源監(jiān)控方法和各種不同的監(jiān)控工具,方便在各個(gè)項(xiàng)目中使用。 但是,在性能測(cè)試中,究竟哪些指標(biāo)值得被關(guān)注呢? 監(jiān)控有著的分級(jí)體系,下面引用: ? 在以前的工作中,想要實(shí)現(xiàn)服務(wù)器資

    2024年02月11日
    瀏覽(32)
  • Prometheus+Grafana 監(jiān)控平臺(tái)實(shí)踐-搭建&常用服務(wù)監(jiān)控&告警

    Prometheus+Grafana 監(jiān)控平臺(tái)實(shí)踐-搭建&常用服務(wù)監(jiān)控&告警

    Prometheus 是一個(gè)開放性的監(jiān)控解決方案,通過各種 Exporter 采集當(dāng)前主機(jī)/服務(wù)的數(shù)據(jù),和 Grafana 相結(jié)合可以實(shí)現(xiàn)強(qiáng)大的監(jiān)控和可視化功能 本篇將分享使用 docker compose 構(gòu)建 Prometheus+Grafana,并監(jiān)控之前文章所搭建的主機(jī)服務(wù),分享日常使用的一些使用經(jīng)驗(yàn) 文章較長,已安裝可略

    2024年02月05日
    瀏覽(28)
  • Prometheus + Grafana 實(shí)現(xiàn)服務(wù)器的可視化

    Prometheus + Grafana 實(shí)現(xiàn)服務(wù)器的可視化

    Prometheus + Grafana 實(shí)現(xiàn)服務(wù)器的可視化 系統(tǒng)環(huán)境準(zhǔn)備: 服務(wù)器IP:172.20.26.204 系統(tǒng)版本:CentOS Linux release 7.9.2009 (Core) 安裝基礎(chǔ)工具軟件,系統(tǒng)更新 yum install vim net-tools epel-release wget -y yum update Prometheus 簡介 Prometheus 是一個(gè)開源監(jiān)控工具,實(shí)現(xiàn)了高維數(shù)據(jù)模型。Prometheus 有多種數(shù)據(jù)

    2024年01月18日
    瀏覽(23)
  • Grafana集成prometheus(3.Grafana添加promethus數(shù)據(jù))

    Grafana集成prometheus(3.Grafana添加promethus數(shù)據(jù))

    選擇Connections - Datasources,點(diǎn)擊Add New data source,填寫Promitheus Server Url,點(diǎn)擊 save test完成配置 選擇prometheus數(shù)據(jù)庫 選擇code 填入對(duì)應(yīng)的查詢公式(監(jiān)控公式參考Prometheus監(jiān)控公式) 修改面板名稱Title 點(diǎn)擊save 百度可以獲取常見用途的公式,mark備用。

    2024年02月14日
    瀏覽(53)
  • Centos 從0搭建grafana和Prometheus 服務(wù)以及問題解決

    Centos 從0搭建grafana和Prometheus 服務(wù)以及問題解決

    虛擬機(jī)下載 https://customerconnect.vmware.com/en/downloads/info/slug/desktop_end_user_computing/vmware_workstation_player/17_0 cenos 鏡像下載 https://www.centos.org/download/ grafana 服務(wù)下載 https://grafana.com/grafana/download/7.4.0?platform=linux Prometheus 服務(wù)下載 https://prometheus.io/download/ grafana安裝 grafana 啟動(dòng) prometheus 安

    2024年02月14日
    瀏覽(51)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包