summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2018-04-02 19:28:42 -0500
committerWilliam Hubbs <williamh@gentoo.org>2018-04-02 19:30:41 -0500
commit5558078abf664d63fead55f6fde1d4b95d18e426 (patch)
treeac4524594e6dcefac4d8311d83f467c866288d63 /net-analyzer/chronograf/files
parentx11-libs/xcb-util-xrm: Version bump to 1.3 (diff)
downloadgentoo-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.confd16
-rw-r--r--net-analyzer/chronograf/files/chronograf.rc22
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
+}