Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Template monitoring parameters #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bicep/files-to-load/initial_params.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,8 @@
"HTCClusterInitSpecs": null,
"SchedFilesystemSize": 30,
"HPCMaxScalesetSize": 100,
"SchedulerHAZone": null
"SchedulerHAZone": null,
"EnableMonitoring": false,
"MonitoringClientId": null,
"MetricsIngestionEndpoint": null
}
25 changes: 25 additions & 0 deletions bicep/files-to-load/slurm-workspace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ Autoscale = $Autoscale
# May be used to identify the ID in cluster-init scripts
cluster.identities.default = $ManagedIdentity

# Monitoring
monitoring.enabled = $EnableMonitoring
monitoring.identity_client_id = $MonitoringClientId
monitoring.ingestion_endpoint = $MetricsIngestionEndpoint

[[[cluster-init cyclecloud/slurm:default:3.0.7]]]
Optional = true

Expand Down Expand Up @@ -873,6 +878,26 @@ Order = 20
ParameterType = Boolean
DefaultValue = false

[[parameters Monitoring]]
[[[parameter EnableMonitoring]]]
Label = Enable Monitoring
DefaultValue = false
ParameterType = Boolean
Config.Label = Enable monitoring for Scheduler, Login and compute nodes

[[[parameter MonitoringClientId]]]
Label = Managed Identity Client ID
Description = Client ID of the Managed Identity with Monitoring Metrics Publisher role
DefaultValue = ''
ParameterType = String
Conditions.Excluded := EnableMonitoring isnt true

[[[parameter MetricsIngestionEndpoint]]]
Label = Metrics Ingestion Endpoint
Description = The Azure Monitor Workspace in which to push metrics
DefaultValue = ''
ParameterType = String
Conditions.Excluded := EnableMonitoring isnt true

[[parameters Advanced Networking]]

Expand Down