×
Community Blog Introducing the New Full-stack Observability in Simple Log Service

Introducing the New Full-stack Observability in Simple Log Service

This article introduces the Alibaba Cloud Observability Suite (ACOS) and demonstrates how to configure a Full-stack Observability application.

Full-stack Observability is an application provided by Alibaba Cloud Simple Log Service. It enables end-to-end observability of IT systems, including monitoring, tracing, and alerts. Multiple resources, including ECS instances, Kubernetes clusters, databases, and middleware are supported.

Overview

Alibaba Cloud Observability Suite (ACOS) is a native observability suite announced by Alibaba Cloud. It is composed of Managed Service for Prometheus, Managed Service for Grafana, and Managed Service for OpenTelemetry.

ACOS facilitates the standardization of all Alibaba Cloud Managed Service products through open standards, achieves comprehensive standardization of linked data, connects with the observable data assets of enterprise stock, and integrates seamlessly with the Alibaba Cloud application hosting platform.

The suite offers extensive coverage of scenarios including User Experience Management (UEM), Application Performance Monitoring (APM), cloud service monitoring, cost management, and emergency collaboration efficiency. This enables companies to efficiently build open, high-quality, and low-cost unified observation systems.

1

Full-stack Observability is a one-stop observability solution based on OpenTelemetry. OpenTelemetry is an observability framework, a toolkit designed to create and manage telemetric data such as tracing, metrics, and logs.

2

Enabling the Full-stack Observability application is free of charge. However, users are required to pay for the resources consumed or generated while utilizing the features provided by the application.

Related Reading:
Precautions for use: https://www.alibabacloud.com/help/en/log-service/latest/full-stack-observability-usage-notes

1. Overall Configuration Diagram

For a Full-stack Observability instance, Trace and Full-stack Monitoring applications can be used.

After configuring the data import of the prepared ECS instances and the ACK-only cluster, you can use the resource information and monitoring data on the full-stack observability instance.

All resources involved in this article are created in the Japan (Tokyo) region.

3

2. Prepare a Full-stack Observability Instance

From the Simple Log Service homepage, select the Full-stack Observability application and enter its management page.

4

Alibaba Cloud provides a demonstration of a configured Full-stack Observability application. You can check the details in this demo before using the service in the production environment.

Click View Sample and go to the details page of the sls-mall demo project.

5
6
7
8

From the Data Access Configurations page, you can see that the demo application contains almost all supported resource types.

9

Click Create Instance to start the process.

10

Enter the required information into the creation form. If you do not have a Simple Log Service project, you can create a new one from the pop-up window. Make sure that the project resides in the same region as the resource.

11
12

Enable both Trace and Full-stack Monitoring features during the creation process. When finished, the created Full-stack Observability instance appears in the list with the success message.

13

Related Logstores are automatically created in the combined project. They are used to store collected monitoring data.

14

Also, after creating an instance, click Manage Features to manage the enabled features. Features can be enabled or disabled in the pop-up window.

15
16

The dashboard is empty because there is no monitoring data and resources.

17
18

3. Configure an ECS Instance on a Full-stack Observability Instance

ECS instances can be organized as hosts for Full-stack Observability instances.

Related Reading:
Collection of monitoring data from the host: https://www.alibabacloud.com/help/en/log-service/latest/collect-monitoring-data-from-hosts

Create an ECS instance in the Japan (Tokyo) region.

19
20

To collect monitoring data, you must configure data access on the destination resource. In the Host section, click the Enable icon to start the configuration process.

21

ECS instances are managed by Simple Log Service machine groups. If the instance to be used already belongs to a specific machine group, click Use Existing Machine Groups to skip the creation step.

There are many ways to filter existing ECS instances. Region, Status, and Resource Group can be used to find a prepared instance. Select the required instance and click Create to create a new machine group.

22

Review the information and click OK in the pop-up window. The system automatically installs Logtail in the ECS instance.

23
24

ECS instances within other Alibaba Cloud accounts, servers provided by other cloud platforms, or self-managed servers are not displayed in the instance list. In this case, please install Logtail manually.

Wait for the Logtail installation to complete. The results of the installation process are displayed. Then, click Complete Installation to continue to the next step.

25
26
27

To identify a machine group, you can use both an IP address and a custom ID.

28

Move the created machine group or an existing machine group to Applied Server Groups. Then, click Next. The system checks the heartbeat of the installed Logtail in the step above.

29
30

Simple Log Service supports two collection plug-ins for the host: node-metrics and node-metas. Advanced settings can be updated as needed. If everything looks good, click Complete to finish the configuration process.

31

The Host configuration is displayed in the list, and related Logstores are generated in the project at the same time.

32
33

The monitoring data is collected and displayed in the Full-stack Observability instance.

34

4. Configure an ACK-only Cluster on a Full-stack Observability Instance

To collect monitoring data for an ACK cluster, you must configure data access in the same way as before.

An ACK managed cluster provides monitoring capabilities on its own and does not allow access to the master node. This section uses an ACK-only cluster.

Related Reading:
Observability of an ACK Cluster: https://www.alibabacloud.com/help/en/container-service-for-kubernetes/latest/observability-overview

Prepare an ACK-only cluster and make sure that SSH logon is enabled.

35

Configure the logon method in the node pool configuration step. This is used later to access the master node.

36
37

Related Reading:
Collect monitoring data from a Kubernetes cluster: https://www.alibabacloud.com/help/en/log-service/latest/perform-non-intrusive-monitoring

Wait until the dedicated cluster is ready.

38

39
40

Enable Resource Monitoring in the Kubernetes Monitoring section.

41

Set the access information. The installation command is automatically generated within the page. Alibaba Cloud Internal Network Mode is recommended since a cluster on the ACK service is being created in the same region. Enable Data Plane Monitoring and Metric Detection at the same time.

42

Access the master node based on the configuration.

43

Run the generated command to install and configure the Logtail service in the cluster.

wget https://logtail-release-ap-northeast-1.oss-ap-northeast-1.aliyuncs.com/kubernetes/sls-monitoring.sh -O sls-monitoring.sh

bash sls-monitoring.sh --project ohara-bob-sls-full-stack-observable --aliuid xxxxxx --instance-id ohara-bob-sls-full-stack-observable --cluster-id ohara-bob-k8s --action install --config-params ap-northeast-1 --kube-state-metrics-image-name registry-vpc.ap-northeast-1.aliyuncs.com/log-service/kube-state-metrics --logtail-image-name registry-vpc.ap-northeast-1.aliyuncs.com/log-service/logtail --config-observer-enable true --config-auto-discovery-enable true

44
45
46

After the command is successfully executed, confirm that the sls-monitoring namespace exists. The Pod required should be in the Running state.

47
48

Click Complete in the console.

49

The configuration is successfully set and the related Logstores are also created.

50
51

Check the monitoring data collected on a Full-stack Observability instance.

52
53
54
55

5. Supplement

5.1 How to Disable Data Access Settings

Existing data access settings can be easily disabled by clicking the icon that comes after a specific resource type.

An error message may appear in the process. Before disabling, make sure that there are no available resource configurations or other dependent configurations.

For example:

● If you disable data access for the Host, you must delete the configuration of the available resources.

● Before disabling the Resource Monitoring configuration of Kubernetes Monitoring, you need to disable Automatic Discovery of Prometheus Metrics and Non-intrusive Service Observation.

56

57

The data access of the configured host can be disabled by performing the following steps:

58
59
60

5.2 How to Fix a Machine Group Heartbeat Error

Heartbeat verification is used to check the installation status of Logtail. If a failed response is displayed on the page, you can troubleshoot according to the document.

If you install the Logtail service on the server for the first time and create a machine group, it is recommended to click Automatic Retry several times, and then check the reason.

Because the Logtail service is newly installed, it may not be ready when you access the verification page. After a retry, the heartbeat should be OK.

61

5.3 How to Connect a Dedicated Cluster to a Master Node

After the related features are enabled, SSH logon information is displayed in the basic information of the cluster.

62
63

If the cluster does not allow SSH logon, enable SSH port 22 on the binding SLB instance by following this document.

64

This article is a translated piece of work from SoftBank.

Disclaimer: The views expressed herein are for reference only and don't necessarily represent the official views of Alibaba Cloud.

0 1 0
Share on

H Ohara

9 posts | 0 followers

You may also like

H Ohara

9 posts | 0 followers

Related Products