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 reporting_start: string?
15 reporting_end: string?
16 prometheus_host: string
17 prometheus_apikey: string?
18 prometheus_user: string?
19 prometheus_password: string?
21 include_workflow_steps: boolean?
25 dockerPull: 'arvados/cluster-activity'
27 InitialWorkDirRequirement:
29 - entryname: prometheus.env
31 PROMETHEUS_HOST=$(inputs.prometheus_host)
32 PROMETHEUS_APIKEY=$(inputs.prometheus_apikey)
33 PROMETHEUS_USER=$(inputs.prometheus_user)
34 PROMETHEUS_PASSWORD=$(inputs.prometheus_password)
36 arv:APIRequirement: {}
43 REQUESTS_CA_BUNDLE: /etc/arvados/ca-certificates.crt
47 secrets: [prometheus_apikey, prometheus_password]
50 - arv-cluster-activity
51 - {prefix: '--prometheus-auth', valueFrom: prometheus.env}
52 - {prefix: '--days', valueFrom: $(inputs.reporting_days)}
53 - {prefix: '--start', valueFrom: $(inputs.reporting_start)}
54 - {prefix: '--end', valueFrom: $(inputs.reporting_end)}
55 - {prefix: '--exclude', valueFrom: $(inputs.exclude)}
56 - {prefix: '--html-report-file', valueFrom: report.html}
57 - {prefix: '--cost-report-file', valueFrom: cost.csv}
58 - {prefix: '--include-workflow-steps', valueFrom: $(inputs.include_workflow_steps)}