Loki NGINX Service Mesh - JSON version
Loki v2+ showcase using JSON NGINX access logs.
Start using Grafana Loki even faster in Grafana Cloud (free plan includes 50GB of Loki logs): https://grafana.com/signup/cloud/connect-account
This dashboard is designed for Grafana 8.0 and higher.
Required NGINX json log format configuration below.
For IP to country mapping, also enable the Geo_IP module:
geoip_country /etc/nginx/GeoIP.dat;
geoip_city /etc/nginx/GeoIPCity.dat;
My promtail configuration:
server:
http_listen_port: 0
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: https://USER:PASSWORD@logs-prod-us-central1.grafana.net/api/prom/push
scrape_configs:
- job_name: system
pipeline_stages:
- replace:
expression: '(?:[0-9]{1,3}\.){3}([0-9]{1,3})'
replace: '***'
static_configs:
- targets:
- localhost
labels:
job: nginx_access_log
host: appfelstrudel
agent: promtail
__path__: /var/log/nginx/*access.log
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |

Grafana Loki (self-hosted)

Easily monitor Grafana Loki (self-hosted), a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus, with Grafana Cloud's out-of-the-box monitoring solution.
Learn moreGet this dashboard
Import the dashboard template
or