暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Centos简单安装Grafana

运维笔谈 2024-02-12
21

一、安装

1.新增repo
/etc/yum.repos.d/grafana.repo

[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

复制

2.yum安装grafana

yum install grafana
复制

3.修改配置

/etc/grafana/grafana.ini

修改ip为本机IP

http_addr

默认端口3000

4.启动服务

systemctl daemon-reload
systemctl start grafana-server
systemctl status grafana-server
systemctl enable grafana-server.service

复制

日志文件路径 var/log/grafana

二、插件安装

grafana-cli plugins list-remote 查看可用插件列表
grafana-cli plugins install 插件名
grafana-cli plugins ls 查看已安装插件
grafana-cli plugins update-all 升级插件
grafana-cli plugins update <plugin-id>
grafana-cli plugins remove <plugin-id> 删除插件

复制


文章转载自运维笔谈,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论