Grafana Loki Dashboard for NGINX Service Mesh

Dashboard

Loki v2+ showcase using JSON NGINX access logs.
Last updated: a month ago

Start with Grafana Cloud and the new FREE tier. Includes 10K series Prometheus or Graphite Metrics and 50gb Loki Logs

Downloads: 9499

Reviews: 23

Reviews

Login or Sign up to write a review

Reviews from the community

  • some of data's are not working.i'm newbie at loki and can't fixed.
    January 7th 2022, 1:29 pm
    by Ferhat Kacar
    Revision: 11
  • November 29th 2021, 4:56 am
    by yao wang
    Revision: 11
  • Great dashboard, I am using it for a while now. After upgrading to rev11 I had to update Grafana as the plugin used for the Worldmap changed and is only available in Grafana >= 8.1. But I anyway had to update Grafana, so no problem here. After the update the World Map is rendered, but sadly the requests are not visualized anymore.. Any idea why?
    November 8th 2021, 4:21 pm
    by Andreas Bucksteeg
    Revision: 11
  • November 1st 2021, 1:01 pm
    by martinlabat92
    Revision: 11
  • October 26th 2021, 6:04 pm
    by rakuten
    Revision: 11
  • Cool
    October 20th 2021, 8:17 am
    by Nsirim Goodness
    Revision: 11
  • Awesome chart, thanks for sharing. For those wanting to use with with the NGINX ingress controller (installed through the Helm chart) and the Promtail Helm chart, here are some instructions. In the ingress-nginx helm chart add the following config: controller: config: log-format-upstream: '{"msec":"$msec","connection":"$connection","connection_requests":"$connection_requests","pid":"$pid","request_id":"$request_id","request_length":"$request_length","remote_addr":"$remote_addr","remote_user":"$remote_user","remote_port":"$remote_port","time_local":"$time_local","time_iso8601":"$time_iso8601","request":"$request","request_uri":"$request_uri","args":"$args","status":"$status","body_bytes_sent":"$body_bytes_sent","bytes_sent":"$bytes_sent","http_referer":"$http_referer","http_user_agent":"$http_user_agent","http_x_forwarded_for":"$http_x_forwarded_for","http_host":"$http_host","server_name":"$server_name","request_time":"$request_time","upstream":"$upstream_addr","upstream_connect_time":"$upstream_connect_time","upstream_header_time":"$upstream_header_time","upstream_response_time":"$upstream_response_time","upstream_response_length":"$upstream_response_length","upstream_cache_status":"$upstream_cache_status","ssl_protocol":"$ssl_protocol","ssl_cipher":"$ssl_cipher","scheme":"$scheme","request_method":"$request_method","server_protocol":"$server_protocol","pipe":"$pipe","gzip_ratio":"$gzip_ratio","http_cf_ray":"$http_cf_ray","geoip_country_code":"$geoip_country_code"}' In the Promtail Helm chart add the following: config: snippets: pipelineStages: - docker: - match: selector: '{app="ingress-nginx"}' stages: - replace: expression: '(?:[0-9]{1,3}\.){3}([0-9]{1,3})' replace: '***' The "- docker:" pipelineStage is important since without it the JSON is nested within the "log:" entry of the docker log, making it inaccessible for Grafana. This might be different for clusters aren't using Docker for the container runtime. I'm using this on EKS 1.20 which still uses Docker for the container runtime.
    August 5th 2021, 12:22 pm
    by David van der Spek
    Revision: 10
  • It's just what I've been looking for! Perfect and does not require any stub status or api configuration on nginx part.
    July 28th 2021, 11:25 am
    by serjek
    Revision: 10
  • July 11th 2021, 11:30 am
    by vonsname
    Revision: 10
  • Excellent !
    June 23rd 2021, 12:21 pm
    by Ravindra JOB
    Revision: 10
  • How setup loki metrics? if the metric is not configured this leads to errors on dashboard
    March 28th 2021, 3:54 pm
    by Juggernaut
    Revision: 8
  • March 13th 2021, 9:48 am
    by suitman
    Revision: 8
  • March 10th 2021, 1:53 am
    by xiao chunping
    Revision: 8
  • Awesome dashboard. Require some nginx geoip2 setup, but without it simply works out of the box. Question: is there any way to create filter by http_host ?
    February 13th 2021, 3:04 pm
    by kyberorg
    Revision: 8
  • February 3rd 2021, 9:19 am
    by djo0x0
    Revision: 6
  • January 18th 2021, 2:42 am
    by can xiong
    Revision: 6
  • very nice๐Ÿ˜„
    January 18th 2021, 2:24 am
    by Link
    Revision: 6
  • Which collector is used here? Promtail? An example would be great!
    December 26th 2020, 5:44 pm
    by olsonnn
    Revision: 4
  • I love it!
    November 29th 2020, 3:31 pm
    by ricardona
    Revision: 4
  • In my loki datasource im collecting logs from multiple applications. is there a way a can filter the app to use for this dashboard?
    November 5th 2020, 5:55 am
    by frvasquezjaquez
    Revision: 4
Page of 2
Get this dashboard:
12559
Dependencies:
  • Grafana 8.1.6

  • Geomap

  • Logs

  • Loki 1.0.0

  • Stat

  • Table

  • Text

  • Time series