Grafana – redirect port 3000 to 80

If you need / want to redirect Grafana from port 3000 to 80 (for example when you use subdomain to call Grafana) the easiest way to do it is by rerouting on OS level: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000   Links: Redirect...

Grafana + Cloudflare

There are more ways how to expose your Grafana to other world under subdomain name of your main domain. I used this one: Add in cloudflare record of type A with subdomain you choose pointing to the Grafana IP – TTL automatic, status “DNS only”...

Move Grafana to other instance

Source: https://stackoverflow.com/questions/42036663/how-to-complete-copy-grafana-dashboards-from-one-server-to-other-server Install / update Grafana to the same versions on both old and new site. Shutdown both using sudo service grafana-server stop On original...

Grafana – template variables – small hints

Template variables in dashboard: (Example is for data source Elasticsearch – uses Lucene query) Custom all value: If you need to switch graph between showing sum over for example all customers to showing one specific customer in the same dashboard and data are...

Grafana + Elasticsearch – queries

Here are some useful queries for Grafana using Elasticsearch as data source. For templating: select all values of the column: {“find”: “terms”, “field”: “column_name”} limit selected values with some query:...

Grafana – small hints

If you made some changes in grafana.ini file and restart of grafana-server service failed check /var/log/syslog file. If you see error message like this: grafana-server[18414]: t=2016-12-05T15:33:28+0000 lvl=crit msg=”Failed to parse /etc/grafana/grafana.ini,...