Skip to content

Commit cebd354

Browse files
committed
Adding grafana config, fixing datasource
1 parent f418fb0 commit cebd354

File tree

3 files changed

+413
-3
lines changed

3 files changed

+413
-3
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ RUN wget https://github.com/lomik/go-carbon/releases/download/v0.10.1/go-carbon_
2525
&& service go-carbon stop
2626

2727
# install grafana
28+
ADD conf/etc/grafana/grafana.ini /etc/grafana/grafana.ini
2829
RUN wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_4.4.1_amd64.deb \
2930
&& dpkg -i grafana_4.4.1_amd64.deb \
3031
&& rm /grafana_4.4.1_amd64.deb \
3132
&& service grafana-server restart \
3233
&& sleep 5 \
3334
&& curl -X POST -H 'Content-Type: application/json' -u 'admin:admin' \
34-
-d '{ "name": "carbonapi", "type": "graphite", "url": "https://127.0.0.1:8081", "access": "proxy", "basicAuth": false }' \
35+
-d '{ "name": "carbonapi", "type": "graphite", "url": "http://127.0.0.1:8081", "access": "proxy", "basicAuth": false }' \
3536
"http://127.0.0.1:3000/api/datasources" \
36-
&& service grafana-server stop
37+
&& service grafana-server stop \
38+
&& mkdir -p /usr/share/grafana/data \
39+
&& mv -fv /var/lib/grafana/* /usr/share/grafana/data
3740

3841
# config nginx
3942
RUN rm /etc/nginx/sites-enabled/default

0 commit comments

Comments
 (0)