Skip to content

Commit 074953f

Browse files
committed
Issues with SQL Lite
1 parent c91950f commit 074953f

File tree

22 files changed

+386
-1299
lines changed

22 files changed

+386
-1299
lines changed

grafana/non-prod/docker/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ RUN echo "Installing Python..." \
88
&& echo "Python installed successfully."
99

1010
# set timeout for plugin installation
11-
ENV GF_INSTALL_PLUGINS_TIMEOUT=300
11+
ENV GF_INSTALL_PLUGINS_TIMEOUT=6000
12+
ENV GF_UPDATE_CHECK=false
1213

1314
# Install Grafana plugins
1415
RUN echo "Installing plugins..." \
15-
&& grafana-cli plugins install grafana-lokiexplore-app
16+
&& grafana-cli plugins install grafana-lokiexplore-app \
17+
&& grafana-cli plugins install grafana-pyroscope-app
18+
19+
# Copy custom grafana.ini configuration file
20+
COPY ./grafana.ini /etc/grafana/grafana.ini
1621

1722
# Copy provisioning and dashboards
1823
RUN echo "=========\n\n\n\Copying provisioning files..."
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Custom grafana.ini file
2+
3+
[analytics]
4+
check_for_updates = false
5+
6+
[plugins]
7+
enable_alpha = false
8+
; app_tls_skip_verify_insecure = true

grafana/non-prod/docker/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ ! -f /etc/grafana/grafana.ini ]; then
1818
exit 1
1919
fi
2020

21-
which grafana-server
21+
GF_UPDATE_CHECK=false
2222

2323
# Start Grafana in the foreground
2424
echo "Starting Grafana server..."

grafana/non-prod/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ to review the docker image
2323
```
2424
docker image inspect imms-fhir-api-grafana:11.0.0-22.04_stable
2525
```
26+
27+
### vpce vs nat gateway
28+
29+
By default, grafana image requires access to internet for plugins and updates.
30+
1. Disable internet access. The updates can be disabled and plugins can be preloaded. However, this was timeboxed and timed out.
31+
2. Permit access via VPC Endpoints. This gives access to AWS services. However updates & & info updates require internet access by default. To avoid a natgw, a proxy could be used.
32+
3. NatGateway - this is the current solutipn. However, it should be reviewed as it is more permissive and has higher costs.

grafana/non-prod/terraform/.terraform.lock.hcl

Lines changed: 35 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)