@cryptotaxi247 / netdata-1 / commits / 4f1df1ab2

added support for title customization for each graph.

box@home root committed Jun 19, 2013 at 22:11 UTC 4f1df1ab28b2af8b0cfea169330b35110f9414ad
2 files changed +14 -2
README.md
+5 -1
@@ -35,9 +35,13 @@ Your browser will hit the web server to fetch the JSON data and refresh the grap
35 ./netdata.start
36 ```
37
38 -For this to work, you need to have persmission to create a directory in /run.
38 +For this to work, you need to have persmission to create a directory in /run or /var/run or /tmp.
39 If you run into problems, try to become root to verify it works.
40
41 +Once you run it, the file all.config will be created. You can edit this file to set options for each graph.
42 +To apply the changes you made, you have to run netdata.start again.
43 +
44 +
45 ---
46
47 ## Installation by hand
netdata.start
+9 -1
@@ -126,12 +126,20 @@ cat >all.html <<EOF
126 // EDIT: --------------------------------------------------------------------------------
127 EOF
128
129 +if [ -f all.config ]
130 +then
131 + source all.config
132 +fi
133 +
134 for x in $all
135 do
136 + eval "NETDATA_TITLE_${x}=\${NETDATA_TITLE_${x}:-Live Network Usage for ${x}}"
137 + eval "t=\${NETDATA_TITLE_${x}}"
138 cat >>all.html <<EOF2
132 - drawChart('${x}', '${x}_div', width, height, "data/${x}.json", "Live Network Usage for ${x}");
139 + drawChart('${x}', '${x}_div', width, height, "data/${x}.json", "${t}");
140 EOF2
141 done
142 +set|grep ^NETDATA_TITLE_ >all.config
143
144 ref=4
145 tim=1000