Skip to content

4.1. Analysis scenarios at a glance

Which analysis to choose — why the list changes, and what to pick

Opening the Analysis Prompt Builder shows you a list of scenarios. This chapter covers why that list changes and what to choose.

First — choose the datasource

There is a datasource selector at the top of the builder. What you choose there changes the scenario list below it.

ValueWhere the data comes fromScenarios shown
observKubernetes and node metrics collected by OPENMARU Observability13
apmWAS and transaction metrics collected by OPENMARU APM10

Here is the same screen with only the datasource changed. The list is completely different.

The scenario list with apm selected
The scenario list with observ selected

The datasource has nothing to do with the console you opened

Both datasources are available whichever console you open the widget in. The list comes from the server, not from the host page. You can choose observ and apm in COP Console too.

COP Console does not keep a datasource of its own. Choose observ for Kubernetes metrics and apm for WAS metrics.

Both are read through Prometheus. apm is a Prometheus-compatible endpoint, so the query mechanism is the same. What differs is which metrics are inside: observ holds container and node metrics, while apm holds APM metrics such as Apdex, TPS and SQL response time.

If a scenario from this document is not on your screen, you have usually selected the other datasource. Check the selector at the top first.

Three families — what they ask

Scenarios have different names, but there are only three ways they ask. Once you know this you can guess what an unfamiliar scenario will do.

FamilyWhat it asksShape of the answerCount
CorrelationDo two metrics move togetherCorrelation coefficient, lead/lag relationship11
ForecastingAt this rate, when will it hit the limitFuture values and a confidence band6
Anomaly detectionIs there a window that differs from normalThe time and the degree6

Which family to choose

Decide by what you want to know.

  • "Why did it get slow?" → correlation. It finds the metrics that moved with response time.
  • "When do I need to add capacity?" → forecasting. It extends the trend and shows when the limit is reached.
  • "Is anything unusual?" → anomaly detection. Use it first when you do not know where to look.

When you do not know the cause, anomaly detection → correlation is a convenient order: find the time with anomaly detection, then look at that window closely with correlation analysis.

The apm datasource — 10 scenarios

These look at the WAS and transaction metrics collected by OPENMARU APM: Apdex, TPS and SQL response time.

FamilyScenarioTargetWhat it looks at
CorrelationHeap Memory & TPS CorrelationApplicationHeap, GC, TPS and latency together, to see memory pressure
CorrelationMSA Failure Propagation CorrelationApplicationTraces the latency → error rate propagation path
CorrelationJVM Memory AnalysisApplicationHeap usage from three angles: forecast, trend and correlation
CorrelationTraffic ↔ Error RateApplicationWhether errors rise as requests rise
CorrelationResponse Latency AnalysisApplicationApdex latency against load, resources and GC
CorrelationDB Performance ImpactApplicationWhether SQL response time affects application latency
ForecastingHost Resource ForecastNodeHost CPU and memory trends collected by the agent
ForecastingApp Resource ForecastApplicationHeap and process CPU trends of a WAS instance
AnomalyService Anomaly DetectionApplicationError rate, 5xx, Apdex, frustrated transactions
AnomalyThread Pool AnomalyApplicationBlocked, Waiting and Deadlock patterns

The observ datasource — 13 scenarios

These look at the Kubernetes and node metrics collected by OPENMARU Observability: container CPU and memory, and node disk.

FamilyScenarioTargetWhat it looks at
CorrelationResponse Latency Analysis (container)ApplicationContainer CPU against HTTP latency
CorrelationResponse Latency Analysis (Web/WAS)ApplicationWeb server latency against load, resources and errors
CorrelationDB Performance ImpactApplicationDB query count against service latency
CorrelationThread Pool Load AnalysisApplicationActive threads against traffic, latency and heap
CorrelationGolden Signals AnalysisApplicationLatency, traffic, error rate and CPU in one pass
ForecastingResource Usage Forecast (container)ApplicationContainer CPU and memory trends
ForecastingResource Usage Forecast (Web server)ApplicationWeb server CPU and memory trends
ForecastingNode Status ForecastNodeNode CPU, memory and load average
ForecastingDisk Usage ForecastNodeDisk usage → risk of pod eviction
AnomalyService Anomaly Detection (container)ApplicationRequest volume, latency, restarts
AnomalyService Anomaly Detection (Web/WAS)ApplicationLatency, error rate, traffic
AnomalyJVM Memory Analysis (container)ApplicationHeap, GC time, thread count
AnomalyJVM Memory Analysis (WAS)ApplicationHeap and active threads of a WAS instance

The same name appears twice

Four pairs of scenarios share a name in these lists.

Response Latency Analysis · Resource Usage Forecast · Service Anomaly Detection · JVM Memory Analysis

What differs is the target they look at.

One of themThe other
Looks atKubernetes container metricsWeb server / WAS metrics
Examplecontainer_cpu_usageWeb server latency, WAS heap

Tell them apart by the description. Before you pick a scenario from the list, read the one-line description under its name. "Container" means the first kind; "Web server" or "WAS" means the second.

For an app running in a container, choose the first; for a WAS on a virtual machine or physical hardware, choose the second.

Targets fall into two kinds — application and node

Each scenario has a fixed target type.

  • Application — a service or app. Most scenarios are of this kind.
  • Node — a server or host: Node Status Forecast, Disk Usage Forecast, Host Resource Forecast.

If you chose a node scenario and see no application names, nothing is wrong. The target is simply different.

Scenarios with an extra step

Some scenarios ask "which situation is this?" once more after you pick them. This is common in correlation analysis.

Choosing Response Latency Analysis, for example, asks you this:

  • compare within a single application, or
  • compare between one application and another

The reason is that what you compare changes which targets are needed. That question screen is wizard mode, covered in Wizard mode.

Next