Loki Logs
Now that you've explored some of the data in Grafana, we've provided you some dashboards to quickly visualize the data collected by the Kubernetes Logs and Metrics Sources. In this section, you'll explore the logs.
- Click the Grafana tab at the top of the screen to switch to Grafana.
- Click the "hamburger" icon (three horizontal lines) below the Grafana logo to open the menu.
- Select Dashboards from the menu.
- Expand the General folder.
- Select the Loki Logs dashboard.
Once loaded, you'll see many log entries populate in the dashboard.
At the top of the dashboard, you'll find filters for viewing logs from only specific Pods in the Kubernetes cluster. These filters are powered by the labels we created in the kube_logs_loki_labels
pipeline.
Feel free to filter this view and explore the logs being collected. Once you're done, you'll see the Kube State Metrics being collected by the Kubernetes Metric source.
If you want to generate some more logs and see what they would look like, run the following command in the Terminal tab:
kubectl apply -f - <<EOF
apiVersion: v1
kind: Pod
metadata:
name: noise
spec:
containers:
- name: noise
image: kscarlett/nginx-log-generator
env:
- name: RATE
value: "3"
EOF