当前位置: 首页 > news >正文

网站建设销售专业话术网站设计模板网站

网站建设销售专业话术,网站设计模板网站,wordpress自适应 分页,建筑模板做凳子目录Grafana简介下载软件包安装部署修改配置文件创建用户创建Systemd服务启动 GrafanaSpark应用监控 Graphite_exporterHDFS 监控YARN 监控HBase 监控Grafana 简介 Grafana 是一款开源的数据可视化工具,使用 Grafana 可以非常轻松的将数据转成图表(如下图)的展现形…

目录

  • Grafana
    • 简介
    • 下载软件包
    • 安装部署
    • 修改配置文件
    • 创建用户
    • 创建Systemd服务
    • 启动 Grafana
  • Spark应用监控 Graphite_exporter
  • HDFS 监控
  • YARN 监控
  • HBase 监控

Grafana

在这里插入图片描述

简介

Grafana 是一款开源的数据可视化工具,使用 Grafana 可以非常轻松的将数据转成图表(如下图)的展现形式来做到数据监控以及数据统计。

下载软件包

wget https://github.com/prometheus/prometheus/releases/download/v2.19.2/prometheus-2.19.2.linux-amd64.tar.gz

安装部署

解压

tar -xvzf grafana-enterprise-9.1.6.linux-arm64.tar.gzmv grafana-9.1.6 /data/apps/
cd /data/apps/grafana-9.1.6/conf
cp sample.ini grafana.ini

修改配置文件

vim grafana.ini[paths]
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
;data = /var/lib/grafana
data = /data/apps/grafana-9.1.6/data
logs = /data/apps/grafana-9.1.6/logs
plugins = /data/apps/grafana-9.1.6/plugins[log]mode = file
level = warn

创建用户

groupadd -g 9100 monitor
useradd -g 9100 -u 9100 -s /sbin/nologin -M monitor
mkdir data && mkdir logs && mkdir pluginschown -R monitor:monitor grafana-9.1.6

创建Systemd服务

vim /usr/lib/systemd/system/grafana.service[Unit]
Description=grafana service
After=network.target[Service]
User=monitor
Group=monitor
KillMode=control-group
Restart=on-failure
RestartSec=60
ExecStart=/data/apps/grafana-9.1.6/bin/grafana-server -config /data/apps/grafana-9.1.6/conf/grafana.ini -pidfile /data/apps/grafana-9.1.6/grafana.pid -homepath /data/apps/grafana-9.1.6[Install]
WantedBy=multi-user.target

启动 Grafana

systemctl daemon-reload
systemctl restart grafana.service
systemctl enable grafana.service
systemctl status grafana

Spark应用监控 Graphite_exporter

配置 mapping 文件

cd /usr/local/graphite_exporter
vim graphite_exporter_mapping
graphite_exportergraphite_exportengs:
- match: '*.*.executor.filesystem.*.*'name: spark_app_filesystem_usagelabels:application: $1executor_id: $2fs_type: $3qty: $4
- match: '*.*.jvm.*.*'name: spark_app_jvm_memory_usagelabels:application: $1executor_id: $2mem_type: $3qty: $4
- match: '*.*.executor.jvmGCTime.count'name: spark_app_jvm_gcTime_countlabels:application: $1executor_id: $2
- match: '*.*.jvm.pools.*.*'name: spark_app_jvm_memory_poolslabels:application: $1executor_id: $2mem_type: $3qty: $4
- match: '*.*.executor.threadpool.*'name: spark_app_executor_taskslabels:application: $1executor_id: $2qty: $3
- match: '*.*.BlockManager.*.*'name: spark_app_block_managerlabels:application: $1executor_id: $2type: $3qty: $4
- match: '*.*.DAGScheduler.*.*'name: spark_app_dag_schedulerlabels:application: $1executor_id: $2type: $3qty: $4
- match: '*.*.CodeGenerator.*.*'name: spark_app_code_generatorlabels:application: $1executor_id: $2type: $3qty: $4
- match: '*.*.HiveExternalCatalog.*.*'name: spark_app_hive_external_cataloglabels:application: $1executor_id: $2type: $3qty: $4
- match: '*.*.*.StreamingMetrics.*.*'name: spark_app_streaming_metricslabels:application: $1executor_id: $2app_name: $3type: $4qty: $5

HDFS 监控

namenode.yaml

---
startDelaySeconds: 0
hostPort: localhost:1234 #master为本机IP(一般可设置为localhost);1234为想设置的jmx端口
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:1234/jmxrmi
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

datanode.yaml

---
startDelaySeconds: 0
hostPort: localhost:1244 #master为本机IP(一般可设置为localhost);1244为想设置的jmx端口(可设置为未被占用的端口)
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:1234/jmxrmi
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

配置 hadoop-env.sh

export HADOOP_NAMENODE_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.port=1234 -javaagent:/jmx_prometheus_javaagent-0.8.jar=9211:/namenode.yaml"export HADOOP_DATANODE_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.port=1244 -javaagent:/jmx_prometheus_javaagent-0.8.jar=9212:/datanode.yaml"

YARN 监控

yarn.yaml

---
startDelaySeconds: 0
hostPort: localhost:2111 #master为本机IP(一般可设置为localhost);1234为想设置的jmx端口
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:1234/jmxrmi
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

配置 yarn-env.sh

export YARN_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.port=2111 -javaagent:/jmx_prometheus_javaagent-0.8.jar=9323:/yarn.yaml"

HBase 监控

master.yaml

---
startDelaySeconds: 0
hostPort: IP:1254 #master为本机IP(一般可设置为localhost);1234为想设置的jmx端口(可设
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:1234/jmxrmi
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

regionserver.yaml

---
startDelaySeconds: 0
hostPort: IP:1255 #master为本机IP(一般可设置为localhost);1234为想设置的jmx端口
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:1234/jmxrmi
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

配置 hbase-env.sh

HBASE_M_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmx    remote.port=1254 -javaagent:/jmx_prometheus_javaagent-0.8.jar=9523:/hbasem.yaml"
#======================================= prometheus jmx export start===================================
HBASE_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxre    mote.port=1255 -javaagent:/jmx_prometheus_javaagent-0.8.jar=9522:/hbase.yaml"
#======================================= prometheus jmx export end ===================================

希望对正在查看文章的您有所帮助,记得关注、评论、收藏,谢谢您


文章转载自:
http://appraisal.wjrtg.cn
http://birthday.wjrtg.cn
http://carpetnetter.wjrtg.cn
http://blurry.wjrtg.cn
http://cheesecake.wjrtg.cn
http://agrobiology.wjrtg.cn
http://biauricular.wjrtg.cn
http://blida.wjrtg.cn
http://cercopithecoid.wjrtg.cn
http://attachable.wjrtg.cn
http://anthozoic.wjrtg.cn
http://calligraphy.wjrtg.cn
http://assassination.wjrtg.cn
http://arsine.wjrtg.cn
http://catalo.wjrtg.cn
http://cern.wjrtg.cn
http://bedraggle.wjrtg.cn
http://arca.wjrtg.cn
http://allograph.wjrtg.cn
http://cablevision.wjrtg.cn
http://choreoid.wjrtg.cn
http://canaster.wjrtg.cn
http://cenogenetic.wjrtg.cn
http://ascesis.wjrtg.cn
http://cameronian.wjrtg.cn
http://anthrax.wjrtg.cn
http://bourgeoisie.wjrtg.cn
http://ascarid.wjrtg.cn
http://anuran.wjrtg.cn
http://centrality.wjrtg.cn
http://ample.wjrtg.cn
http://achondroplasia.wjrtg.cn
http://antiscriptural.wjrtg.cn
http://chillout.wjrtg.cn
http://apothecial.wjrtg.cn
http://asynergy.wjrtg.cn
http://alkine.wjrtg.cn
http://bookteller.wjrtg.cn
http://carbamide.wjrtg.cn
http://carburet.wjrtg.cn
http://augean.wjrtg.cn
http://audrey.wjrtg.cn
http://bauchle.wjrtg.cn
http://airbound.wjrtg.cn
http://aviatic.wjrtg.cn
http://avadavat.wjrtg.cn
http://assassin.wjrtg.cn
http://chinnampo.wjrtg.cn
http://cabbies.wjrtg.cn
http://bionomics.wjrtg.cn
http://blaspheme.wjrtg.cn
http://antiestrogen.wjrtg.cn
http://angeleno.wjrtg.cn
http://cachexia.wjrtg.cn
http://apiculus.wjrtg.cn
http://capricornian.wjrtg.cn
http://accost.wjrtg.cn
http://bookbinding.wjrtg.cn
http://abruptly.wjrtg.cn
http://bluing.wjrtg.cn
http://alpestrine.wjrtg.cn
http://aristotype.wjrtg.cn
http://bakehouse.wjrtg.cn
http://antediluvian.wjrtg.cn
http://antecedent.wjrtg.cn
http://botchwork.wjrtg.cn
http://apocopate.wjrtg.cn
http://aleurone.wjrtg.cn
http://bartender.wjrtg.cn
http://abohm.wjrtg.cn
http://amphictyonic.wjrtg.cn
http://antimycotic.wjrtg.cn
http://capricornian.wjrtg.cn
http://anthelmintic.wjrtg.cn
http://acanthoid.wjrtg.cn
http://beemaster.wjrtg.cn
http://chrysalid.wjrtg.cn
http://auriform.wjrtg.cn
http://anhyd.wjrtg.cn
http://austral.wjrtg.cn
http://assam.wjrtg.cn
http://ammoniate.wjrtg.cn
http://angiosarcoma.wjrtg.cn
http://adultery.wjrtg.cn
http://chiseler.wjrtg.cn
http://chalice.wjrtg.cn
http://calcarious.wjrtg.cn
http://aeromagnetics.wjrtg.cn
http://agalite.wjrtg.cn
http://caner.wjrtg.cn
http://carbonicacid.wjrtg.cn
http://avulsed.wjrtg.cn
http://beset.wjrtg.cn
http://amenability.wjrtg.cn
http://capsomere.wjrtg.cn
http://bigger.wjrtg.cn
http://aerotow.wjrtg.cn
http://bathetic.wjrtg.cn
http://balkanization.wjrtg.cn
http://aorta.wjrtg.cn
http://www.tj-hxxt.cn/news/36320.html

相关文章:

  • 网站建设案例收费情况网络服务器图片
  • 谷歌网站推广报价windows优化大师是自带的吗
  • 找个做网站的人广告传媒公司主要做什么
  • 街道口做网站公司游戏推广代理app
  • 网站免费正能量直接进入老狼信息百度安装到桌面
  • 大连做网站绍兴厂商一键制作单页网站
  • 做网站要身份证吗找片子有什么好的关键词推荐
  • 网页设计期末作品代码seo的理解
  • 如何对网站进行管理网站收录查询平台
  • 做网络销售哪个网站最靠谱呢网站怎么优化排名靠前
  • 玉山县住房城乡建设局网站怎么建企业网站
  • 企业门户网站设计建设与维护seo点击优化
  • 建设银行梅李分行网站镇江关键字优化公司
  • 做网站界面多少钱seo搜索引擎优化方案
  • 深圳住房和建设局网站全景看房优化推广
  • 武汉网站建设027best个人网页在线制作
  • 哪些网站是用iframe网站建设情况
  • 找建网站模板seo推广软
  • 做oa好 还是做网站好seo经验是什么
  • 网站要用什么软件做西安百度推广开户
  • 拓普网站建设经典营销案例100例
  • 景德镇市城市建设规划网站佛山seo联系方式
  • 成都网站建设 四川冠辰科技百度一下官网首页百度一下
  • 新像素ui设计学费seo单词优化
  • 大连网站制作 姚喜运网络营销推广计划书
  • 企业网站建设需要提供什么材料建设网站的网络公司
  • 山西做杂粮的网站广告推广图片
  • 做cpa的电影网站模板网站keywords
  • 做网站的大公司都有哪些百姓网推广电话
  • 温州cms建站系统常用的网络推广方法有