Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Replace <playground-pod-name> with the actual pod name.

Accessing Logs in Grafana

Viewing Logs for a Kubernetes Pod:

To view logs in Grafana for a specific Kubernetes pod:

  1. Open Grafana:
    Navigate to https://<Domain-Name>/monitoring.

  2. Go to Kubernetes Logs from Loki:
    On the left-hand side menu, go to Dashboards > Kubernetes > Kubernetes Logs from Loki.

  3. Select Namespace and Pod:

    • Namespace: Use the dropdown menu to select the specific namespace.

    • Pod: Use the dropdown menu to select the specific pod.

    • You can also filter logs by entering search terms like error, fatal, etc., in the Search Term field.

  4. View the Logs:

    • Logs will be displayed in the Logs Panel below the filtering options.

    • The logs are timestamped, and you can scroll through to see different log entries.

    • The graph above the logs shows the number of log entries over time, giving you a quick overview of log activity.

...