diff options
author | William Hubbs <williamh@gentoo.org> | 2018-04-02 19:28:42 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2018-04-02 19:30:41 -0500 |
commit | 5558078abf664d63fead55f6fde1d4b95d18e426 (patch) | |
tree | ac4524594e6dcefac4d8311d83f467c866288d63 /net-analyzer/chronograf/files | |
parent | x11-libs/xcb-util-xrm: Version bump to 1.3 (diff) | |
download | gentoo-5558078abf664d63fead55f6fde1d4b95d18e426.tar.gz gentoo-5558078abf664d63fead55f6fde1d4b95d18e426.tar.bz2 gentoo-5558078abf664d63fead55f6fde1d4b95d18e426.zip |
net-analyzer/chronograf: monitoring, processing and alerting on time series data
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-analyzer/chronograf/files')
-rw-r--r-- | net-analyzer/chronograf/files/chronograf.confd | 16 | ||||
-rw-r--r-- | net-analyzer/chronograf/files/chronograf.rc | 22 |
2 files changed, 38 insertions, 0 deletions
diff --git a/net-analyzer/chronograf/files/chronograf.confd b/net-analyzer/chronograf/files/chronograf.confd new file mode 100644 index 000000000000..a70c355c6fb6 --- /dev/null +++ b/net-analyzer/chronograf/files/chronograf.confd @@ -0,0 +1,16 @@ +#The convention in this file is to show the default setting commented +#out. +#To change the setting, uncomment it then change the value. + +#This is the chronograf error log: +#error_log="/var/log/chronograf/chronograf.log" + +#This is the chronograf output log: +#output_log="/dev/null" + +# If you set this to yes, chronograf will report anonymous usage stats +# to influx data. +#report_usage_stats="no" + +# Extra options to pass to chronograf: +#chronograf_opts="" diff --git a/net-analyzer/chronograf/files/chronograf.rc b/net-analyzer/chronograf/files/chronograf.rc new file mode 100644 index 000000000000..335240dbf269 --- /dev/null +++ b/net-analyzer/chronograf/files/chronograf.rc @@ -0,0 +1,22 @@ +#!/sbin/openrc-run + +command=/usr/bin/chronograf +command_args="${chronograf_opts}" +command_background=yes +command_user=chronograf:chronograf +make_pidfile=yes +pidfile=/var/run/chronografd.pid + +# Logging +error_log="${error_log:-/var/log/chronograf/chronograf.log}" +output_log="${output_log:-/dev/null}" + +start_pre() { + export HOST=127.0.0.1 + export PORT=8888 + export BOLT_PATH=/var/lib/chronograf/chronograf-v1.db + export CANNED_PATH=/usr/share/chronograf/canned + export RESOURCES_PATH=/usr/share/chronograf/RESOURCES + yesno "${report_usage_stats:-no}" || export REPORTING_DISABLED=yes + return 0 +} |