1. Enable Prometheus telemetry data By default, telemetry is disabled ( 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 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 FetcherSkyWalking 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 ( prometheus-fetcher: selector: ${SW_PROMETHEUS_FETCHER:default} default: active: ${SW_PROMETHEUS_FETCHER_ACTIVE:false} Edit prometheus-fetcher: selector: ${SW_PROMETHEUS_FETCHER:default} default: active: ${SW_PROMETHEUS_FETCHER_ACTIVE:true} 3. View self-monitoring dataRestart 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:
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:
|
<<: HTML tag dl dt dd usage instructions
>>: Teach you how to solve the error when storing Chinese characters in MySQL database
First, download the installation package from the...
1 Installation Download the corresponding unzippe...
Recently, I need to use a lot of fragmented pictu...
This article example shares the specific code for...
First, let me explain the application method. The...
First execute the command: [root@mini61 setuptool...
Implementation of time comparison in MySql unix_t...
This article describes the import and export oper...
When newbies develop div+css, they need to name t...
Basic Introduction In the previous article, we in...
Brief description The editor often encounters som...
Preface I just bought a new VPS. The data disk of...
CentOS 8 changed the software package installatio...
Table of contents Preface Create a bridge network...
Good database specifications help reduce the comp...