Skip to content

How to connect a metrics/logs/traces data source from another Observability Instance

Following tutorial explains how to connect

  • metrics (Thanos)
  • logs (Loki)
  • traces (Tempo)

data source from one Observability instance into another.

  1. Login to STACKIT Portal
  2. Choose the Observability Instance where you like to get the data source from.
  3. Open Service Dashboard and select API tab.
  4. Copy the relevant URL, for:
    • Thanos: https://storage.api.stackit.argus.eu01.stackit.cloud/...
    • Loki: https://logs.stackit.argus.eu01.stackit.cloud/...
    • Tempo: https://[part of instance-id]-tui.traces.stackit.argus.eu01.stackit.cloud/... part of instance-id = AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE

Next step is to create credentials to access your data source.

  1. Choose the Observability Instance where you like to get the data source from.
  2. Create new credentials.
  3. Note username and password.
  1. Choose the Observability Instance where you like setup the new data source.
  2. Login to Grafana and select Connections from the toggle menu.
  3. Choose Data sources and after that click on Add new data source.
  4. Select correct data source type:
    1. for Thanos choose Prometheus
    2. for Loki it’s Loki
    3. for Tempo it’s Tempo
  5. Set the name of your data source.
  6. At Connection you now have to fill the field URL.
  7. Combine now the credentials with URL of the data source.
    • The URL format has to be: https://[username]:[password]@[data source]
    • Example of a Thanos data source URL:
      https://stackit5_2e2b79c6-5dcc-4492-...:supersecret@
      storage.api.stackit5.argus.eu01.stackit.cloud
      /instances/2e2b79c6-5dcc-4492-bb88-2e2b79c65dcc
    • Example of a Loki data source URL:
      https://stackit5_2e2b79c6-5dcc-4492-...:supersecret@
      logs.stackit5.argus.eu01.stackit.cloud
      /instances/2e2b79c6-5dcc-4492-bb88-2e2b79c65dcc
    • Example of a Tempo data source URL:
      https://stackit5_2e2b79c6-5dcc-4492-...:supersecret@
      2e2b79c6-5dcc-tui.traces.stackit5.argus.eu01.stackit.cloud
      /instances/2e2b79c6-5dcc-4492-bb88-2e2b79c65dcc
  8. Click on Save and test.

If everything is setup correct you now receive the message “Data source is working”.