This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| # Init script to send host-level metrics from Databricks clusters to Prometheus/Grafana using Alloy agent. | |
| # | |
| # 1. Add the init script to your cluster(s). | |
| # 2. Add required environment variables in your cluster configuration, e.g.: | |
| # PROMETHEUS_HOST=10.0.0.1:9090 | |
| # DB_CLUSTER_ID=cluster-or-job-name | |
| # 3. Add more labels if needed (job name, etc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # set the Windows Update service to "disabled" | |
| sc.exe config wuauserv start=disabled | |
| # display the status of the service | |
| sc.exe query wuauserv | |
| # stop the service, in case it is running | |
| sc.exe stop wuauserv | |
| # display the status again, because we're paranoid |