Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,23 @@ The {TempoOperator} supports monitoring and alerting of each TempoStack componen
include::modules/distr-tracing-tempo-configuring-tempostack-metrics-and-alerts.adoc[leveloffset=+2]

include::modules/distr-tracing-tempo-configuring-tempooperator-metrics-and-alerts.adoc[leveloffset=+2]

[id="setting-up-tempo-monolithic-deployment"]
== Setting up a Tempo Monolithic Deployment

The `TempoMonolithic` Custom Resource (CR) creates a Tempo deployment in monolithic mode.
All components of the Tempo deployment (compactor, distributor, ingester, querier and query-frontend) are contained in a single container.

This type of deployment is ideal for small deployments, demo and test setups, supports storing traces in memory, in a Persistent Volume and in object storage, and is the recommended migration path of the {JaegerName} all-in-one deployment.

The `TempoMonolithic` deployment is currently a link:https://access.redhat.com/support/offerings/techpreview[Technology Preview] feature.

[NOTE]
====
The monolithic deployment of Tempo does not scale horizontally.
If you require horizontal scaling, please use the `TempoStack` CR for a Tempo deployment in microservices mode.
====

include::modules/distr-tracing-tempo-configuring-tempomonolithic-quickstart.adoc[leveloffset=+2]
include::modules/distr-tracing-tempo-configuring-tempomonolithic-storage.adoc[leveloffset=+2]
include::modules/distr-tracing-tempo-configuring-tempomonolithic-jaegerui.adoc[leveloffset=+2]
2 changes: 1 addition & 1 deletion modules/distr-tracing-tempo-config-default.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[id="distr-tracing-tempo-config-default_{context}"]
= Distributed tracing default configuration options

The Tempo custom resource (CR) defines the architecture and settings to be used when creating the {TempoShortName} resources. You can modify these parameters to customize your {TempoShortName} implementation to your business needs.
The `TempoStack` custom resource (CR) defines the architecture and settings to be used when creating the {TempoShortName} resources. You can modify these parameters to customize your {TempoShortName} implementation to your business needs.

.Example of a generic Tempo YAML file
[source,yaml]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Module included in the following assemblies:
//
// * distr-tracing-tempo-configuring.adoc

:_mod-docs-content-type: REFERENCE
[id="configuring-tempomonolithic-jaegerui_{context}"]
= Configuring Jaeger UI

The following manifests enables the Jaeger UI.

[source,yaml]
----
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoMonolithic
metadata:
name: sample
spec:
jaegerui:
enabled: true # <1>
route:
enabled: true # <2>
----
<1> Enables Jaeger UI.
<2> Enables creation of a Route for the Jaeger UI.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Module included in the following assemblies:
//
// * distr-tracing-tempo-configuring.adoc

:_mod-docs-content-type: REFERENCE
[id="configuring-tempomonolithic-quickstart_{context}"]
= Quickstart
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤖 [error] RedHat.TermsErrors: Use 'quick start' rather than 'Quickstart'. For more information, see RedHat.TermsErrors.


The following manifest creates a Tempo monolithic 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.

[source,yaml]
----
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoMonolithic
metadata:
name: sample
spec:
storage:
traces:
backend: memory
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 *Console* -> *Networking* -> *Routes*).
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// Module included in the following assemblies:
//
// * distr-tracing-tempo-configuring.adoc

:_mod-docs-content-type: REFERENCE
[id="configuring-tempomonolithic-storage_{context}"]
= Configuring Storage

.In-Memory Storage

The following Tempo deployment stores traces in a `tmpfs` (in-memory storage).

[source,yaml]
----
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoMonolithic
metadata:
name: sample
spec:
storage:
traces:
backend: memory
size: 2Gi # <1>
----
<1> Size of the tmpfs volume. Default: `2Gi`.

.Persistent Volume

The following Tempo deployment stores traces in a Persistent Volume.

[source,yaml]
----
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoMonolithic
metadata:
name: sample
spec:
storage:
traces:
backend: pv
size: 10Gi # <1>
----
<1> Size of the Persistent Volume Claim. Default: `10Gi`.


.Object Storage

The following Tempo deployment stores traces in a an object storage.

[source,yaml]
----
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoMonolithic
metadata:
name: sample
spec:
storage:
traces:
backend: s3 # <1>
size: 10Gi # <2>
s3: # <1>
secret: <secret-name> # <3>
----
<1> Object storage type. Supported object stores: `s3`, `gcs`, `azure`.
<2> Size of the Persistent Volume Claim for the Tempo WAL. Default: `10Gi`.
<3> Name of the storage secret.

The storage secret must be in the same namespace as the `TempoMonolithic` instance and contain the fields as specified in the <<required_secret_parameters_{context}>> table.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

:_mod-docs-content-type: SNIPPET

[id="required_secret_parameters_{context}"]
.Required secret parameters
[cols="25h,~"]
|===
Expand Down