Blame SOURCES/002-manpages.patch

6b5415
diff --git a/docs/man/man1/grafana-cli.1 b/docs/man/man1/grafana-cli.1
6b5415
new file mode 100644
28ad2d
index 0000000000..7ac2af882c
6b5415
--- /dev/null
6b5415
+++ b/docs/man/man1/grafana-cli.1
28ad2d
@@ -0,0 +1,60 @@
ad1bcd
+.TH GRAFANA "1" "April 2022" "Grafana cli version 7.5.15" "User Commands"
6b5415
+.SH NAME
6b5415
+grafana-cli \- command line administration for the Grafana metrics dashboard and graph editor
6b5415
+.SH DESCRIPTION
6b5415
+.SS "NAME:"
6b5415
+.IP
6b5415
+grafana-cli
6b5415
+.SS "USAGE:"
6b5415
+.IP
6b5415
+\fBgrafana\-cli\fP [\fIglobal options\fP] \fIcommand\fP [\fIcommand options\fP] [\fIarguments\fP...]
6b5415
+.SS "COMMANDS:"
6b5415
+.TP
6b5415
+plugins
6b5415
+Manage plugins for grafana
6b5415
+.TP
6b5415
+admin
6b5415
+Grafana admin commands
6b5415
+.TP
6b5415
+help, h
6b5415
+Shows a list of commands or help for one command
6b5415
+.SS "GLOBAL OPTIONS:"
6b5415
+.TP
6b5415
+\fB\-\-pluginsDir\fR value
6b5415
+path to the grafana plugin directory (default: "/var/lib/grafana/plugins") [$GF_PLUGIN_DIR]
6b5415
+.TP
6b5415
+\fB\-\-repo\fR value
6b5415
+url to the plugin repository (default: "https://grafana.com/api/plugins") [$GF_PLUGIN_REPO]
6b5415
+.TP
6b5415
+\fB\-\-pluginUrl\fR value
6b5415
+Full url to the plugin zip file instead of downloading the plugin from grafana.com/api [$GF_PLUGIN_URL]
6b5415
+.TP
6b5415
+\fB\-\-insecure\fR
6b5415
+Skip TLS verification (insecure)
6b5415
+.TP
6b5415
+\fB\-\-debug\fR, \fB\-d\fR
6b5415
+enable debug logging
6b5415
+.TP
28ad2d
+\fB\-\-configOverrides\fR value
28ad2d
+Configuration options to override defaults as a string. e.g. cfg:default.paths.log=/dev/null
28ad2d
+.TP
28ad2d
+\fB\-\-homepath\fR value
28ad2d
+Path to Grafana install/home path, defaults to working directory
28ad2d
+.TP
28ad2d
+\fB\-\-config\fR value
28ad2d
+Path to config file
28ad2d
+.TP
6b5415
+\fB\-\-help\fR, \fB\-h\fR
6b5415
+show help
6b5415
+.TP
6b5415
+\fB\-\-version\fR, \fB\-v\fR
6b5415
+print the version
6b5415
+.SH "SEE ALSO"
6b5415
+Additional documentation for
6b5415
+.B grafana-cli
6b5415
+is available on-line at
6b5415
+.BR http://docs.grafana.org/administration/cli/ .
6b5415
+The full documentation for
6b5415
+.B Grafana
6b5415
+is available on-line at
6b5415
+.BR http://docs.grafana.org/ .
6b5415
diff --git a/docs/man/man1/grafana-server.1 b/docs/man/man1/grafana-server.1
6b5415
new file mode 100644
28ad2d
index 0000000000..c616268b31
6b5415
--- /dev/null
6b5415
+++ b/docs/man/man1/grafana-server.1
897738
@@ -0,0 +1,72 @@
ad1bcd
+.TH VERSION "1" "April 2022" "Version 7.5.15" "User Commands"
6b5415
+.SH NAME
6b5415
+grafana-server \- back-end server for the Grafana metrics dashboard and graph editor
6b5415
+.SH DESCRIPTION
6b5415
+.B grafana-server
6b5415
+is the back-end server for the Grafana metrics dashboard and graph editor.
6b5415
+The
6b5415
+.B grafana-server
6b5415
+program should not normally be run from the command line,
6b5415
+except when testing or for development purposes.
6b5415
+Rather it should be managed by
6b5415
+.BR systemd .
6b5415
+After installing Grafana, the systemd service should be enabled and started as follows:
6b5415
+.P
6b5415
+.in 1i
6b5415
+.B systemctl daemon-reload
6b5415
+.br
6b5415
+.B systemctl enable grafana-server.service
6b5415
+.br
6b5415
+.B systemctl start grafana-server.service
6b5415
+.in
6b5415
+.P
6b5415
+.SH OPTIONS
6b5415
+The
6b5415
+.B gafana-server
6b5415
+configuration is specified in
6b5415
+.BR /etc/grafana/grafana.ini
6b5415
+and is well documented with comments.
6b5415
+The command-line options listed below override options of
28ad2d
+the same (or similar) name in the configuration file.
6b5415
+.P
6b5415
+.HP
6b5415
+\fB\-config\fR string
6b5415
+.IP
6b5415
+path to config file
6b5415
+.HP
6b5415
+\fB\-homepath\fR string
6b5415
+.IP
6b5415
+path to grafana install/home path, defaults to working directory
6b5415
+.HP
6b5415
+\fB\-packaging\fR string
6b5415
+.IP
6b5415
+describes the way Grafana was installed (default "unknown")
6b5415
+.HP
6b5415
+\fB\-pidfile\fR string
6b5415
+.IP
6b5415
+path to pid file
6b5415
+.HP
6b5415
+\fB\-profile\fR
6b5415
+.IP
6b5415
+Turn on pprof profiling
6b5415
+.HP
28ad2d
+\fB\-profile\-port\fR uint
6b5415
+.IP
6b5415
+Define custom port for profiling (default 6060)
6b5415
+.HP
28ad2d
+\fB\-tracing\fR
6b5415
+.IP
28ad2d
+Turn on tracing
6b5415
+.HP
28ad2d
+\fB\-tracing\-file\fR string
6b5415
+.IP
28ad2d
+Define tracing output file (default "trace.out")
6b5415
+.TP
6b5415
+\fB\-v\fR
28ad2d
+.IP
6b5415
+prints current version and exits
6b5415
+.SH "SEE ALSO"
6b5415
+The full documentation for
6b5415
+.B Grafana
6b5415
+is available on-line at
6b5415
+.BR http://docs.grafana.org/ .