Skip to content

Commit 8bd0442

Browse files
committed
Update Blog “set-up-apache-skywalking-for-k8s-and-vm-monitoring-in-hpe-greenlake-private-cloud”
1 parent 16ef474 commit 8bd0442

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

content/blog/set-up-apache-skywalking-for-k8s-and-vm-monitoring-in-hpe-greenlake-private-cloud.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Here is the *SpingBoot* Web app topology map:
209209

210210
### Deploy a Multi-tier Application
211211

212-
As the second demo application, we will deploy a multi-tier *music* application, available as part of [Apache SkyWalking showcase application](https://github.com/apache/skywalking-showcase). This multi-tier music application consists of a frontend server and its UI, backend gateway service, recommendation service and songs service, together with a *H2* database. Each microservice is coding with different programming languages, *NodeJS*, *React*, *Spring*, *Python*, etc.
212+
As the second demo application, we will deploy a multi-tier *music* application, available as part of [Apache SkyWalking showcase application](https://github.com/apache/skywalking-showcase). This multi-tier music application consists of a frontend app server and its UI, backend gateway service, recommendation service and songs service, together with a *H2* database. Each microservice is coding with different programming languages, *NodeJS*, *React*, *Spring*, *Python*, etc.
213213

214214
![](/img/multl-tier-app-music.png)
215215

@@ -283,20 +283,38 @@ You can also check the multi-tier music application trace page:
283283

284284
![](/img/sw-app-trace.png)
285285

286+
### Application Alerting
286287

287-
\- Multi-tier application alarms:
288+
Apache SkyWalking provides an alerting mechanism to measure application performance according to a list of pre-defined metrics, e.g., _service_resp_time_, _database_access_resp_time_, and _service_sla_. It will trigger alerting when some metrics reach its pre-defined thresholds. We can define new metrics or customize the existing metrics with new thresholds.
289+
290+
Here is the alarms page from SkyWalking UI showing all the triggered alerting for deployed multi-tier music app:
288291

289292
![](/img/sw-app-alarms.png)
290293

291-
The alarms page shows *Successful rate of service agent::app is lower than 80% in 2 minutes of last 10 minutes*.
294+
The alarms page shows *Successful rate of service agent::app is lower than 80% in 2 minutes of last 10 minutes*. It indicates issue from the frontend app server in multi-tier music application.
295+
296+
It's triggered by the following metric alerting rule _service_sla_:
292297

293-
From the service `agent::app` overview page below, it shows *Success Rate 66.66%*. You may check the service's trace pages and try to figure out the root cause for this issue.
298+
```markdown
299+
service_sla_rule:
300+
# Metrics value need to be long, double or int
301+
metrics-name: service_sla
302+
op: "<"
303+
threshold: 8000
304+
# The length of time to evaluate the metrics
305+
period: 10
306+
# How many times after the metrics match the condition, will trigger alarm
307+
count: 2
308+
# How many times of checks, the alarm keeps silence after alarm triggered, default as same as period.
309+
silence-period: 3
310+
message: Successful rate of service {name} is lower than 80% in 2 minutes of last 10 minutes
311+
```
294312

295-
\- Multi-tier application service `agent::app` overview:
313+
From the below service `agent::app` overview page, it shows **Success Rate 66.66%**.
296314

297315
![](/img/sw-svc-app-overview.png)
298316

299-
\- Multi-tier application service `agent::app` trace:
317+
You may check the service's trace page and try to figure out the root cause for this issue.
300318

301319
![](/img/sw-svc-app-trace.png)
302320

0 commit comments

Comments
 (0)