diff --git a/docs/configuration/holmesgpt/toolsets/grafanaloki.rst b/docs/configuration/holmesgpt/toolsets/grafanaloki.rst index 7b421a7be..dd616f7d3 100644 --- a/docs/configuration/holmesgpt/toolsets/grafanaloki.rst +++ b/docs/configuration/holmesgpt/toolsets/grafanaloki.rst @@ -46,37 +46,57 @@ fetch the logs and it needs to know the UID of this datasource. A simple way to get the datasource UID is to access the Grafana API by running the following request: -.. code-block:: bash - # port forward if you are using Robusta's grafana from your kubernetes cluster - kubectl port-forward svc/robusta-grafana 3000:80 - - # List the loki data sources - curl -s -u : http://localhost:3000/api/datasources | jq '.[] | select(.type == "loki")' - { - "id": 2, - "uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee", - "orgId": 1, - "name": "Loki-kubernetes", - "type": "loki", - "typeName": "Loki", - "typeLogoUrl": "/public/app/plugins/datasource/loki/img/loki_icon.svg", - "access": "proxy", - "url": "http://loki.loki:3100", - "user": "", - "database": "", - "basicAuth": false, - "isDefault": false, - "jsonData": { - "httpHeaderName1": "admin", - "httpHeaderName2": "X-Scope-OrgID", - "tlsSkipVerify": true - }, - "readOnly": false - } - # In this case, there is a single Loki datasourceUID - # with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee" +.. md-tab-set:: + .. md-tab-item:: Self Hosted + + .. code-block:: bash + + # port forward if you are using Robusta's grafana from your kubernetes cluster + kubectl port-forward svc/robusta-grafana 3000:80 + + # List the loki data sources + curl -s -u : http://localhost:3000/api/datasources | jq '.[] | select(.type == "loki")' + { + "id": 2, + "uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee", + "orgId": 1, + "name": "Loki-kubernetes", + "type": "loki", + "typeName": "Loki", + "typeLogoUrl": "/public/app/plugins/datasource/loki/img/loki_icon.svg", + "access": "proxy", + "url": "http://loki.loki:3100", + "user": "", + "database": "", + "basicAuth": false, + "isDefault": false, + "jsonData": { + "httpHeaderName1": "admin", + "httpHeaderName2": "X-Scope-OrgID", + "tlsSkipVerify": true + }, + "readOnly": false + } + # In this case, there is a single Loki datasourceUID + # with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee" + + + + .. md-tab-item:: Grafana Cloud + + Choose the datasource you want to use for logs and click on it. + + .. image:: /images/grafana-loki-holmes-uid1.png + :width: 600 + :align: center + + The part of the URL after ``edit/`` is the UID. + + .. image:: /images/grafana-loki-holmes-uid2.png + :width: 600 + :align: center Configuration (grafana proxy) ***************************** diff --git a/docs/configuration/holmesgpt/toolsets/grafanatempo.rst b/docs/configuration/holmesgpt/toolsets/grafanatempo.rst index d736906b4..0bea31e42 100644 --- a/docs/configuration/holmesgpt/toolsets/grafanatempo.rst +++ b/docs/configuration/holmesgpt/toolsets/grafanatempo.rst @@ -36,33 +36,52 @@ fetch the traces and it needs to know the UID of this datasource. A simple way to get the datasource UID is to access the Grafana API by running the following request: -.. code-block:: bash - - # port forward if you are using Robusta's grafana from your kubernetes cluster - kubectl port-forward svc/robusta-grafana 3000:80 - # List the Tempo data sources - curl -s -u : http://localhost:3000/api/datasources | jq '.[] | select(.type == "tempo")' - { - "id": 3, - "uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee", - "orgId": 1, - "name": "Tempo", - "type": "tempo", - "typeName": "Tempo", - "typeLogoUrl": "/public/app/plugins/datasource/tempo/img/tempo_icon.svg", - "access": "proxy", - "url": "http://tempo-query-frontend.tempo:3100", - "user": "", - "database": "", - "basicAuth": false, - "isDefault": false, - "jsonData": { - "tlsSkipVerify": true - }, - "readOnly": false - } - # In this case, there is a single Tempo datasourceUID - # with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee" +.. md-tab-set:: + + .. md-tab-item:: Self Hosted Tempo + + .. code-block:: bash + + # port forward if you are using Robusta's grafana from your kubernetes cluster + kubectl port-forward svc/robusta-grafana 3000:80 + # List the Tempo data sources + curl -s -u : http://localhost:3000/api/datasources | jq '.[] | select(.type == "tempo")' + { + "id": 3, + "uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee", + "orgId": 1, + "name": "Tempo", + "type": "tempo", + "typeName": "Tempo", + "typeLogoUrl": "/public/app/plugins/datasource/tempo/img/tempo_icon.svg", + "access": "proxy", + "url": "http://tempo-query-frontend.tempo:3100", + "user": "", + "database": "", + "basicAuth": false, + "isDefault": false, + "jsonData": { + "tlsSkipVerify": true + }, + "readOnly": false + } + # In this case, there is a single Tempo datasourceUID + # with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee" + + .. md-tab-item:: Grafana Cloud + + Choose the datasource you want to use for Tempo traces and click on it. + + .. image :: /images/grafana-tempo-holmes-uid1.png + :width: 600 + :align: center + + The part of the URL after ``edit/`` is the UID. + + .. image :: /images/grafana-tempo-holmes-uid2.png + :width: 600 + :align: center + Configuration (grafana proxy) ----------------------------- diff --git a/docs/images/grafana-loki-holmes-uid1.png b/docs/images/grafana-loki-holmes-uid1.png new file mode 100644 index 000000000..d6912fd7e Binary files /dev/null and b/docs/images/grafana-loki-holmes-uid1.png differ diff --git a/docs/images/grafana-loki-holmes-uid2.png b/docs/images/grafana-loki-holmes-uid2.png new file mode 100644 index 000000000..5f0d36c3d Binary files /dev/null and b/docs/images/grafana-loki-holmes-uid2.png differ diff --git a/docs/images/grafana-tempo-holmes-uid1.png b/docs/images/grafana-tempo-holmes-uid1.png new file mode 100644 index 000000000..dffa47560 Binary files /dev/null and b/docs/images/grafana-tempo-holmes-uid1.png differ diff --git a/docs/images/grafana-tempo-holmes-uid2.png b/docs/images/grafana-tempo-holmes-uid2.png new file mode 100644 index 000000000..ee347d74f Binary files /dev/null and b/docs/images/grafana-tempo-holmes-uid2.png differ