From 71d3ffd4e2429ff3b3b0515b08464ca70465c02d Mon Sep 17 00:00:00 2001 From: Matheus Tosta Date: Wed, 27 Nov 2024 16:28:42 -0400 Subject: [PATCH] PENG-2457 add config options for the configure hook in the jobbergate agent snap --- jobbergate-agent-snap/hooks/bin/configure | 7 +++++++ jobbergate-agent-snap/snap/snapcraft.yaml | 16 +++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/jobbergate-agent-snap/hooks/bin/configure b/jobbergate-agent-snap/hooks/bin/configure index 3fa51de7..551fb29a 100755 --- a/jobbergate-agent-snap/hooks/bin/configure +++ b/jobbergate-agent-snap/hooks/bin/configure @@ -25,6 +25,13 @@ AGENT_VARIABLES_MAP: dict[str, Union[str, int]] = { "SLURM_USER_MAPPER": "", "SINGLE_USER_SUBMITTER": "ubuntu", "WRITE_SUBMISSION_FILES": "true", + "INFLUX_DSN": "", + "INFLUX_POOL_SIZE": 10, + "INFLUX_SSL": "false", + "INFLUX_VERIFY_SSL": "false", + "INFLUX_TIMEOUT": "", + "INFLUX_UDP_PORT": 4444, + "INFLUX_CERT_PATH": "", } diff --git a/jobbergate-agent-snap/snap/snapcraft.yaml b/jobbergate-agent-snap/snap/snapcraft.yaml index 6941d3c0..f8f1bda4 100644 --- a/jobbergate-agent-snap/snap/snapcraft.yaml +++ b/jobbergate-agent-snap/snap/snapcraft.yaml @@ -1,6 +1,6 @@ name: jobbergate-agent base: core22 -version: '0.4.0' +version: '0.5.0' summary: The Jobbergate Agent snap adopt-info: metadata license: MIT @@ -33,6 +33,20 @@ description: | - write-submission-files: A boolean value (true, false) that indicates whether the agent should write submission files to disk. This is optional and defaults to false. + - influx-dsn: The DSN of the InfluxDB server that the agent will use to fetch job metrics data. It only allows the following schemes: 'influxdb', 'https+influxdb' and 'udp+influxdb'. This is optional and defaults to none. + + - influx-pool-size: The size of the InfluxDB connection pool that the agent will use to fetch job metrics data. This is optional and defaults to 10. + + - influx-ssl: A boolean value (true, false) that indicates whether the agent should use SSL to connect to the InfluxDB server. If true, `influx-cert-path` must be provided. This is optional and defaults to false. + + - influx-verify-ssl: A boolean value (true, false) that indicates whether the agent should verify the SSL certificate of the InfluxDB server. This is optional and defaults to false. + + - influx-timeout: The timeout in seconds that the agent will use when connecting to the InfluxDB server. This is optional and defaults to none. + + - influx-udp-port: The UDP port that the agent will use to connect to the InfluxDB server. This is optional and defaults to 4444. + + - influx-cert-path: The absolute path to the SSL certificate that the agent will use to connect to the InfluxDB server. This is optional and defaults to none. + For learning more about Jobbergate and how it can be used on Vantage, please visit https://docs.vantagehpc.io grade: stable