Metrics & Logs

Four screens under Observability: Metrics (CloudWatch or Prometheus with PromQL), Live Tail (pod logs in real time), Logs (Loki with LogQL) and CloudWatch logs.

Before you start

  • Metrics, Live Tail and Logs (Loki) need the Pro or Enterprise plan (the trial includes them); the server checks it too. CloudWatch logs is also available on Free. See Plans & limits.
  • In your access profile, the Métricas, Live Tail and Logs sections (shown in Spanish), as you need them. Logs covers both Loki and CloudWatch logs.
  • An AWS connection. For PromQL, Live Tail and Loki, also an EKS cluster in that connection (private clusters go through the agent, see Private clusters).
  • PromQL mode needs Prometheus in the cluster and Loki needs Loki. If they are missing, the screen shows the prerequisites notice with Instalar; see Cluster prerequisites. CloudWatch mode, Live Tail and CloudWatch logs need nothing in the cluster.

1. Metrics in CloudWatch mode

Most of this screen is shown in Spanish.

  1. 1Go to Observability → Metrics. The Metric Explorer opens in CloudWatch mode.
    Metric Explorer in CloudWatch mode with connection, time range and the first series
  2. 2Choose the Conexión AWS and the Rango de tiempo (15 minutes to 30 days).
  3. 3In Consultas, for each series choose the Namespace, type or pick the Métrica (the field autocompletes with the metrics of that namespace), the Estadística and the Dimensiones. With Container Insights metrics, the Namespace (k8s) and Pod filters appear first. Agregar serie adds up to 5 series.
  4. 4Click Consultar. You get the summary (current value, average, max, min, p95) and the Resultados line chart.

2. Metrics in PromQL mode

  1. 1On the same screen, click the PromQL toggle (top right).
  2. 2Choose Conexión, Cluster and Rango. KeelPilot checks whether Prometheus is installed; until it finds it, Consultar stays disabled and the Required prerequisites notice appears.
    PromQL mode with connection, cluster and range selected and the required prerequisites notice
  3. 3Write the query in PromQL Query. The field autocompletes with the metric names of the cluster's Prometheus, and there are four example shortcuts below it.
  4. 4Optional: in Ask in plain language describe what you want (e.g. “CPU usage per pod over the last hour”), click Translate and then Use this query. It needs AI enabled (see AIOps); the query is never run on its own.
  5. 5Click Consultar. The Resultados chart shows up to 20 series; if there are more, a notice says “Mostrando 20 de N series”. Use topk(), bottomk() or sum by to reduce them.
    PromQL query with the p95 latency per service and the Results chart highlighted
Example: sum(rate(container_cpu_usage_seconds_total{namespace="production"}[5m])) by (pod)

Export and save

  • Export CSV downloads the visible series, in both modes: a metricas-<date>.csv file with a timestamp column and one column per series.
  • Guardar en Dashboard adds the CloudWatch query as a widget of a custom dashboard. Custom dashboards are an Enterprise feature.
  • There is no instant-value table: results are always a line chart.

3. Live Tail

The selectors and buttons of this screen are shown in Spanish.

  1. 1Go to Observability → Live Tail.
  2. 2Choose Conexión..., Cluster..., Namespace... and Pod.... With more than one pod you can choose Todos los pods, which opens one stream per pod. Container (opc) is optional.
  3. 3Click Conectar. Lines arrive in real time with time, level and container.
    Live Tail connected to all pods of a namespace, with the stream of lines (time, level, container) highlighted
  4. 4Filter with Filtrar por texto... (it highlights the match) and the level selector (Todos, ERROR, WARN, INFO, DEBUG). Pausar stops the view without losing lines; Reanudar shows what accumulated.
    Live Tail filtered by text with the matches highlighted and paused, with the filter bar and Resume highlighted
  5. 5Desconectar closes the stream. If 10 minutes go by without new lines, the server closes it with “Disconnected due to inactivity (10 min)”.

4. Logs (Loki)

  1. 1Go to Observability → Logs. The screen is the Loki Explorer.
  2. 2Choose Connection, Cluster and Time range (15 min to 7 days). If Loki is not installed, the prerequisites notice appears and Search stays disabled.
  3. 3Write the query in LogQL Query (for example {namespace="default"} |= "error") or click one of the cluster Labels to start one. You can also use Ask in plain language, as in PromQL.
  4. 4Click Search (or press Enter). Narrow the result with Filter by text... and All levels; the screen shows up to 500 lines.
    Loki Explorer with a LogQL query for the payments service of acme-shop and its log lines, with Search highlighted
  5. 5Download logs saves the filtered lines to a text file.

5. CloudWatch logs

  1. 1Go to Observability → CloudWatch logs. The screen is CloudWatch Logs.
  2. 2Choose Connection and Region, and find the group with Filter log groups....
    CloudWatch Logs with connection and region selected and the Filter log groups box highlighted
  3. 3Click a log group: its events load for the chosen range (5m to 24h, 1h by default). To narrow them, type a Filter pattern (CloudWatch syntax)... and click Search. Load older brings the previous page.

With Google Cloud

  • Metrics use Cloud Monitoring instead of CloudWatch: GKE containers and nodes, Cloud SQL and Cloud Run, in the metrics dashboard, the explorer and dashboard widgets. Module: Metrics (roles/monitoring.viewer).
  • Logs use Cloud Logging: the text is searched literally in every field and each entry shows its resource. Google allows 60 log queries per minute per project, shared with everything else you query; if you hit it, try again in a minute. To follow a pod live, use Live Tail. Module: Logs (roles/logging.viewer, without Data Access logs).
  • Loki, Prometheus and Live Tail work the same with GKE clusters. See Connect Google Cloud.

How to check it works

  • Metrics: Consultar draws the Resultados chart and Export CSV downloads the file.
  • Live Tail: after Conectar, lines appear; if the pod logs nothing, the screen says Esperando logs...
  • Logs: Search returns lines and the counter says “Showing N of M lines”.

Troubleshooting

“Feature not available on your current plan” over Metrics, Live Tail or Logs.

Cause: The organization is on Free: these screens need Pro or Enterprise.

Fix: Upgrade the plan from View plans. CloudWatch logs works on Free.

“Required prerequisites” in PromQL mode or Logs, and the query button is disabled.

Cause: Prometheus or Loki is not where KeelPilot looks for it in the cluster.

Fix: Click Instalar, or install it by hand with the release name and namespace from Cluster prerequisites.

“No se encontraron namespaces. Verificá los permisos de CloudWatch en la conexión.” in CloudWatch mode.

Cause: The connection role cannot list CloudWatch metrics, or the account has none.

Fix: Check the role permissions of the connection and that the region has metrics.

“Mostrando 20 de N series”.

Cause: The PromQL query returns more than 20 series and only the first 20 are drawn.

Fix: Aggregate or limit the query with sum by, topk() or bottomk().

“Disconnected due to inactivity (10 min)” in Live Tail.

Cause: The pod wrote no lines for 10 minutes.

Fix: Click Reconectar (or Conectar) again.