tmp: grafana stuff
This commit is contained in:
122
ops/grafana/bash history
Normal file
122
ops/grafana/bash history
Normal file
@@ -0,0 +1,122 @@
|
||||
75 apk add grafana
|
||||
76 sudo apk add grafana
|
||||
77 apk show grafana-openrc
|
||||
78 apk info grafana-openrc
|
||||
79 apk list --installed grafana*
|
||||
80 apk list grafana*
|
||||
81 apk search grafana*
|
||||
82 which grafana
|
||||
83 ls
|
||||
84 cd grafana/
|
||||
85 ls
|
||||
86 cd ..
|
||||
87 cd grafana/
|
||||
88 which grafana
|
||||
89 ls -lah /usr/bin/grafana
|
||||
90 cd ..
|
||||
91 ls
|
||||
92 grafana-cli plugins list
|
||||
93 grafana-cli plugins --help
|
||||
94 grafana-cli plugins ls
|
||||
95 grafana plugins ls
|
||||
96 grafana --help
|
||||
97 grafana cli plugins ls
|
||||
98 grafana cli plugins install frser-sqlite-datasource
|
||||
99 sudo grafana cli plugins install frser-sqlite-datasource
|
||||
100 grafana cli plugins install frser-sqlite-datasource
|
||||
101 ls ~
|
||||
102 ls
|
||||
103 grafana-server -v
|
||||
104 grafana-server --help
|
||||
105 cd ../
|
||||
106 mkdir grafana2
|
||||
107 cd grafana2/
|
||||
108 mkdir plugins
|
||||
109 vim grafana.ini
|
||||
110 mkdir -p /memory/grafana2/{conf,data,plugins,provisioning,dashboards}
|
||||
111 ls
|
||||
112 rm \{conf,data,plugins,provisioning,dashboards}/
|
||||
113 rm -r \{conf,data,plugins,provisioning,dashboards}/
|
||||
114 mkdir conf data plugins provisioning dashboards
|
||||
115 ls
|
||||
116 rm grafana.ini
|
||||
117 vim grafana.ini
|
||||
118 vim conf/grafana.ini
|
||||
119 which grafana
|
||||
120 grafana-cli --homepath /usr/bin --pluginsDir /memory/grafana2/plugins install frser-sqlite-datasource
|
||||
121 grafana cli --homepath /usr/bin --pluginsDir /memory/grafana2/plugins install frser-sqlite-datasource
|
||||
122 grafana cli --help
|
||||
123 grafana cli --homepath /usr/bin --pluginsDir /memory/grafana2/plugins plugins install frser-sqlite-datasource
|
||||
124 grafana cli --pluginsDir /memory/grafana2/plugins plugins install frser-sqlite-datasource
|
||||
125 apk info grafana
|
||||
126 apk --help
|
||||
127 apk info --help
|
||||
128 apk info -L grafana
|
||||
129 grafana cli --homepath . --pluginsDir /memory/grafana2/plugins plugins install frser-sqlite-datasource
|
||||
130 cp /usr/share/grafana/conf/defaults.ini conf/
|
||||
131 grafana cli --homepath . --pluginsDir /memory/grafana2/plugins plugins install frser-sqlite-datasource
|
||||
132 grafana cli --homepath . plugins install frser-sqlite-datasource
|
||||
133 grafana cli --homepath . --pluginsDir /memory/grafana2/plugins plugins install frser-sqlite-datasource
|
||||
134 vim conf/grafana.ini
|
||||
135 mkdir provisioning/datasources provisioning/dashboards
|
||||
136 vim provisioning/datasources/sqlite.yaml
|
||||
137 ls
|
||||
138 ls data
|
||||
139 fg
|
||||
140 vim provisioning/dashboards/dashboards.yaml
|
||||
141 vim dashboards/main.json
|
||||
142 cp /memory/grafana/sine.db data/wispem.db
|
||||
143 find .
|
||||
144 vim provisioning/datasources/sqlite.yaml
|
||||
145 grafana server --homepath .
|
||||
146 ls
|
||||
147 grafana server --homepath . --pluginsDir /memory/grafana2/plugins --config /memory/grafana2/conf/grafana.ini
|
||||
148 grafana server --homepath . --config /memory/grafana2/conf/grafana.ini
|
||||
149 grafana
|
||||
150 grafana server
|
||||
151 apk info --help
|
||||
152 apk info -W /usr/share/grafana
|
||||
153 apk info -W /usr/share/grafana/public
|
||||
154 ln -s /usr/share/grafana/public public
|
||||
155 grafana server
|
||||
156 ls
|
||||
157 dashboards/
|
||||
158 ls dashboards/
|
||||
159 find .
|
||||
160 find . | grep -v plugins
|
||||
161 vim conf/defaults.ini
|
||||
162 ls
|
||||
163 ls conf/
|
||||
164 grafana server --help
|
||||
165 grafana server --config conf/grafana.ini
|
||||
166 vim provisioning/dashboards/dashboards.yaml
|
||||
167 vim dashboards/main.json
|
||||
168 cat dashboards/main.json
|
||||
169 curl http://localhost:3000/api/datasources
|
||||
170 grafana server --config conf/grafana.ini --help
|
||||
171 cat data/log/grafana.log
|
||||
172 grafana server --config conf/grafana.ini &
|
||||
173 fg
|
||||
174 grafana server --config conf/grafana.ini >/dev/null 2>&1 &
|
||||
175 jobs
|
||||
176 curl http://localhost:3000/api/datasources
|
||||
177 curl http://admin:admin@localhost:3000/api/datasources
|
||||
178 curl http://admin:admin@localhost:3000/api/datasources | jq
|
||||
179 curl -q http://admin:admin@localhost:3000/api/datasources | jq
|
||||
180 curl http://admin:admin@localhost:3000/api/datasources | jq
|
||||
181 ls
|
||||
182 ls provisioning/datasources/sqlite.yaml
|
||||
183 cat provisioning/datasources/sqlite.yaml
|
||||
184 vim provisioning/datasources/sqlite.yaml
|
||||
185 curl http://admin:admin@localhost:3000/api/datasources | jq
|
||||
186 fg
|
||||
187 grafana server --config conf/grafana.ini 1>/dev/null 2>&1 &
|
||||
188 curl http://admin:admin@localhost:3000/api/datasources | jq
|
||||
189 vim dashboards/main.json
|
||||
190 fg
|
||||
191 grafana server --config conf/grafana.ini 1>/dev/null 2>&1 &
|
||||
192 fg
|
||||
193 vim dashboards/main.json
|
||||
194 grafana server --config conf/grafana.ini 1>/dev/null 2>&1 &
|
||||
195 find .
|
||||
196 history
|
||||
Reference in New Issue
Block a user