1 #!/usr/bin/env cwl-runner
2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
9 arv: "http://arvados.org/cwl#"
10 cwltool: "http://commonwl.org/cwltool#"
14 prometheus_host: string
15 prometheus_apikey: string?
16 prometheus_user: string?
17 prometheus_password: string?
21 dockerPull: 'arvados/cluster-activity:2.8.0.dev20240702194009'
23 InitialWorkDirRequirement:
25 - entryname: prometheus.env
27 PROMETHEUS_HOST=$(inputs.prometheus_host)
28 PROMETHEUS_APIKEY=$(inputs.prometheus_apikey)
29 PROMETHEUS_USER=$(inputs.prometheus_user)
30 PROMETHEUS_PASSWORD=$(inputs.prometheus_password)
32 arv:APIRequirement: {}
36 secrets: [prometheus_apikey, prometheus_password]
39 - arv-cluster-activity
40 - {prefix: '--prometheus-auth', valueFrom: prometheus.env}
41 - {prefix: '--days', valueFrom: $(inputs.reporting_days)}
42 - {prefix: '--html-report-file', valueFrom: report.html}