Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 876 Bytes

CiPrometheusNginx.md

File metadata and controls

18 lines (13 loc) · 876 Bytes

Scrapping Nginx metrics for Container insights

https://docs.microsoft.com/en-us/azure/azure-monitor/insights/container-insights-agent-config#overview-of-configurable-prometheus-scraping-settings

# HELP nginx_ingress_controller_nginx_process_requests_total total number of client requests
# TYPE nginx_ingress_controller_nginx_process_requests_total counter
nginx_ingress_controller_nginx_process_requests_total{controller_class="nginx",controller_namespace="kube-system",controller_pod="nginx-ingress-controller-95d976c8b-4km4p"} 566
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 6

wget https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature_prod/Kubernetes/container-azm-ms-agentconfig.yaml