Grafana快速入门
Grafana 是一个开源的度量分析与可视化套件。经常被用作基础设施的时间序列数据和应用程序分析的可视化,它在其他领域也被广泛的使用包括工业传感器、家庭自动化、天气和过程控制等。
最后更新于
#################################### SMTP / Emailing #####################
[smtp]
enabled = false
host = localhost:25
user =
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
password =
cert_file =
key_file =
skip_verify = false
from_address = [email protected]
from_name = Grafana
ehlo_identity =
[emails]
welcome_email_on_sign_up = false
templates_pattern = emails/*.htmlsudo systemctl restart grafana-server# 修改管理员密码
docker exec -it grafana grafana-cli admin reset-admin-password admin123CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0e8348b13542 phpmyadmin:latest "/docker-entrypoint.…" 12 minutes ago Up 12 minutes 0.0.0.0:9090->80/tcp, :::9090->80/tcp phpmyadmin
12bb28a1571e grafana/grafana:latest "/run.sh" 13 minutes ago Up 13 minutes 0.0.0.0:9001->3000/tcp, :::9001->3000/tcp grafana
5eaf5c965651 grafana/promtail:main "/usr/bin/promtail -…" 13 minutes ago Up 13 minutes grafana-promtail
610a9ad5edfe mysql:5.7 "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 3306/tcp, 33060/tcp grafana-db
49b08cdf0e3d grafana/loki:main "/usr/bin/loki -conf…" 13 minutes ago Up 13 minutes 3100/tcp grafana-loki
# Grafana Version
sudo docker exec -it grafana grafana-cli -vsudo docker l start | stop | restart | stats grafana
sudo docker l start | stop | restart | stats grafana-db
sudo docker l start | stop | restart | stats grafana-promtail
sudo docker l start | stop | restart | stats grafana-loki$ docker exec -it grafana grafana-cli -h
NAME:
Grafana CLI - A new cli application
USAGE:
grafana-cli [global options] command [command options] [arguments...]
VERSION:
8.4.4
AUTHOR:
Grafana Project <[email protected]>
COMMANDS:
plugins Manage plugins for grafana
admin Grafana admin commands
cue Cue validation commands
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--pluginsDir value Path to the Grafana plugin directory (default: "/var/lib/grafana/plugins") [$GF_PLUGIN_DIR]
--repo value URL to the plugin repository (default: "https://grafana.com/api/plugins") [$GF_PLUGIN_REPO]
--pluginUrl value Full url to the plugin zip file instead of downloading the plugin from grafana.com/api [$GF_PLUGIN_URL]
--insecure Skip TLS verification (insecure) (default: false)
--debug Enable debug logging (default: false)
--configOverrides value Configuration options to override defaults as a string. e.g. cfg:default.paths.log=/dev/null
--homepath value Path to Grafana install/home path, defaults to working directory
--config value Path to config file
--help, -h show help (default: false)
--version, -v print the version (default: false)