Microsoft Azure WebApp에서 기본 인증으로 Prometheus 구성
전제 조건:
단계



web.yml (Upload this file in **suryasprometheus** Storage Account Share) basic_auth_users:
suryauser: $2a$12$6g5f3MZriVtoOZ7GrCEwzuTBxnPQwHurpktXTXUu1neg/XZeHzipy

Set an Startup Commmand for Prometheus WebApp which includes web.yml az webapp config set --name $WebAppName --resource-group $ResourceGroupName --startup-file `
"--config.file=/etc/prometheus/prometheus.yml --web.config.file=/etc/prometheus/web.yml --web.enable-lifecycle --storage.tsdb.retention.time=7d"

prometheus.yml (Upload this file in **suryasprometheus** Storage Account Share) # my global config
global:
scrape_interval: 30s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 30s # Evaluate rules every 15 seconds. The default is every 1 minute.
scrape_timeout: 30s #is set to the global default (10s).
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "Prometheus"
static_configs:
- targets: ["suryawaprometheus.azurewebsites.net"]
basic_auth:
username: suryauser
password: suryapassword

Reference
이 문제에 관하여(Microsoft Azure WebApp에서 기본 인증으로 Prometheus 구성), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/suryabhansv/configure-prometheus-with-basic-authentication-in-microsoft-azure-webapp-anp텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)