Skip to content

Commit

Permalink
Tempo cache docs (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
josunect authored Dec 4, 2024
1 parent 399a072 commit 84cd739
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/en/docs/Configuration/p8s-jaeger-grafana/tracing/tempo.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ weight: 2
- [Caching](#caching)
- [Resources consumption](#tune-search-pipeline)
- [Dedicated attribute columns](#dedicated-attribute-columns)
- [Tempo cache](#tempo-cache)
- [Tempo authentication configuration](#tempo-authentication-configuration)


Expand Down Expand Up @@ -336,3 +337,23 @@ spec:
```

To configure a secret to be used as a password, see this [FAQ entry]({{< relref "../../../FAQ/installation#how-can-i-use-a-secret-to-pass-external-service-credentials-to-the-kiali-server" >}})

### Tempo cache

Kiali 2.2 includes a simple tracing cache for Tempo that stores the last N traces. By default, it is enabled and it keeps the last 200 traces. It can be modified in the Kiali CR with:

```yaml
spec:
external_services:
tracing:
enabled: true
tempo_config:
cache_enabled: true
cache_capacity: 200
```

Kiali emits some cache metrics. The following query obtains the cache hit rate:

`(sum(kiali_cache_hits_total{name="tempo"})/sum(kiali_cache_requests_total{name="tempo"})) * 100`

![tempo_metrics_cache](/images/documentation/configuration/tempo_metrics_cache.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84cd739

Please sign in to comment.