mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-05 23:13:07 +00:00
fix: wrap prometheus conf in array
This commit is contained in:
parent
6be2b6ff51
commit
19f87a2298
4
src/clh
4
src/clh
@ -12,4 +12,6 @@ OUTPUTS=$(realpath "${OUTPUTS}")
|
||||
source "${LIB_SRC}/experiment.bash"
|
||||
|
||||
exp_set_outputs "${OUTPUTS}"
|
||||
prom_set_outputs "${PROM_TARGETS_DIR}"
|
||||
prom_set_outputs "${PROM_TARGETS_DIR}"
|
||||
|
||||
exp_start "default"
|
||||
@ -31,15 +31,17 @@ prom_add() {
|
||||
_prom_init_output || return 1
|
||||
|
||||
cat > "${_prom_output}/${metrics_port}-${experiment_type}-${experiment_id}-${node}-${node_type}.json" <<EOF
|
||||
{
|
||||
"targets": ["host.docker.internal:${metrics_port}"],
|
||||
"labels": {
|
||||
"job": "${experiment_type}",
|
||||
"experiment_id": "${experiment_id}",
|
||||
"node": "${node}",
|
||||
"node_type": "${node_type}"
|
||||
[
|
||||
{
|
||||
"targets": ["host.docker.internal:${metrics_port}"],
|
||||
"labels": {
|
||||
"job": "${experiment_type}",
|
||||
"experiment_id": "${experiment_id}",
|
||||
"node": "${node}",
|
||||
"node_type": "${node_type}"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user