Create 2 metrics with one exec (command)

hello, I’m using influxdb 2.0, I’'m trying to work and create precise alerts for AIX (Unix) disk space.

I have made good progress, I have only one metric but I would like to have 2 series of metrics to filter the total size of the disks (and the percent usage).

[[inputs.exec]]
commands = [“/usr/share/exporter/aix/aix_fs_usage.sh 10.1.11.52 myappprod”]
name_override = “myappprod_disk”
data_format = "json
json_string_fields = [“instance”, “Mount”, “Spacetotal”, “Spaceavail”, “Dossier”]
json_time_key = “”
json_time_format = “02 Jan 06 15:04 MST”
tag_keys = [“Dossier”, “instance”, “Spacetotal”]
json_query = “”

I then send the result to prometheus to be able to use alertmanager ( and Alerta)

I have only one set of metrics (“myappprod_disk”), how to get the other set of metrics on the total disk space (Spacetotal) ?

partial Bash script aix_fs_usage.sh: convert DF -G to Json

etc…
/usr/share/exporter/aix/jq -R -s ’
[
split(“\n”) |
. |
if test(“^/d”) then
gsub(" +“; " “) | split(” “) | {instance: “‘$nodename’”, Mount: .[0], Spacetotal: .[1] | tonumber, Spaceavail: .[2], Pourcent: .[3] | gsub(”%”; “”) | tonumber, Dossier: .[6]}
else
empty
end
]’

sample result:
{
“instance”: “myapprod”,
“Mount”: “/dev/fslv20”,
“Spacetotal”: 25,
“Spaceavail”: “3.46”,
“Pourcent”: 87,
“Dossier”: “/oracle/db11g/dbs/imxp/UNDO”
},
{
“instance”: “myapprod”,
“Mount”: “/dev/fslv05”,
“Spacetotal”: 7,
“Spaceavail”: “2.02”,
“Pourcent”: 72,
“Dossier”: “/oracle/fm”
}
]