-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overrides Configuration Is Not Working #3795
Comments
Hi! Do you have per-tenant overrides? You need to use the same format in both overrides configs. |
Hello! |
indeed, I am encountering this issue, too. It is quite confusing. Documentation is no where to be found how tempo tells which configuration is "new" and which is "legacy". |
I get this too using the tempo-distributed helm chart and: global_overrides:
defaults:
metrics_generator:
processors:
- span-metrics
processor:
span_metrics:
histogram_buckets: [null]
dimensions:
- kubernetes_cluster
- kubernetes.cluster
- http.status_code |
That's fair. We probably didn't add the best documentation of the change. As a rule of thumb: long, unindented params are With the new config, a new key Finally, there is a command in the tempo-cli that allows you to convert legacy config to new overrides config. |
Thank you for the feedback on the docs. I've created a doc issue to make sure that we capture these changes and address the issues you've had. |
@mapno How is one supposed to use overrides currently with helm, when using tempo-distributed? the tempo-distributed helm chart expects the value be
And what is in the documentation is:
doesn't work, as it results in an error
When using the legacy method with the legacy names (e.g.
I am also using the latest helm chart version. |
@randrewy @AlexDCraig were you able to solve this somehow? |
@markustoivonen I had to use old format despite of what docs are saying. So my overrides section looks like this overrides:
metrics_generator_processors: [service-graphs, span-metrics]
metrics_generator_processor_local_blocks_complete_block_timeout: "1h" despite the fact I use latest stable version available atm (2.5.0). I am not using helm, so this is easy for me to do |
I've drafted a PR to fix the bug grafana/helm-charts#3236. I've tested it locally both with new and legacy overrides, but more testing is welcome. Sorry for the inconveniences. |
@mapno I know we need to update the docs to address new vs legacy. With your fix, will the example in the docs linked in. previous comments still work? |
The examples are now correct, they didn't work before. Yes, legacy overrides still work too :) |
edit: The issue seems to have been in my helm cache, I think it pulled the old version of the chart for some reason. Got it working after clearing cache. Sorry for the ping! The point below is still relevant though. Also, the example config file the documentation links to seems to be outdated. |
@mapno I am back with another override issue when using the tempo-distributed helm chart. In my case, when using helm, I create the manifests, from from which they are deployed (so not using helm directly to modify my K8s cluster) In my
After generating my manifests, I have a
And when I ssh into a deployed pod to check the contents of However, my tempo deployment constantly logs error messages like:
Any ideas why the overrides are not getting applied although I am using the format shown in documentation? |
This answer is what solved the issue for me. So maybe a fix is needed for the |
Hi, I got the same message global_overrides:
defaults:
metrics_generator:
processors: [service-graphs, span-metrics]
max_bytes_per_trace: 22428800
global_overrides:
defaults:
metrics_generator:
processors: [service-graphs, span-metrics]
global:
max_bytes_per_trace: 22428800 Summary: The error message means you use the new and old format at the same time, so please check all your options, probably some of them have been moved. In my opinion error message should change to avoid confuse. |
If it helps anyone else, this is what my helm values.yaml looks like, and it no longer generates any warnings or errors:
Chart version 1.18.0, and I did not modify |
My point is that the error message doesn't clarify what exactly need to do. That error message means you use an old and a new config format at the same time. |
Hi all, useExternalConfig: true
configStorageType: ConfigMap As I'm using Kustomize in couple with helm before generating configmap I used tempo-cli for migration to new overrides apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- tempo-gcp-secret.yaml
- httproute.yaml
helmCharts:
- name: tempo-distributed
repo: https://grafana.github.io/helm-charts
version: 1.20.0
releaseName: tempo-distributed
namespace: tracing
valuesFile: ./values.yaml
configMapGenerator:
- name: tempo-distributed-config
files:
- config/tempo.yaml
- config/overrides.yaml
generatorOptions:
disableNameSuffixHash: true |
Hi there! I noticed that we had a bunch of issues open for the overrides settings for the tempo-distributed Helm. chart. We have two updates that may address the issue that you're having:
Please let me know if this helps. |
Describe the bug
Docs states that starting from version 2.3 there is a new
overrides
block.To Reproduce
Steps to reproduce the behavior:
line 38: field defaults not found in type overrides.legacyConfig
Expected behavior
Server starts.
Environment:
Additional Context
image "grafana/tempo:2.5.0"
At the same time another line from docs shows old format: "A snippet of a config.yaml file showing how the overrides section is here.". And with that legacy configuration everything works fine.
The text was updated successfully, but these errors were encountered: