1、安装:

参考官方文档安装说明:https://grafana.com/grafana/download

Redhat & Centos(64 Bit):

wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.0.4-1.x86_64.rpm 
sudo yum localinstall grafana-5.0.4-1.x86_64.rpm

Mac:

brew update
brew install grafana

brew reinstall grafana

安装成功提示:

To have launchd start grafana now and restart at login:
  brew services start/restart grafana
Or, if you don't want/need a background service you can just run:
  grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins

2、启动:

linux下加入开机启动
# /sbin/chkconfig --add grafana-server
启动
# service grafana-server start

重启:

sudo service grafana-server restart

mac下启动:

brew services start grafana

重启:

brew services restart grafana

3、访问登录:

访问地址 ip:3000  初始帐号密码 admin/admin

4、配置文件:

mac位置:/usr/local/etc/grafana/grafana.ini

mac下貌似默认没有ldap的配置文件,没有关系,在grafana.ini指定ldap.toml的位置,然后找个ldap.toml的模板,配置一下即可

linux的grafana的ldap配置文件位置:/etc/grafana/ldap.toml

linux位置:默认的配置文件是/etc/grafana/grafana.ini  

5、Mac下grafana安装数据源插件open-falcon

官方推荐方法 :grafana-cli plugins install grafana-openfalcon-datasource,其实不行

使用命令查看可用插件列表:grafana-cli plugins list-remote,发先openfalcon为名字fastweb-openfalcon-datasource

grafana-cli plugins install fastweb-openfalcon-datasource

6、离线安装:http://docs.grafana.org/plugins/installation/

由于服务器所在网络无法访问外网,需要把下载好的插件导入后再安装

grafana-cli --pluginUrl https://local/<plugin-id>-<plugin-version>.zip plugins install <plugin-id>

或者把插件直接解压到安装目录也可以,亲测可行:

mac下的插件目录:/usr/local/var/lib/grafana/plugins

log目录:/usr/local/var/log/grafana

linux的插件目录:/var/lib/grafana/plugins

log目录:/var/log/grafana

7、多说几句,这几个步奏都不难,说下Invite your team吧

默认帐号admin/admin,然后可以发出邀请用户申请

发出邮件邀请的前提当然需要开启grafana发邮件的功能,配置文件grafana.ini找smtp的配置,说下含义:

开启功能:enabled=true

邮件服务器地址:host

登录邮件服务器的帐号和密码 user、password

去除ssl验证:skip_verify=true

发件人地址:from_address

一切配置正确的话,被邀请人就会收到如下形式的邮件,根据链接提示完成信息填写,即算邀请成功:

前方高能,注意注意:

错误一:

t=2018-04-17T16:28:12+0800 lvl=eror msg="Async sent email 0 succeed, not send emails: xx@xxx err: x509: certificate is valid for *.xxx, xxx, not xx"

解决方法:skip_verify = true 去除校验

参考:https://github.com/grafana/grafana/issues/7189

错误二:

t=2018-04-17T16:33:10+0800 lvl=eror msg="Async sent email 0 succeed, not send emails: xx@xx err: gomail: could not send email 1: 553 Mail from must equal authorized user"

解决方法:配置from_address要和user一致

grafana5.x版本的Dashboard Features不再有Templating的概念,增加了Variables的概念

管理员拥有配置数据源、安装插件、邀请用户等操作,普通用户没有

参考:

1、https://blog.csdn.net/clevercode/article/details/78001654

2、https://blog.csdn.net/yajie_12/article/details/79005783

centos、mac的grafana安装和简单使用的更多相关文章

  1. mac下supervisor安装及简单配置

    supervisor是一个用 Python 写的进程管理工具,可以很方便的用来启动.重启.关闭进程(守护进程).可以用他来管理自己的“服务程序”. 安装 首先安装Python,Mac系统好像自带. 执 ...

  2. Mac下使用安装MongoDB

    1.安装方法1:Mac电脑上面安装很简单,直接下载需要的版本解压即可: 下载网址 https://www.mongodb.com/download-center?jmp=nav#community 方 ...

  3. mac与centos下redis的安装与配置

    前言 最近在用redis,下面简单写一下mac和centos下redis的安装与配置方法. 安装 mac下面 安装命令:brew intall redis 运行命令:brew services sta ...

  4. GemFire 入门篇2:GemFire 8.2 在CentOS & Mac OS X的安装步骤

    GemFire目前已经开源,开源项目的主页:http://geode.incubator.apache.org/,商业版本的主页:https://pivotal.io/big-data/pivotal ...

  5. Xamarin+Prism开发详解四:简单Mac OS 虚拟机安装方法与Visual Studio for Mac 初体验

    Mac OS 虚拟机安装方法 最近把自己的电脑升级了一下SSD固态硬盘,总算是有容量安装Mac 虚拟机了!经过心碎的安装探索,尝试了国内外的各种安装方法,最后在youtube上找到了一个好方法. 简单 ...

  6. 【转】Mac系统中安装homebrew(类似redhat|Centos中的yum;类似Ubuntu中的apt-get)

    Homebrew,Homebrew简称brew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件,可以说Homebrew就是mac下的apt-get.yum神器 Homebr ...

  7. [Protobuf] Mac系统下安装配置及简单使用

    Mac下Protobuf安装 Protobuf源码Github地址: https://github.com/google/protobuf 配置环境教程: https://github.com/goo ...

  8. CentOS 7.2下安装Mono 5.0

    微软Build2017大会期间.NET领域的.NET core之外,就是Visual Studio For Mac,大家都知道Visual Studio For Mac 是基于Mono运行的,Mono ...

  9. Grafana 安装使用

    Grafana 安装使用 官方网址:https://grafana.com/ 官方文档:http://docs.grafana.org/ 安装 grafana 基于 RPM 的系统(CentOS,Fe ...

随机推荐

  1. (转)Spring如何装配各种集合类型的属性

    http://blog.csdn.net/yerenyuan_pku/article/details/52858499 在前面我们已经会注入基本类型对象和其他bean,现在我们就来学习如何注入各种集合 ...

  2. Django 你需要了解的入门操作

    创建一个django project   (我的版本是1.11.11) django-admin startproject mysite cd mysite 当前目录下会生成mysite的工程,目录结 ...

  3. 关于apache access log 统计的那些事儿

    统计APACHE ACCESS.LOG IP访问记录 可以根据自己的需要,统计很多,每个IP访问多少个页面等等! cat access.log-20090904 |awk '{print $3}'|s ...

  4. (7) openssl dgst(生成和验证数字签名)

    该伪命令是单向加密工具,用于生成文件的摘要信息                  也可以进行数字签名,及验证数字签名. 首先要明白的是,数字签名的过程是计算出摘要信息,然后使用私钥对摘要信息进行加密得 ...

  5. 特殊权限和facl

    目 录 第1章 FACL访问控制    1 1.1 FACL简介    1 1.2 getfacl命令查看acl权限    1 1.3 setfacl设置文件的cal权限    1 1.4 批量添加a ...

  6. 分分钟钟学会Python - 模块

    目录 模块 1 模块基础知识 2 random 返回随机生成的一个实数 3 hashlib 摘要算法模块 Hmac算法 4 time /datetime 时间模块 5 getpass 密码不显示(只能 ...

  7. Django 1.8.11 REST风格路由

    # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community b ...

  8. Centos 7安装Mysql5.7

    1.下载(国内镜像,比搜狐的快一点):http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.7/mysql-5.7.22-linux-glibc ...

  9. Fiddler抓包-只抓APP的请求

    from:https://www.cnblogs.com/yoyoketang/p/6582437.html fiddler抓手机app的请求,估计大部分都会,但是如何只抓来自app的请求呢? 把来自 ...

  10. NYOJ 239 月老的难题

    月老的难题 时间限制:1000 ms  |  内存限制:65535 KB 难度:4   描述 月老准备给n个女孩与n个男孩牵红线,成就一对对美好的姻缘. 现在,由于一些原因,部分男孩与女孩可能结成幸福 ...