grafana-server
Start the Grafana web server
TLDR
SYNOPSIS
grafana server [flags]
DESCRIPTION
grafana server starts the Grafana HTTP server: dashboards, alerting, and the data-source proxies. It is a subcommand of the grafana binary, not a separate program in current packages. The web UI listens on port 3000 unless the config file says otherwise. The first login on a new database is admin / admin, and Grafana asks for a new password.Debian and RPM packages run this command from systemd with --homepath /usr/share/grafana, a pid file, and cfg: path overrides for logs, data, plugins, and provisioning. Older installs shipped a binary named grafana-server that accepted the same flags.If --config is set and Grafana cannot find conf/defaults.ini, set --homepath to the install directory as well.
PARAMETERS
--config file
Path to the configuration file. Packaged installs on Linux use /etc/grafana/grafana.ini.--homepath path
Grafana install directory. Defaults to the working directory. Defaults and bundled files are loaded from here.--pidfile file
Write the server process id to this file.--packaging name
How this build was installed (deb, rpm, and so on). Default unknown.--configOverrides cfg:section.key=value
Replace one default for this process. Example: cfg:default.paths.log=/dev/null.-v, --version
Print the version and exit.--vv
Print the version and dependency versions, then exit.--profile
Turn on pprof. --profile-addr defaults to localhost and --profile-port defaults to 6060.
CONFIGURATION
grafana.ini (often /etc/grafana/grafana.ini)
Server port, database, authentication, and paths. Do not edit conf/defaults.ini; that file is the built-in defaults./etc/grafana/provisioning/
YAML that adds data sources, dashboards, and alerting without using the UI.
INSTALL
CAVEATS
--homepath defaults to the current directory. Starting the binary from a home directory, without --homepath, looks for defaults there and fails.--vv exits after printing versions. It does not start the server.
SEE ALSO
grafana(1), grafana-cli(1), prometheus(1)
