SambaStack uses two powerful tools to help monitor your deployment’s health and activity:
  • Grafana: Delivers detailed metrics and visual dashboards where you can track token usage, performance indicators such as Time to First Token (TTFT), tokens per second, and latency trends.
  • OpenSearch Dashboards: Allows you to explore logs in depth, search requests, view errors, check status codes, and trace requests by ID.
Together, these tools provide comprehensive monitoring and logging, simplifying issue identification and performance optimization.”.

Access instructions

Grafana access

Step 1 — Get Grafana initial admin credentials

Run the following command to retrieve stored admin credentials:
kubectl get secret grafana-initial-admin-credentials -o json \
  | jq -r '.data | to_entries[] | "\(.key): \(.value | @base64d)"'
Example output:
admin-user: admin
admin-password: <random-password>
Credentials are securely stored as a cluster secret. Store these credentials securely and do not share them.

Step 2 — Identify Grafana service port

List all services and find the Grafana service with its port number.
kubectl get svc
Example output snippet:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
sambastack-grafana ClusterIP cluster-IP-address <none> 80/TCP 41h
The sambastack-grafana service exposes port 80. When port-forwarding, ensure the remote port matches this.

Step 3 — Port-forward Grafana

Forward the remote port to your local machine by running:
kubectl port-forward svc/sambastack-grafana 8080:80
  • 80 is the remote service port to forward.
  • 8080 is your chosen local port.
Access Grafana UI at: http://localhost:8080

OpenSearch access

Step 1 — Get OpenSearch initial admin credentials

Obtain the OpenSearch admin password by running:
kubectl get secret/opensearch-initial-admin-password -o json | jq -r '.data | to_entries[] | "\(.key): \(.value | @base64d)"'
This command outputs the admin password required for login.

Step 2 — Identify OpenSearch service port

Locate the OpenSearch Dashboards service port:
kubectl get svc
Example entry:
sambastack-opensearch-dashboards ClusterIP cluster-IP-address <none> 5601/TCP 41h

Step 3 — Port-forward OpenSearch dashboards

Forward the port locally:
kubectl port-forward svc/sambastack-opensearch-dashboards 8081:5601
  • 5601 is the remote port for OpenSearch Dashboards.
  • 8081 is your chosen local port.
Access OpenSearch dashboards UI at: http://localhost:8081