|
| 1 | +# Grafana Dashboard |
| 2 | + |
| 3 | +The `NGINX Mesh Top` Grafana dashboard provides a high-level picture |
| 4 | +of the request volume and success rate of all your applications in the mesh. |
| 5 | +NGINX Service Mesh deploys Grafana and adds `NGINX Mesh Top` as the |
| 6 | +default dashboard. If you prefer to use an existing Grafana deployment, you can import |
| 7 | +the `NGINX Mesh Top` dashboard included in this directory. |
| 8 | + |
| 9 | +## Prerequisties |
| 10 | +- Grafana version >= 5.2.0 |
| 11 | +- Prometheus datasource must be |
| 12 | + [configured](https://prometheus.io/docs/visualization/grafana/#creating-a-prometheus-data-source). |
| 13 | + |
| 14 | + **Note:** If you are using the Prometheus server deployed by NGINX Service Mesh you can |
| 15 | + find the address by running [`nginx-meshctl |
| 16 | + config`](https://docs.nginx.com/nginx-service-mesh/reference/nginx-meshctl/#usage). |
| 17 | + If you are using your own Prometheus server, make sure to add the NGINX |
| 18 | + Service Mesh [scrape config](../prometheus/README.md) to your |
| 19 | + Prometheus configuration. |
| 20 | + |
| 21 | + |
| 22 | +## Installing the NGINX Mesh Top Dashboard |
| 23 | + |
| 24 | +To install the NGINX Mesh Top Dashboard using the Grafana UI follow these steps: |
| 25 | +- Select the New Dashboard button and click Import. |
| 26 | +- Upload the [nginx-mesh-top.json](nginx-mesh-top.json) file or copy and paste the contents of the file in the textbox and click Load. |
| 27 | +- Select the Prometheus data source you configured previously from the dropdown |
| 28 | + menu and click Import. |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +### Features |
| 34 | +NGINX Mesh Top dashboard includes the following stats and graphs: |
| 35 | + |
| 36 | +- Stats: |
| 37 | + - Global Success Rate: the percentage of requests that are successful over |
| 38 | + the last 30 seconds (`nginxplus_upstream_server_responses` with response codes of `1xx` or `2xx`). |
| 39 | + - Global Request Volume: the volume of requests over the last 30 seconds, |
| 40 | + measured in requests per second (`nginxplus_http_total_requests`) . |
| 41 | + - Pods Monitored: The number of pods being scraped by Prometheus. |
| 42 | +- Graphs: |
| 43 | + - Request Volume: this graph shows the volume of requests per Pod, in |
| 44 | + requests per second (`nginxplus_http_total_requests`). |
| 45 | + - Pod Success: this graph shows the percentage of requests that are |
| 46 | + successful per Pod (`nginxplus_upstream_server_responses` with response codes of |
| 47 | + `1xx` or `2xx`). |
| 48 | + |
| 49 | + |
| 50 | +## Customizing your own Dashboard |
| 51 | + |
| 52 | +NGINX Service Mesh exposes NGINX Plus metrics in Prometheus format that can be used to |
| 53 | +create your own panels and custom dashboards. For a list of available metrics, labels, |
| 54 | +and example Prometheus queries, see the [Traffic Metrics |
| 55 | +guide](https://docs.nginx.com/nginx-service-mesh/guides/traffic-metrics/). |
0 commit comments