Skip to content
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

Remove the default metrics namespace/prefix for span RED metrics in Jaeger query #1072

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

frzifus
Copy link
Collaborator

@frzifus frzifus commented Oct 28, 2024

Fix RED metric retrieval from prometheus by removing the in Jaeger 1.62 introducted default RED metric namespace.
The Operator overwrites the new default namespace jaeger-query takes into account using the --prometheus.query.namespace= flag.

More details about the breaking changes can be found here:

change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. tempostack, tempomonolithic, github action)
component: tempostack
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the fix also fixing monolithic?

Copy link
Collaborator Author

@frzifus frzifus Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it looks like that was never supported? I can not find anything about the STORAGE_METRICS_TYPE.
21054a4#diff-2dd4203d1e98f65856b756889e3b555cd1909bf0133911ad1cc7bf0667f8573bR295

╰─❯ grep -r "METRICS_STORAGE_TYPE"     
grep: bin/manager: Übereinstimmungen in Binärdatei
internal/manifests/queryfrontend/query_frontend.go:				Name:  "METRICS_STORAGE_TYPE",
internal/manifests/queryfrontend/query_frontend_test.go:			env:  []corev1.EnvVar{{Name: "METRICS_STORAGE_TYPE", Value: "prometheus"}, {Name: "PROMETHEUS_SERVER_URL", Value: "http://prometheus:9091"}},
internal/manifests/queryfrontend/query_frontend_test.go:				{Name: "METRICS_STORAGE_TYPE", Value: "prometheus"},

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, monolithic doesn't support red metrics at the moment

.chloggen/fix_red-metrics.yaml Show resolved Hide resolved
.chloggen/fix_red-metrics.yaml Outdated Show resolved Hide resolved
@frzifus frzifus changed the title queryfrontend: remove default RED metric namespace Remove the default metrics namespace/prefix for span RED metrics in Jaeger query Oct 28, 2024
@pavolloffay
Copy link
Collaborator

@frzifus could you please paste chainsaw otput from openshift tests here?

@frzifus
Copy link
Collaborator Author

frzifus commented Oct 28, 2024

    | 17:34:03 | red-metrics | step-07   | SCRIPT    | DONE  |
    | 17:34:03 | red-metrics | step-07   | TRY       | DONE  |
--- PASS: chainsaw (188.36s)
    --- PASS: chainsaw/red-metrics (188.36s)
PASS
Tests Summary...
- Passed  tests 1
- Failed  tests 0
- Skipped tests 0
Done.
Full output
$ chainsaw test  --skip-delete --config .chainsaw-openshift.yaml tests/e2e-openshift/red-metrics
Version: 0.2.8
Loading config (.chainsaw-openshift.yaml)...
- Using test file: chainsaw-test
- TestDirs [tests/e2e-openshift/red-metrics]
- SkipDelete true
- FailFast false
- ReportFormat ''
- ReportName 'chainsaw-report'
- Namespace ''
- FullName false
- IncludeTestRegex ''
- ExcludeTestRegex ''
- ApplyTimeout 10s
- AssertTimeout 5m0s
- CleanupTimeout 5m0s
- DeleteTimeout 5m0s
- ErrorTimeout 5m0s
- ExecTimeout 5m0s
- DeletionPropagationPolicy Background
- Template true
- NoCluster false
- PauseOnFailure false
Loading tests...
- red-metrics (tests/e2e-openshift/red-metrics)
Loading values...
Running tests...
=== RUN   chainsaw
=== PAUSE chainsaw
=== CONT  chainsaw
=== RUN   chainsaw/red-metrics
    | 17:30:55 | red-metrics | @chainsaw | CREATE    | OK    | v1/Namespace @ chainsaw-huge-quagga
    | 17:30:55 | red-metrics | step-00   | TRY       | RUN   |
    | 17:30:56 | red-metrics | step-00   | APPLY     | RUN   | v1/PersistentVolumeClaim @ chainsaw-huge-quagga/minio
    | 17:30:56 | red-metrics | step-00   | CREATE    | OK    | v1/PersistentVolumeClaim @ chainsaw-huge-quagga/minio
    | 17:30:56 | red-metrics | step-00   | APPLY     | DONE  | v1/PersistentVolumeClaim @ chainsaw-huge-quagga/minio
    | 17:30:57 | red-metrics | step-00   | APPLY     | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/minio
    | 17:30:57 | red-metrics | step-00   | CREATE    | OK    | apps/v1/Deployment @ chainsaw-huge-quagga/minio
    | 17:30:57 | red-metrics | step-00   | APPLY     | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/minio
    | 17:30:57 | red-metrics | step-00   | APPLY     | RUN   | v1/Service @ chainsaw-huge-quagga/minio
    | 17:30:57 | red-metrics | step-00   | CREATE    | OK    | v1/Service @ chainsaw-huge-quagga/minio
    | 17:30:57 | red-metrics | step-00   | APPLY     | DONE  | v1/Service @ chainsaw-huge-quagga/minio
    | 17:30:58 | red-metrics | step-00   | ASSERT    | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/minio
    | 17:31:09 | red-metrics | step-00   | ASSERT    | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/minio
    | 17:31:09 | red-metrics | step-00   | ASSERT    | RUN   | v1/Service @ chainsaw-huge-quagga/minio
    | 17:31:10 | red-metrics | step-00   | ASSERT    | DONE  | v1/Service @ chainsaw-huge-quagga/minio
    | 17:31:10 | red-metrics | step-00   | TRY       | DONE  |
    | 17:31:10 | red-metrics | step-01   | TRY       | RUN   |
    | 17:31:10 | red-metrics | step-01   | APPLY     | RUN   | v1/ConfigMap @ openshift-monitoring/cluster-monitoring-config
    | 17:31:10 | red-metrics | step-01   | PATCH     | OK    | v1/ConfigMap @ openshift-monitoring/cluster-monitoring-config
    | 17:31:10 | red-metrics | step-01   | APPLY     | DONE  | v1/ConfigMap @ openshift-monitoring/cluster-monitoring-config
    | 17:31:10 | red-metrics | step-01   | ASSERT    | RUN   | apps/v1/Deployment @ openshift-user-workload-monitoring/prometheus-operator
    | 17:31:10 | red-metrics | step-01   | ASSERT    | DONE  | apps/v1/Deployment @ openshift-user-workload-monitoring/prometheus-operator
    | 17:31:10 | red-metrics | step-01   | ASSERT    | RUN   | apps/v1/StatefulSet @ openshift-user-workload-monitoring/prometheus-user-workload
    | 17:31:10 | red-metrics | step-01   | ASSERT    | DONE  | apps/v1/StatefulSet @ openshift-user-workload-monitoring/prometheus-user-workload
    | 17:31:10 | red-metrics | step-01   | ASSERT    | RUN   | apps/v1/StatefulSet @ openshift-user-workload-monitoring/thanos-ruler-user-workload
    | 17:31:11 | red-metrics | step-01   | ASSERT    | DONE  | apps/v1/StatefulSet @ openshift-user-workload-monitoring/thanos-ruler-user-workload
    | 17:31:11 | red-metrics | step-01   | TRY       | DONE  |
    | 17:31:11 | red-metrics | step-02   | TRY       | RUN   |
    | 17:31:11 | red-metrics | step-02   | APPLY     | RUN   | opentelemetry.io/v1alpha1/OpenTelemetryCollector @ chainsaw-huge-quagga/otel
    | 17:31:11 | red-metrics | step-02   | CREATE    | OK    | opentelemetry.io/v1alpha1/OpenTelemetryCollector @ chainsaw-huge-quagga/otel
    | 17:31:11 | red-metrics | step-02   | APPLY     | DONE  | opentelemetry.io/v1alpha1/OpenTelemetryCollector @ chainsaw-huge-quagga/otel
    | 17:31:12 | red-metrics | step-02   | APPLY     | RUN   | monitoring.coreos.com/v1/PrometheusRule @ chainsaw-huge-quagga/span-red
    | 17:31:12 | red-metrics | step-02   | CREATE    | OK    | monitoring.coreos.com/v1/PrometheusRule @ chainsaw-huge-quagga/span-red
    | 17:31:12 | red-metrics | step-02   | APPLY     | DONE  | monitoring.coreos.com/v1/PrometheusRule @ chainsaw-huge-quagga/span-red
    | 17:31:12 | red-metrics | step-02   | ASSERT    | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/otel-collector
    | 17:31:13 | red-metrics | step-02   | ASSERT    | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/otel-collector
    | 17:31:14 | red-metrics | step-02   | ASSERT    | RUN   | monitoring.coreos.com/v1/PrometheusRule @ chainsaw-huge-quagga/span-red
    | 17:31:14 | red-metrics | step-02   | ASSERT    | DONE  | monitoring.coreos.com/v1/PrometheusRule @ chainsaw-huge-quagga/span-red
    | 17:31:14 | red-metrics | step-02   | TRY       | DONE  |
    | 17:31:14 | red-metrics | step-03   | TRY       | RUN   |
    | 17:31:14 | red-metrics | step-03   | APPLY     | RUN   | v1/Secret @ chainsaw-huge-quagga/minio-test
    | 17:31:14 | red-metrics | step-03   | CREATE    | OK    | v1/Secret @ chainsaw-huge-quagga/minio-test
    | 17:31:14 | red-metrics | step-03   | APPLY     | DONE  | v1/Secret @ chainsaw-huge-quagga/minio-test
    | 17:31:15 | red-metrics | step-03   | APPLY     | RUN   | tempo.grafana.com/v1alpha1/TempoStack @ chainsaw-huge-quagga/redmetrics
    | 17:31:15 | red-metrics | step-03   | CREATE    | OK    | tempo.grafana.com/v1alpha1/TempoStack @ chainsaw-huge-quagga/redmetrics
    | 17:31:15 | red-metrics | step-03   | APPLY     | DONE  | tempo.grafana.com/v1alpha1/TempoStack @ chainsaw-huge-quagga/redmetrics
    | 17:31:15 | red-metrics | step-03   | ASSERT    | RUN   | apps/v1/StatefulSet @ chainsaw-huge-quagga/tempo-redmetrics-ingester
    | 17:32:06 | red-metrics | step-03   | ASSERT    | DONE  | apps/v1/StatefulSet @ chainsaw-huge-quagga/tempo-redmetrics-ingester
    | 17:32:06 | red-metrics | step-03   | ASSERT    | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-distributor
    | 17:32:06 | red-metrics | step-03   | ASSERT    | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-distributor
    | 17:32:07 | red-metrics | step-03   | ASSERT    | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-querier
    | 17:32:07 | red-metrics | step-03   | ASSERT    | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-querier
    | 17:32:07 | red-metrics | step-03   | ASSERT    | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-query-frontend
    | 17:32:07 | red-metrics | step-03   | ASSERT    | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-query-frontend
    | 17:32:07 | red-metrics | step-03   | ASSERT    | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-compactor
    | 17:32:27 | red-metrics | step-03   | ASSERT    | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/tempo-redmetrics-compactor
    | 17:32:27 | red-metrics | step-03   | ASSERT    | RUN   | rbac.authorization.k8s.io/v1/ClusterRoleBinding @ tempo-redmetrics-cluster-monitoring-view
    | 17:32:27 | red-metrics | step-03   | ASSERT    | DONE  | rbac.authorization.k8s.io/v1/ClusterRoleBinding @ tempo-redmetrics-cluster-monitoring-view
    | 17:32:28 | red-metrics | step-03   | ASSERT    | RUN   | v1/ServiceAccount @ chainsaw-huge-quagga/tempo-redmetrics-query-frontend
    | 17:32:28 | red-metrics | step-03   | ASSERT    | DONE  | v1/ServiceAccount @ chainsaw-huge-quagga/tempo-redmetrics-query-frontend
    | 17:32:28 | red-metrics | step-03   | SCRIPT    | RUN   |
        === COMMAND
        /usr/bin/sh -c /bin/sh -c "kubectl get --namespace $NAMESPACE tempo redmetrics -o jsonpath='{.status.conditions[?(@.type==\"Ready\")].status}' | grep True"
    | 17:32:29 | red-metrics | step-03   | SCRIPT    | LOG   |
        === STDOUT
        True
    | 17:32:29 | red-metrics | step-03   | SCRIPT    | DONE  |
    | 17:32:29 | red-metrics | step-03   | TRY       | DONE  |
    | 17:32:29 | red-metrics | step-04   | TRY       | RUN   |
    | 17:32:29 | red-metrics | step-04   | APPLY     | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/hotrod
    | 17:32:30 | red-metrics | step-04   | CREATE    | OK    | apps/v1/Deployment @ chainsaw-huge-quagga/hotrod
    | 17:32:30 | red-metrics | step-04   | APPLY     | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/hotrod
    | 17:32:30 | red-metrics | step-04   | APPLY     | RUN   | v1/Service @ chainsaw-huge-quagga/hotrod
    | 17:32:30 | red-metrics | step-04   | CREATE    | OK    | v1/Service @ chainsaw-huge-quagga/hotrod
    | 17:32:30 | red-metrics | step-04   | APPLY     | DONE  | v1/Service @ chainsaw-huge-quagga/hotrod
    | 17:32:31 | red-metrics | step-04   | ASSERT    | RUN   | apps/v1/Deployment @ chainsaw-huge-quagga/hotrod
    | 17:32:33 | red-metrics | step-04   | ASSERT    | DONE  | apps/v1/Deployment @ chainsaw-huge-quagga/hotrod
    | 17:32:33 | red-metrics | step-04   | TRY       | DONE  |
    | 17:32:33 | red-metrics | step-05   | TRY       | RUN   |
    | 17:32:34 | red-metrics | step-05   | APPLY     | RUN   | batch/v1/Job @ chainsaw-huge-quagga/hotrod-curl
    | 17:32:34 | red-metrics | step-05   | CREATE    | OK    | batch/v1/Job @ chainsaw-huge-quagga/hotrod-curl
    | 17:32:34 | red-metrics | step-05   | APPLY     | DONE  | batch/v1/Job @ chainsaw-huge-quagga/hotrod-curl
    | 17:32:34 | red-metrics | step-05   | ASSERT    | RUN   | batch/v1/Job @ chainsaw-huge-quagga/hotrod-curl
    | 17:32:34 | red-metrics | step-05   | ASSERT    | DONE  | batch/v1/Job @ chainsaw-huge-quagga/hotrod-curl
    | 17:32:34 | red-metrics | step-05   | TRY       | DONE  |
    | 17:32:34 | red-metrics | step-06   | TRY       | RUN   |
    | 17:32:35 | red-metrics | step-06   | APPLY     | RUN   | batch/v1/Job @ chainsaw-huge-quagga/verify-metrics
    | 17:32:35 | red-metrics | step-06   | CREATE    | OK    | batch/v1/Job @ chainsaw-huge-quagga/verify-metrics
    | 17:32:35 | red-metrics | step-06   | APPLY     | DONE  | batch/v1/Job @ chainsaw-huge-quagga/verify-metrics
    | 17:32:35 | red-metrics | step-06   | ASSERT    | RUN   | batch/v1/Job @ chainsaw-huge-quagga/verify-metrics
    | 17:32:39 | red-metrics | step-06   | ASSERT    | DONE  | batch/v1/Job @ chainsaw-huge-quagga/verify-metrics
    | 17:32:39 | red-metrics | step-06   | SCRIPT    | RUN   |
        === COMMAND
        /usr/bin/sh -c ./check_alert.sh
    | 17:34:00 | red-metrics | step-06   | SCRIPT    | LOG   |
        === STDOUT
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is not firing
        Alert SpanREDFrontendAPIRequestLatency is firing
    | 17:34:00 | red-metrics | step-06   | SCRIPT    | DONE  |
    | 17:34:00 | red-metrics | step-06   | TRY       | DONE  |
    | 17:34:00 | red-metrics | step-07   | TRY       | RUN   |
    | 17:34:00 | red-metrics | step-07   | SCRIPT    | RUN   |
        === COMMAND
        /usr/bin/sh -c ./check_metrics.sh
    | 17:34:03 | red-metrics | step-07   | SCRIPT    | LOG   |
        === STDOUT
        Metric 'duration_bucket' with value is present.
        Metric 'duration_count' with value is present.
        Metric 'duration_sum' with value is present.
        Metric 'calls' with value is present.
        === STDERR
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100  366k    0  366k    0     0   429k      0 --:--:-- --:--:-- --:--:--  429k
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100 21802    0 21802    0     0  53783      0 --:--:-- --:--:-- --:--:-- 53832
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100 22149    0 22149    0     0  55651      0 --:--:-- --:--:-- --:--:-- 55650
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100 21514    0 21514    0     0  56170      0 --:--:-- --:--:-- --:--:-- 56319
    | 17:34:03 | red-metrics | step-07   | SCRIPT    | DONE  |
    | 17:34:03 | red-metrics | step-07   | TRY       | DONE  |
--- PASS: chainsaw (188.36s)
    --- PASS: chainsaw/red-metrics (188.36s)
PASS
Tests Summary...
- Passed  tests 1
- Failed  tests 0
- Skipped tests 0
Done.

@frzifus
Copy link
Collaborator Author

frzifus commented Oct 28, 2024

Any idea whats wrong with the Operator-Upgrade step?

time="2024-10-28T16:32:43Z" level=info msg="Waiting for deployment/olm-operator rollout to complete"
time="2024-10-28T16:32:43Z" level=info msg="  Waiting for Deployment \"olm/olm-operator\" to rollout: 0 of 1 updated replicas are available"
time="2024-10-28T16:34:39Z" level=fatal msg="Failed to install OLM version \"latest\": deployment/olm-operator failed to rollout: timed out waiting for the condition"
make: *** [Makefile:423: olm-install] Error 1
Error: Process completed with exit code 2.

Installing it locally via olm works fine.

cc @IshwarKanse

@andreasgerstmayr
Copy link
Collaborator

Any idea whats wrong with the Operator-Upgrade step?

time="2024-10-28T16:32:43Z" level=info msg="Waiting for deployment/olm-operator rollout to complete"
time="2024-10-28T16:32:43Z" level=info msg="  Waiting for Deployment \"olm/olm-operator\" to rollout: 0 of 1 updated replicas are available"
time="2024-10-28T16:34:39Z" level=fatal msg="Failed to install OLM version \"latest\": deployment/olm-operator failed to rollout: timed out waiting for the condition"
make: *** [Makefile:423: olm-install] Error 1
Error: Process completed with exit code 2.

Installing it locally via olm works fine.

cc @IshwarKanse

The error is coming from this command: tempo-operator/bin/operator-sdk-1.32.0 olm install (installing OLM in the KinD cluster). Either the latest OLM is broken or there's some issue with KinD, but in any case, unrelated to this PR.

@IshwarKanse
Copy link
Contributor

IshwarKanse commented Oct 29, 2024

@andreasgerstmayr @frzifus Its an issue with OLM installation: operator-framework/operator-lifecycle-manager#3419

@IshwarKanse
Copy link
Contributor

Added PR to pin the OLM version: #1074

// NOTE: Jaeger 1.62 default namespace changed to "traces_span_metrics".
// We fallback to no namespace.
// See https://github.com/jaegertracing/jaeger/pull/6007.
"--prometheus.query.namespace=",
Copy link
Collaborator

@pavolloffay pavolloffay Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regarding #1073 (the collector defaults to traces.span.metrics namespace) we should expose this setting in the CR to allow users using the older collector with Tempo.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frzifus could you please write release notes for 3.4 to reflect the breaking change what we are making here openshift/openshift-docs#83770

@codecov-commenter
Copy link

codecov-commenter commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.91%. Comparing base (762c39a) to head (5d830df).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1072      +/-   ##
==========================================
+ Coverage   67.89%   67.91%   +0.01%     
==========================================
  Files         110      110              
  Lines        8721     8726       +5     
==========================================
+ Hits         5921     5926       +5     
  Misses       2503     2503              
  Partials      297      297              
Flag Coverage Δ
unittests 67.91% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@frzifus frzifus force-pushed the fix/red-metrics branch 2 times, most recently from 712f32c to 1494409 Compare October 29, 2024 13:45
@frzifus frzifus requested a review from pavolloffay October 29, 2024 13:46
apis/tempo/v1alpha1/tempostack_types.go Outdated Show resolved Hide resolved
.chloggen/fix_red-metrics.yaml Outdated Show resolved Hide resolved
To achieve this the Operator will set the jaeger-query `--prometheus.query.namespace=` flag.
Since Jaeger version 1.62, jaeger-query uses `traces.span.metrics` as default too.

Example how to overwrite the default namespace by configuring it in the CR:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this example for collector before 0.109.0 ? I think the majority of users will want to know this.

@frzifus did you test that redMetricsNamespace can be set to an empty string?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that

apiVersion: tempo.grafana.com/v1alpha1
kind:  TempoStack
metadata:
  name: redmetrics
spec:
  storage:
    secret:
      name: minio-test
      type: s3
  storageSize: 1Gi
  template:
    gateway:
      enabled: false
    queryFrontend:
      jaegerQuery:
        enabled: true
        monitorTab:
          enabled: true
          prometheusEndpoint: https://thanos-querier.openshift-monitoring.svc.cluster.local:9091
          redMetricsNamespace: ""
        ingress:
          type: route

Leads to an empty flag value:

      - args:
        - --query.base-path=/
        - --span-storage.type=grpc
        - --grpc-storage.server=localhost:7777
        - --query.bearer-token-propagation=true
        - --prometheus.query.namespace=
        - --prometheus.tls.enabled=true
        - --prometheus.token-file=/var/run/secrets/kubernetes.io/serviceaccount/token
        - --prometheus.token-override-from-context=false
        - --prometheus.tls.ca=/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
        env:
        - name: METRICS_STORAGE_TYPE
          value: prometheus
        - name: PROMETHEUS_SERVER_URL
          value: https://thanos-querier.openshift-monitoring.svc.cluster.local:9091
        image: docker.io/jaegertracing/jaeger-query:1.62.0
        imagePullPolicy: IfNotPresent
        name: jaeger-query

Signed-off-by: Benedikt Bongartz <[email protected]>
@frzifus frzifus force-pushed the fix/red-metrics branch 3 times, most recently from 4039101 to 13d39da Compare October 29, 2024 18:44
Signed-off-by: Benedikt Bongartz <[email protected]>
Signed-off-by: Benedikt Bongartz <[email protected]>
@frzifus
Copy link
Collaborator Author

frzifus commented Oct 29, 2024

    | 19:53:59 | red-metrics | step-07   | SCRIPT    | RUN   |
        === COMMAND
        /usr/bin/sh -c ./check_metrics.sh
    | 19:54:02 | red-metrics | step-07   | SCRIPT    | LOG   |
        === STDOUT
        Metric 'duration_bucket' with value is present.
        Metric 'duration_count' with value is present.
        Metric 'duration_sum' with value is present.
        Metric 'calls' with value is present.
        === STDERR
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100  114k    0  114k    0     0   180k      0 --:--:-- --:--:-- --:--:--  180k
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100  6865    0  6865    0     0  22760      0 --:--:-- --:--:-- --:--:-- 22807
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100  6969    0  6969    0     0  21679      0 --:--:-- --:--:-- --:--:-- 21710
          % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                         Dload  Upload   Total   Spent    Left  Speed
100  6775    0  6775    0     0  22227      0 --:--:-- --:--:-- --:--:-- 22213
    | 19:54:02 | red-metrics | step-07   | SCRIPT    | DONE  |
    | 19:54:02 | red-metrics | step-07   | TRY       | DONE  |
--- PASS: chainsaw (123.59s)
    --- PASS: chainsaw/red-metrics (123.59s)
PASS
Tests Summary...
- Passed  tests 1
- Failed  tests 0
- Skipped tests 0
Done.

@frzifus frzifus requested a review from pavolloffay October 29, 2024 18:56
@frzifus frzifus enabled auto-merge (squash) October 29, 2024 19:07
@frzifus frzifus requested a review from pavolloffay October 30, 2024 09:32
Signed-off-by: Benedikt Bongartz <[email protected]>
@frzifus frzifus merged commit e92ec34 into grafana:main Oct 30, 2024
11 checks passed
@frzifus frzifus deleted the fix/red-metrics branch October 30, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants