Grafana安装配置

配置文件路径
/etc/grafana/grafana.ini

一、Grafana

安装

https://grafana.com/grafana/download?edition=oss&pg=get&plcmt=selfmanaged-box1-cta1

以centos为例

#安装
sudo yum install -y https://dl.grafana.com/oss/release/grafana-10.2.0-1.x86_64.rpm

#修改端口号
#/etc/grafana/grafana.ini 中找到http_port 默认端口为3000

#启动
sudo systemctl start grafana-server

#开机自启
sudo systemctl enable grafana-server

#访问
#http://localhost:3000 
#默认用户密码admin/admin 可在配置文件 Security 节点下修改

仪表盘模板

https://grafana.com/grafana/dashboards/13919-microsoft-sql-server/

二、数据存储 influxdata

https://docs.influxdata.com/influxdb/v2/install/?t=Linux
安装完成后 访问localhost:8086 ,生成telegraf配置
image.png

三、数据采集器 telegraf

https://www.influxdata.com/time-series-platform/telegraf/#

插件

https://githubfast.com/influxdata/telegraf/tree/master/plugins

配置输出

配置输出为 influxdb

###############################################################################
#                            OUTPUT PLUGINS                                   #
###############################################################################


# # Configuration for sending metrics to InfluxDB 2.0
  [[outputs.influxdb_v2]]
#   ## The URLs of the InfluxDB cluster nodes.
#   ##
#   ## Multiple URLs can be specified for a single cluster, only ONE of the
#   ## urls will be written to each interval.
#   ##   ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
    urls = ["http://127.0.0.1:8086"]
#
#   ## Token for authentication.
    token = ""
#
#   ## Organization is the name of the organization you wish to write to.
    organization = ""
#
#   ## Destination bucket to write into.
    bucket = ""
#
#   ## The value of this tag will be used to determine the bucket.  If this
#   ## tag is not set the 'bucket' option is used as the default.
#   # bucket_tag = ""
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值