mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-08 00:13:06 +00:00
fix: wrap prometheus conf in array
This commit is contained in:
parent
6be2b6ff51
commit
19f87a2298
2
src/clh
2
src/clh
@ -13,3 +13,5 @@ source "${LIB_SRC}/experiment.bash"
|
||||
|
||||
exp_set_outputs "${OUTPUTS}"
|
||||
prom_set_outputs "${PROM_TARGETS_DIR}"
|
||||
|
||||
exp_start "default"
|
||||
@ -31,6 +31,7 @@ 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": {
|
||||
@ -40,6 +41,7 @@ prom_add() {
|
||||
"node_type": "${node_type}"
|
||||
}
|
||||
}
|
||||
]
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user