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
Table of contents Cycle comparison usage Summariz...
Copy code The code is as follows: <span style=...
This article example shares the specific code of ...
The specific code for encapsulating the image cap...
Display Definition ID When the auto-increment ID ...
Shtml and asp are similar. In files named shtml, s...
1. Business scenario introduction Suppose there i...
Replication is to transfer the DDL and DML operat...
1. Introduction to Docker 1.1 Virtualization 1.1....
This article describes the mysql show operation w...
Table of contents Preface Check and uninstall Ope...
nginx (engine x) is a high-performance HTTP and r...
Introduction Incremental backup means that after ...
Table of contents Preface Motivation for Fragment...
Generally, during Qingming Festival, the National...