File tree Expand file tree Collapse file tree
docs/configuration/holmesgpt/toolsets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,41 @@ You can find the Grafana URL required for Loki and Tempo in your Grafana cloud a
2424 :width: 600
2525 :align: center
2626
27+ Obtaining the datasource UID
28+ -----------------------
29+
30+ You may have multiple Tempo data sources setup in Grafana. HolmesGPT uses a single Tempo datasource to
31+ fetch the logs and it needs to know the UID of this datasource.
32+
33+ A simple way to get the datasource UID is to access the Grafana API by running the following request:
34+
35+ .. code-block :: bash
36+ # port forward if you are using Robusta's grafana from your kubernetes cluster
37+ kubectl port-forward svc/robusta-grafana 3000:80
38+ # List the Tempo data sources
39+ curl -s -u < username> :< password> http://localhost:3000/api/datasources | jq ' .[] | select(.type == "tempo")'
40+ {
41+ " id" : 3,
42+ " uid" : " klja8hsa-8a9c-4b35-1230-7baab22b02ee" ,
43+ " orgId" : 1,
44+ " name" : " Tempo" ,
45+ " type" : " tempo" ,
46+ " typeName" : " Tempo" ,
47+ " typeLogoUrl" : " /public/app/plugins/datasource/tempo/img/tempo_icon.svg" ,
48+ " access" : " proxy" ,
49+ " url" : " http://tempo-query-frontend.tempo:3100" ,
50+ " user" : " " ,
51+ " database" : " " ,
52+ " basicAuth" : false,
53+ " isDefault" : false,
54+ " jsonData" : {
55+ " tlsSkipVerify" : true
56+ },
57+ " readOnly" : false
58+ }
59+ # In this case, there is a single Tempo datasourceUID
60+ # with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
61+
2762 Configuration
2863^^^^^^^^^^^^^
2964
You can’t perform that action at this time.
0 commit comments