Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Introducing Tempo Monolithic mode

August 14, 2024
Andreas Gerstmayr
Related topics:
Observability
Related products:
Red Hat OpenShift

    Starting with Red Hat OpenShift distributed tracing 3.2 (tempo-operator v0.10.0), the Tempo operator supports an additional mode of deploying Tempo: the Tempo Monolithic mode, as a tech preview feature.

    In this article, we introduce Tempo Monolithic mode, describe the pros and cons, and present example deployment manifests.

    What is Tempo Monolithic mode?

    In Tempo Monolithic mode all core components such as compactor, distributor, ingester, querier, and query-frontend of Tempo are contained in a single binary, in a single container. This vastly simplifies the deployment, as only a single pod is created, and avoids potential issues arising from distributed deployments such as connectivity issues between pods or nodes, scheduling issues, etc. Additionally, this mode supports storing traces in-memory, and in a Persistent Volume. However, this mode comes at the expense of scalability: this mode does not scale horizontally. To scale your Tempo deployment horizontally, continue using the Tempo Microservices deployment via the TempoStack Custom Resource (CR).

    The Monolithic mode is ideal for small deployments, demo and test setups, and is the recommended migration path of the Red Hat OpenShift distributed tracing platform (Jaeger) all-in-one deployment.

    Migrating between TempoStack and TempoMonolithic

    For Tempo deployments using object storage, you can switch between TempoStack and TempoMonolithic by using the same storage secret (don't forget to stop the previous deployment). Migration from/to a TempoMonolithic instance using in-memory or Persistent Volume storage is not supported.

    Example Deployment using in-memory storage

    The following manifest creates a TempoMonolithic deployment with trace ingestion over OTLP/gRPC and OTLP/HTTP, storing traces in a 2 GiB tmpfs volume (in-memory storage) and exposing Jaeger UI via a Route:

    apiVersion: tempo.grafana.com/v1alpha1
    kind: TempoMonolithic
    metadata:
      name: sample
    spec:
      storage:
        traces:
          backend: memory
          size: 2Gi
      jaegerui:
        enabled: true
        route:
          enabled: true

    Once the pod is ready, you can send traces to tempo-sample:4317 (OTLP/gRPC) and tempo-sample:4318 (OTLP/HTTP) inside the cluster. The Tempo API is available at tempo-sample:3200 inside the cluster.

    Jaeger UI is available at the location of the tempo-sample-jaegerui Route (Navigate to the OpenShift Console → Networking → Routes).

    To persist the traces in a Persistent Volume instead, use the following options in the storage block:

    spec:
      [...]
      storage:
        traces:
          backend: pv
          size: 10Gi

    Configuring retention

    Tempo supports retention based on time. You can configure the maximum block age using the following spec:

    spec:
      [...]
      extraConfig:
        tempo:
          compactor:
            compaction:
              block_retention: 24h

    Note that this does not translate to the time of any trace or span. Internally, the ingester component of Tempo batches traces up to max_block_bytes (default: 500MB) or max_block_duration (default: 30m) into a block and flushes it to the configured storage. Another component, the compactor, combines (merges) multiple blocks in a time window of compaction_window (default: 1h) to a new block, and marks the input blocks for deletion. The block_retention (default: 14d) setting specifies at which block age (last modification time of a block) blocks are deleted.

    Therefore, the block_retention is only indirectly related to the last received trace—due to (possibly multiple) compaction cycles, traces may be stored longer than defined by the block_retention setting. For more information about the available settings, refer to these docs.

    Authentication and authorization

    Tempo can be configured in single-tenancy (default) or multi-tenancy mode.

    For single-tenancy, the Jaeger UI route is protected by an oauth-proxy sidecar. By default, any user or service account with permissions to list pods in the namespace of the Tempo instance, can access Jaeger UI. To change this, you can set the Subject Access Review (sar) option of the spec.jaegerui.authentication.sar field:

    spec:
      [...]
      jaegerui:
        authentication:
          sar: '{"namespace": "<my_namespace>", "resource": "pods", "verb": "get"}'

    For details on the SAR setting format, please refer to these docs.

    For multi-tenancy, the access rules can be configured via ClusterRole objects. The following example CR deploys a TempoMonolithic instance with multi-tenancy and two tenants, dev and prod:

    apiVersion: tempo.grafana.com/v1alpha1
    kind: TempoMonolithic
    metadata:
      name: multitenant
    spec:
      jaegerui:
        enabled: true
        route:
          enabled: true
      multitenancy:
        enabled: true
        mode: openshift
        authentication:
        - tenantName: dev
          tenantId: 1610b0c3-c509-4592-a256-a1871353dbfa
        - tenantName: prod
          tenantId: 1610b0c3-c509-4592-a256-a1871353dbfb

    The tenantName should be a human-readable identifier of the tenant, and the tenantId must be a unique identifier. Tempo uses the tenantId to distinguish between tenants in the trace storage. If no storage is specified in the TempoMonolithic CR, the operator defaults to in-memory storage.

    To grant users and ServiceAccounts permission to read and write traces, please follow the instructions in the documentation: Configuring Multitenancy. Configuring role-based access control (RBAC) in TempoMonolithic deployments is identical to configuring RBAC in TempoStack deployments.

    Related Posts

    • How to deploy the new Grafana Tempo operator on OpenShift

    • How to monitor 3scale API Management using Prometheus and Grafana

    • Generate automated Grafana metrics dashboards for MicroProfile apps

    • Introduction to microservices observability with Eclipse MicroProfile

    Recent Posts

    • Red Hat Hardened Images: Top 5 benefits for software developers

    • How EvalHub manages two-layer Kubernetes control planes

    • Tekton joins the CNCF as an incubating project

    • Federated identity across the hybrid cloud using zero trust workload identity manager

    • Confidential virtual machine storage attack scenarios

    What’s up next?

    Read Operating OpenShift, a practical guide to running and operating OpenShift clusters more efficiently using a site reliability engineering (SRE) approach. Learn best practices and tools that can help reduce the effort of deploying a Kubernetes platform.

    Get the e-book
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.