Teach you how to quickly enable self-monitoring of Apache SkyWalking

Teach you how to quickly enable self-monitoring of Apache SkyWalking

1. Enable Prometheus telemetry data

By default, telemetry is disabled ( selector is none ), like this:

telemetry:
  selector: ${SW_TELEMETRY:none}
  none:
  prometheus:
    host: ${SW_TELEMETRY_PROMETHEUS_HOST:0.0.0.0}
    port: ${SW_TELEMETRY_PROMETHEUS_PORT:1234}
    sslEnabled: ${SW_TELEMETRY_PROMETHEUS_SSL_ENABLED:false}
    sslKeyPath: ${SW_TELEMETRY_PROMETHEUS_SSL_KEY_PATH:""}
    sslCertChainPath: ${SW_TELEMETRY_PROMETHEUS_SSL_CERT_CHAIN_PATH:""}

Prometheus can be used as a telemetry implementer. Using this function, Prometheus can collect Skywalking OAP's metrics data.

Edit config/application.yml file and set selector to prometheus , like this:

telemetry:
  selector: ${SW_TELEMETRY:prometheus}
  none:
  prometheus:
    host: ${SW_TELEMETRY_PROMETHEUS_HOST:0.0.0.0}
    port: ${SW_TELEMETRY_PROMETHEUS_PORT:1234}
    sslEnabled: ${SW_TELEMETRY_PROMETHEUS_SSL_ENABLED:false}
    sslKeyPath: ${SW_TELEMETRY_PROMETHEUS_SSL_KEY_PATH:""}
    sslCertChainPath: ${SW_TELEMETRY_PROMETHEUS_SSL_CERT_CHAIN_PATH:""}

By default, endpoints are exposed at http://0.0.0.0:1234/ and http://0.0.0.0:1234/metrics . You can also set the host and port as needed.

2. Enable Prometheus Fetcher

SkyWalking supports collecting Prometheus telemetry data directly to the OAP backend. Users can view them through the UI or the GraphQL API.

By default, Prometheus Fetcher is disabled ( active is false ), like this:

prometheus-fetcher:
  selector: ${SW_PROMETHEUS_FETCHER:default}
  default:
    active: ${SW_PROMETHEUS_FETCHER_ACTIVE:false}

Edit config/application.yml file and set active to true , like this:

prometheus-fetcher:
  selector: ${SW_PROMETHEUS_FETCHER:default}
  default:
    active: ${SW_PROMETHEUS_FETCHER_ACTIVE:true}

3. View self-monitoring data

Restart OAP to make the modified configuration file take effect.

Select SelfObservability in the UI, and then select oap-server in the service list. The effect is as follows:

Note: This article takes SkyWalking version 8.2.0 as an example. There will be slight differences if the version is different.

This is the end of this article on how to enable self-monitoring in Apache SkyWalking. For more information about enabling self-monitoring in Apache SkyWalking, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of Apache SkyWalking alarm configuration guide
  • Spring Cloud integrates Apache-SkyWalking to implement link tracking

<<:  HTML tag dl dt dd usage instructions

>>:  Teach you how to solve the error when storing Chinese characters in MySQL database

Recommend

Unzipped version of MYSQL installation and encountered errors and solutions

1 Installation Download the corresponding unzippe...

Use Element+vue to implement start and end time limits

This article example shares the specific code for...

A brief analysis of the count tracking of a request in nginx

First, let me explain the application method. The...

How to install setup.py program in linux

First execute the command: [root@mini61 setuptool...

Common date comparison and calculation functions in MySQL

Implementation of time comparison in MySql unix_t...

Examples of importing and exporting MySQL table data

This article describes the import and export oper...

Do not start CSS pseudo-class names with numbers

When newbies develop div+css, they need to name t...

Understand CSS3 Grid layout in 10 minutes

Basic Introduction In the previous article, we in...

View the command to modify the MySQL table structure

Brief description The editor often encounters som...

Complete steps for mounting a new data disk in CentOS7

Preface I just bought a new VPS. The data disk of...

How to configure domestic sources in CentOS8 yum/dnf

CentOS 8 changed the software package installatio...

Steps to create a CentOS container through Docker

Table of contents Preface Create a bridge network...

MySQL Database Iron Laws (Summary)

Good database specifications help reduce the comp...