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
Code Knowledge Points 1. Combine fullpage.js to a...
Recently, I encountered many problems when deploy...
Table of contents Preface The relationship betwee...
After the user logs out, if the back button on the...
Content 1. Give readers a reason to stay. Make the...
We know that the commonly used events in JS are: ...
Table of contents Project Background Improvement ...
Preface In MySQL, multi-table join query is a ver...
Table of contents 1. Introduction 2. Configuratio...
Introduction Part 1: Written at the beginning One...
One line command docker run -d \ -v /share:/home/...
Overview An index is a table of correspondence be...
I am planning to build my own website, so I took ...
1. Backup source list The default source of Ubunt...
1. Concept 1. The difference between hot backup a...