=== PROMETHEUS CONFIG === global: scrape_interval: 15s scrape_timeout: 10s scrape_protocols: - OpenMetricsText1.0.0 - OpenMetricsText0.0.1 - PrometheusText1.0.0 - PrometheusText0.0.4 evaluation_interval: 15s runtime: gogc: 75 alerting: alertmanagers: - follow_redirects: true enable_http2: true scheme: http timeout: 10s api_version: v2 static_configs: - targets: [] scrape_configs: - job_name: prometheus honor_timestamps: true track_timestamps_staleness: false scrape_interval: 15s scrape_timeout: 10s scrape_protocols: - OpenMetricsText1.0.0 - OpenMetricsText0.0.1 - PrometheusText1.0.0 - PrometheusText0.0.4 convert_classic_histograms_to_nhcb: false metrics_path: /metrics scheme: http enable_compression: true metric_name_validation_scheme: utf8 metric_name_escaping_scheme: allow-utf-8 follow_redirects: true enable_http2: true static_configs: - targets: - localhost:9090 labels: app: prometheus - job_name: pushgateway honor_timestamps: true track_timestamps_staleness: false scrape_interval: 15s scrape_timeout: 10s scrape_protocols: - OpenMetricsText1.0.0 - OpenMetricsText0.0.1 - PrometheusText1.0.0 - PrometheusText0.0.4 convert_classic_histograms_to_nhcb: false metrics_path: /metrics scheme: http enable_compression: true metric_name_validation_scheme: utf8 metric_name_escaping_scheme: allow-utf-8 follow_redirects: true enable_http2: true static_configs: - targets: - localhost:9091 labels: app: pushgateway - job_name: erp-sql-exporter honor_timestamps: true track_timestamps_staleness: false scrape_interval: 15s scrape_timeout: 10s scrape_protocols: - OpenMetricsText1.0.0 - OpenMetricsText0.0.1 - PrometheusText1.0.0 - PrometheusText0.0.4 convert_classic_histograms_to_nhcb: false metrics_path: /metrics scheme: http enable_compression: true metric_name_validation_scheme: utf8 metric_name_escaping_scheme: allow-utf-8 follow_redirects: true enable_http2: true static_configs: - targets: - localhost:8000 labels: app: erp-sql-exporter === PROMETHEUS TARGETS (FULL) === {"status":"success","data":{"activeTargets":[{"discoveredLabels":{"__address__":"localhost:8000","__metrics_path__":"/metrics","__scheme__":"http","__scrape_interval__":"15s","__scrape_timeout__":"10s","app":"erp-sql-exporter","job":"erp-sql-exporter"},"labels":{"app":"erp-sql-exporter","instance":"localhost:8000","job":"erp-sql-exporter"},"scrapePool":"erp-sql-exporter","scrapeUrl":"http://localhost:8000/metrics","globalUrl":"http://WIN-Q6BFL1E423E:8000/metrics","lastError":"Get \"http://localhost:8000/metrics\": dial tcp [::1]:8000: connectex: No connection could be made because the target machine actively refused it.","lastScrape":"2026-10-09T01:08:59.4885613+08:00","lastScrapeDuration":0.7925912,"health":"down","scrapeInterval":"15s","scrapeTimeout":"10s"},{"discoveredLabels":{"__address__":"localhost:9090","__metrics_path__":"/metrics","__scheme__":"http","__scrape_interval__":"15s","__scrape_timeout__":"10s","app":"prometheus","job":"prometheus"},"labels":{"app":"prometheus","instance":"localhost:9090","job":"prometheus"},"scrapePool":"prometheus","scrapeUrl":"http://localhost:9090/metrics","globalUrl":"http://WIN-Q6BFL1E423E:9090/metrics","lastError":"","lastScrape":"2026-10-09T01:09:04.5383277+08:00","lastScrapeDuration":0.0070047,"health":"up","scrapeInterval":"15s","scrapeTimeout":"10s"},{"discoveredLabels":{"__address__":"localhost:9091","__metrics_path__":"/metrics","__scheme__":"http","__scrape_interval__":"15s","__scrape_timeout__":"10s","app":"pushgateway","job":"pushgateway"},"labels":{"app":"pushgateway","instance":"localhost:9091","job":"pushgateway"},"scrapePool":"pushgateway","scrapeUrl":"http://localhost:9091/metrics","globalUrl":"http://WIN-Q6BFL1E423E:9091/metrics","lastError":"","lastScrape":"2026-10-09T01:09:08.2170824+08:00","lastScrapeDuration":0.0010013,"health":"up","scrapeInterval":"15s","scrapeTimeout":"10s"}],"droppedTargets":[],"droppedTargetCounts":{"erp-sql-exporter":0,"prometheus":0,"pushgateway":0}}} === PROMETHEUS FLAGS === config.auto-reload-interval = 30s config.file = prometheus.yml storage.agent.no-lockfile = false storage.agent.path = data-agent/ storage.tsdb.no-lockfile = false storage.tsdb.path = data/ web.config.file = === SQL EXPORTER :8000 === 8000/: no resp 8000/config: no resp 8000/metrics: no resp 8000/health: no resp 8000/debug/vars: no resp DONE