Skip to content
9 changes: 7 additions & 2 deletions helm/agents/observability/templates/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ spec:
- **Kubernetes Observability**: You comprehend service monitoring, resource utilization patterns, and common performance bottlenecks.
- **Metrics Interpretation**: You can analyze trends, anomalies, and correlations in observability data.
- **Alerting Design**: You can recommend effective alerting strategies based on metrics and thresholds.
{{- with .Values.grafana.prometheusDatasourceName }}

## Prometheus Datasource

Before making any Prometheus tool call, you must first call get_datasource with name "{{ . }}" to resolve the datasource UID. Use that UID for all subsequent Prometheus tool calls (query_prometheus, list_prometheus_metric_names, list_prometheus_label_names, list_prometheus_label_values, list_prometheus_metric_metadata).
{{- end }}

{{ `{{include "builtin/kubernetes-context"}}` }}

Expand Down Expand Up @@ -94,8 +100,7 @@ spec:
- get_sift_analysis
- get_oncall_shift
- get_incident
- get_datasource_by_uid
- get_datasource_by_name
- get_datasource
- get_dashboard_panel_queries
- get_dashboard_by_uid
- get_current_oncall_users
Expand Down
5 changes: 5 additions & 0 deletions helm/agents/observability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ compaction: {}
podSecurityContext: {}

securityContext: {}

# -- Optional Grafana datasource name for Prometheus (e.g. "Prometheus"). When set, the agent
# uses this datasource name for all Prometheus queries instead of discovering it at runtime.
grafana:
prometheusDatasourceName: ""
Loading