Grafana Brief Tutorial

Source: Internet
Author: User
Tags ini grafana

After installation, the ETC folder will create a new Grafana folder with the following structure:

[Root@hotlinking-spark-dev001-shgq sysconfig]# ls/etc/grafana/
grafana.ini  ldap.toml

Grafana Environment files (envrionment file) are stored under/etc/sysconfig/grafana-server and can be modified to change the log storage address, data storage address, and other variables.

The SYSTEMD service file and Init.d script both use the file located at/etc/sysconfig/grafana-server for environment Vari Ables used when starting the back-end. Here's can override log directory, data directory and other variables.

The contents of the Grafana-server file are as follows:

Grafana_user=grafana
grafana_group=grafana
grafana_home=/usr/share/grafana
log_dir=/var/log/ Grafana
data_dir=/var/lib/grafana
max_open_files=10000
conf_dir=/etc/grafana
conf_file=/etc/ Grafana/grafana.ini
restart_on_upgrade=false
plugins_dir=/var/lib/grafana/plugins

Grafana configuration files (config file) are stored in/etc/grafana/grafana.ini, website configuration link, the link mentioned in $working_dir refers to/usr/share/ Grafana

The configuration file is located At/etc/grafana/grafana.ini

As you can see by diff,/usr/share/grafana/conf/default.ini is the same as/etc/grafana/grafana.ini content, except that the content of the latter is commented.

Specific configuration information is described in the relevant links, not detailed here.

Start the server

[Root@hotlinking-spark-dev001-shgq grafana]# Service grafana-server start
starting Grafana server: .... Ok

Related commands

[Root@hotlinking-spark-dev001-shgq grafana]# sudo service grafana-server-help
Usage:/etc/init.d/grafana-server {Start|stop|restart|force-reload|status}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.