Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
ghichep-grafana
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hiep Nguyen
ghichep-grafana
Commits
a44cf7e4
Commit
a44cf7e4
authored
Dec 28, 2015
by
Tô Tướng Công
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cap nhat huong dan
parent
da33b007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
0 deletions
+83
-0
ghichep-grafana.md
ghichep-grafana.md
+83
-0
No files found.
ghichep-grafana.md
0 → 100644
View file @
a44cf7e4
#### Các ghi chép về Grafana
### Cài đặt grafana
-
Môi trường cài đặt
```
sh
```
-
Các lệnh cài đặt
```
sh
echo
"deb https://packagecloud.io/grafana/stable/debian/ wheezy main"
>>
/etc/apt/sources.list
curl https://packagecloud.io/gpg.key |
sudo
apt-key add -
sudo
apt-get update
sudo
apt-get
install
grafana
```
-
Khởi động grafana
```
sh
sudo
service grafana-server start
```
##### Cấu hình cho zabbix
```
sh
Tham khảo: https://github.com/alexanderzobnin/grafana-zabbix
```
-
Download plugin zabbix cho grafana tu link
```
sh
https://github.com/alexanderzobnin/grafana-zabbix/releases/tag/v2.5.1
hoặc
https://github.com/alexanderzobnin/grafana-zabbix
```
-
Giải nén file
```
sh
apt-get
install
unzip
unzip grafana-zabbix-2.5.1.zip
```
-
Copy thư mục zabbix vừa giải nén vào thư mục plugin của grafana
```
sh
cp
-r
/root/grafana-zabbix-2.5.1/zabbix/ /usr/share/grafana/public/app/plugins/datasource/
```
-
Sửa file
`plugin.json`
trong thư mục
`/usr/share/grafana/public/app/plugins/datasource/zabbix`
như sau (thêm 2 dòng username và password)
```
sh
{
"pluginType"
:
"datasource"
,
"name"
:
"Zabbix"
,
"type"
:
"zabbix"
,
"serviceName"
:
"ZabbixAPIDatasource"
,
"module"
:
"app/plugins/datasource/zabbix/datasource"
,
"partials"
:
{
"config"
:
"app/plugins/datasource/zabbix/partials/config.html"
}
,
"username"
:
"admin"
,
"password"
:
"DATA2o016ZaBB1x"
,
"metrics"
:
true
,
"annotations"
:
true
}
```
-
Khởi động lại grafana
```
sh
service grafana-server restart
```
#### Phía client
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment