Skip to content

Instantly share code, notes, and snippets.

@senthilsweb
Last active January 31, 2021 23:19
Show Gist options
  • Save senthilsweb/a8d60f25880ed3c4ebcb429cdbc07df2 to your computer and use it in GitHub Desktop.
Save senthilsweb/a8d60f25880ed3c4ebcb429cdbc07df2 to your computer and use it in GitHub Desktop.

** Install grafana from docker https://grafana.com/docs/grafana/latest/installation/docker/

docker run -d \
  -p 3000:3000 \
  --name=grafana \
  -e "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource" \
  --add-host=host.docker.internal:host-gateway \
  grafana/grafana

** Grafana infinity datasource https://sriramajeyam.com/grafana-infinity-datasource/

** Install the plugin using Grafana cli

docker exec -it grafana grafana-cli --pluginUrl https://github.com/yesoreyeram/grafana-infinity-datasource/releases/download/v0.6.0-alpha2/yesoreyeram-infinity-datasource-0.6.0.zip plugins install yesoreyeram-infinity-datasource
docker exec -it grafana --add-host=host.docker.internal:host-gateway alpine cat /etc/hosts

** Restart the grafana-server

** Sample GET REST call

GET https://jsonplaceholder.typicode.com/todos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment