| 1 |
@define prometheus_dump_array1_map(a,name,c1,m0,m1) %( |
| 2 |
foreach (_v = [_v1] in @a) { |
| 3 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 4 |
. "} " . text_str(@m0(_v)) . "\n") |
| 5 |
} |
| 6 |
%) |
| 7 |
|
| 8 |
@define prometheus_dump_array1_map_unquoted(a,name,c1,m0,m1) %( |
| 9 |
foreach (_v = [_v1] in @a) { |
| 10 |
$value .= (@name . "{" . @c1 . "=" . @m1(_v1) |
| 11 |
. "} " . text_str(@m0(_v)) . "\n") |
| 12 |
} |
| 13 |
%) |
| 14 |
|
| 15 |
@define prometheus_dump_array1(a,name,c1) %( |
| 16 |
@prometheus_dump_array1_map(@a,@name,@c1,sprint,sprint) |
| 17 |
%) |
| 18 |
|
| 19 |
@define prometheus_dump_array2_map(a,name,c1,c2,m0,m1,m2) %( |
| 20 |
foreach (_v = [_v1,_v2] in @a) { |
| 21 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 22 |
. "," . @c2 . "=" . string_quoted(@m2(_v2)) |
| 23 |
. "} " . text_str(@m0(_v)) . "\n") |
| 24 |
} |
| 25 |
%) |
| 26 |
|
| 27 |
@define prometheus_dump_array2_map_unquoted(a,name,c1,c2,m0,m1,m2) %( |
| 28 |
foreach (_v = [_v1,_v2] in @a) { |
| 29 |
$value .= (@name . "{" . @c1 . "=" . @m1(_v1) |
| 30 |
. "," . @c2 . "=" . @m2(_v2) |
| 31 |
. "} " . text_str(@m0(_v)) . "\n") |
| 32 |
} |
| 33 |
%) |
| 34 |
|
| 35 |
@define prometheus_dump_array2(a,name,c1,c2) %( |
| 36 |
@prometheus_dump_array2_map(@a,@name,@c1,@c2,sprint,sprint,sprint) |
| 37 |
%) |
| 38 |
|
| 39 |
@define prometheus_dump_array3_map(a,name,c1,c2,c3,m0,m1,m2,m3) %( |
| 40 |
foreach (_v = [_v1,_v2,_v3] in @a) { |
| 41 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 42 |
. "," . @c2 . "=" . string_quoted(@m2(_v2)) |
| 43 |
. "," . @c3 . "=" . string_quoted(@m3(_v3)) |
| 44 |
. "} " . text_str(@m0(_v)) . "\n") |
| 45 |
} |
| 46 |
%) |
| 47 |
|
| 48 |
@define prometheus_dump_array3_map_unquoted(a,name,c1,c2,c3,m0,m1,m2,m3) %( |
| 49 |
foreach (_v = [_v1,_v2,_v3] in @a) { |
| 50 |
$value .= (@name . "{" . @c1 . "=" . @m1(_v1) |
| 51 |
. "," . @c2 . "=" . @m2(_v2) |
| 52 |
. "," . @c3 . "=" . @m3(_v3) |
| 53 |
. "} " . text_str(@m0(_v)) . "\n") |
| 54 |
} |
| 55 |
%) |
| 56 |
|
| 57 |
@define prometheus_dump_array3(a,name,c1,c2,c3) %( |
| 58 |
@prometheus_dump_array3_map(@a,@name,@c1,@c2,@c3,sprint,sprint,sprint,sprint) |
| 59 |
%) |
| 60 |
|
| 61 |
@define prometheus_dump_array4_map(a,name,c1,c2,c3,c4,m0,m1,m2,m3,m4) %( |
| 62 |
foreach (_v = [_v1,_v2,_v3,_v4] in @a) { |
| 63 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 64 |
. "," . @c2 . "=" . string_quoted(@m2(_v2)) |
| 65 |
. "," . @c3 . "=" . string_quoted(@m3(_v3)) |
| 66 |
. "," . @c4 . "=" . string_quoted(@m4(_v4)) |
| 67 |
. "} " . text_str(m0(_v)) . "\n") |
| 68 |
} |
| 69 |
%) |
| 70 |
|
| 71 |
@define prometheus_dump_array4_map_unquoted(a,name,c1,c2,c3,c4,m0,m1,m2,m3,m4) %( |
| 72 |
foreach (_v = [_v1,_v2,_v3,_v4] in @a) { |
| 73 |
$value .= (@name . "{" . @c1 . "=" . @m1(_v1) |
| 74 |
. "," . @c2 . "=" . @m2(_v2) |
| 75 |
. "," . @c3 . "=" . @m3(_v3) |
| 76 |
. "," . @c4 . "=" . @m4(_v4) |
| 77 |
. "} " . text_str(m0(_v)) . "\n") |
| 78 |
} |
| 79 |
%) |
| 80 |
|
| 81 |
@define prometheus_dump_array4(a,name,c1,c2,c3,c4) %( |
| 82 |
@prometheus_dump_array4_map(@a,@name,@c1,@c2,@c3,@c4, |
| 83 |
sprint,sprint,sprint,sprint,sprint) |
| 84 |
%) |
| 85 |
|
| 86 |
@define prometheus_dump_array5_map(a,name,c1,c2,c3,c4,c5,m0,m1,m2,m3,m4,m5) %( |
| 87 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5] in @a) { |
| 88 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 89 |
. "," . @c2 . "=" . string_quoted(@m2(_v2)) |
| 90 |
. "," . @c3 . "=" . string_quoted(@m3(_v3)) |
| 91 |
. "," . @c4 . "=" . string_quoted(@m4(_v4)) |
| 92 |
. "," . @c5 . "=" . string_quoted(@m5(_v5)) |
| 93 |
. "} " . text_str(@m0(_v)) . "\n") |
| 94 |
} |
| 95 |
%) |
| 96 |
|
| 97 |
@define prometheus_dump_array5_map_unquoted(a,name,c1,c2,c3,c4,c5,m0,m1,m2,m3,m4,m5) %( |
| 98 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5] in @a) { |
| 99 |
$value .= (@name . "{" . @c1 . "=" . @m1(_v1) |
| 100 |
. "," . @c2 . "=" . @m2(_v2) |
| 101 |
. "," . @c3 . "=" . @m3(_v3) |
| 102 |
. "," . @c4 . "=" . @m4(_v4) |
| 103 |
. "," . @c5 . "=" . @m5(_v5) |
| 104 |
. "} " . text_str(@m0(_v)) . "\n") |
| 105 |
} |
| 106 |
%) |
| 107 |
|
| 108 |
@define prometheus_dump_array5(a,name,c1,c2,c3,c4,c5) %( |
| 109 |
@prometheus_dump_array5_map(@a,@name,@c1,@c2,@c3,@c4,@c5, |
| 110 |
sprint,sprint,sprint,sprint,sprint,sprint) |
| 111 |
%) |
| 112 |
|
| 113 |
@define prometheus_dump_array6_map(a,name,c1,c2,c3,c4,c5,c6, |
| 114 |
m0,m1,m2,m3,m4,m5,m6) %( |
| 115 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5,_v6] in @a) { |
| 116 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 117 |
. "," . @c2 . "=" . string_quoted(@m2(_v2)) |
| 118 |
. "," . @c3 . "=" . string_quoted(@m3(_v3)) |
| 119 |
. "," . @c4 . "=" . string_quoted(@m4(_v4)) |
| 120 |
. "," . @c5 . "=" . string_quoted(@m5(_v5)) |
| 121 |
. "," . @c6 . "=" . string_quoted(@m6(_v6)) |
| 122 |
. "} " . text_str(@m0(_v)) . "\n") |
| 123 |
} |
| 124 |
%) |
| 125 |
|
| 126 |
@define prometheus_dump_array6_map_unquoted(a,name,c1,c2,c3,c4,c5,c6, |
| 127 |
m0,m1,m2,m3,m4,m5,m6) %( |
| 128 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5,_v6] in @a) { |
| 129 |
$value .= (@name . "{" . @c1 . "=" . @m1(_v1) |
| 130 |
. "," . @c2 . "=" . @m2(_v2) |
| 131 |
. "," . @c3 . "=" . @m3(_v3) |
| 132 |
. "," . @c4 . "=" . @m4(_v4) |
| 133 |
. "," . @c5 . "=" . @m5(_v5) |
| 134 |
. "," . @c6 . "=" . @m6(_v6) |
| 135 |
. "} " . text_str(@m0(_v)) . "\n") |
| 136 |
} |
| 137 |
%) |
| 138 |
|
| 139 |
@define prometheus_dump_array6(a,name,c1,c2,c3,c4,c5,c6) %( |
| 140 |
@prometheus_dump_array6_map(@a,@name,@c1,@c2,@c3,@c4,@c5,@c6, |
| 141 |
sprint,sprint,sprint,sprint,sprint,sprint, |
| 142 |
sprint) |
| 143 |
%) |
| 144 |
|
| 145 |
@define prometheus_dump_array7_map(a,name,c1,c2,c3,c4,c5,c6,c7, |
| 146 |
m0,m1,m2,m3,m4,m5,m6,m7) %( |
| 147 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5,_v6,_v7] in @a) { |
| 148 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 149 |
. "," . @c2 . "=" . string_quoted(@m2(_v2)) |
| 150 |
. "," . @c3 . "=" . string_quoted(@m3(_v3)) |
| 151 |
. "," . @c4 . "=" . string_quoted(@m4(_v4)) |
| 152 |
. "," . @c5 . "=" . string_quoted(@m5(_v5)) |
| 153 |
. "," . @c6 . "=" . string_quoted(@m6(_v6)) |
| 154 |
. "," . @c7 . "=" . string_quoted(@m7(_v7)) |
| 155 |
. "} " . text_str(@m0(_v)) . "\n") |
| 156 |
} |
| 157 |
%) |
| 158 |
|
| 159 |
@define prometheus_dump_array7_map_unquoted(a,name,c1,c2,c3,c4,c5,c6,c7, |
| 160 |
m0,m1,m2,m3,m4,m5,m6,m7) %( |
| 161 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5,_v6,_v7] in @a) { |
| 162 |
$value .= (@name . "{" . @c1 . "=" . @m1(_v1) |
| 163 |
. "," . @c2 . "=" . @m2(_v2) |
| 164 |
. "," . @c3 . "=" . @m3(_v3) |
| 165 |
. "," . @c4 . "=" . @m4(_v4) |
| 166 |
. "," . @c5 . "=" . @m5(_v5) |
| 167 |
. "," . @c6 . "=" . @m6(_v6) |
| 168 |
. "," . @c7 . "=" . @m7(_v7) |
| 169 |
. "} " . text_str(@m0(_v)) . "\n") |
| 170 |
} |
| 171 |
%) |
| 172 |
|
| 173 |
@define prometheus_dump_array7(a,name,c1,c2,c3,c4,c5,c6,c7) %( |
| 174 |
@prometheus_dump_array7_map(@a,@name,@c1,@c2,@c3,@c4,@c5,@c6,@c7, |
| 175 |
sprint,sprint,sprint,sprint,sprint,sprint, |
| 176 |
sprint,sprint) |
| 177 |
%) |
| 178 |
|
| 179 |
@define prometheus_dump_array8_map(a,name,c1,c2,c3,c4,c5,c6,c7,c8, |
| 180 |
m0,m1,m2,m3,m4,m5,m6,m7,m8) %( |
| 181 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5,_v6,_v7,_v8] in @a) { |
| 182 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1)) |
| 183 |
. "," . @c2 . "=" . string_quoted(@m2(_v2)) |
| 184 |
. "," . @c3 . "=" . string_quoted(@m3(_v3)) |
| 185 |
. "," . @c4 . "=" . string_quoted(@m4(_v4)) |
| 186 |
. "," . @c5 . "=" . string_quoted(@m5(_v5)) |
| 187 |
. "," . @c6 . "=" . string_quoted(@m6(_v6)) |
| 188 |
. "," . @c7 . "=" . string_quoted(@m7(_v7)) |
| 189 |
. "," . @c8 . "=" . string_quoted(@m8(_v8)) |
| 190 |
. "} " . text_str(@m0(_v)) . "\n") |
| 191 |
} |
| 192 |
%) |
| 193 |
|
| 194 |
@define prometheus_dump_array8_map_unquoted(a,name,c1,c2,c3,c4,c5,c6,c7,c8, |
| 195 |
m0,m1,m2,m3,m4,m5,m6,m7,m8) %( |
| 196 |
foreach (_v = [_v1,_v2,_v3,_v4,_v5,_v6,_v7,_v8] in @a) { |
| 197 |
$value .= (@name . "{" . @c1 . "=" . string_quoted(@m1(_v1) |
| 198 |
. "," . @c2 . "=" . @m2(_v2) |
| 199 |
. "," . @c3 . "=" . @m3(_v3) |
| 200 |
. "," . @c4 . "=" . @m4(_v4) |
| 201 |
. "," . @c5 . "=" . @m5(_v5) |
| 202 |
. "," . @c6 . "=" . @m6(_v6) |
| 203 |
. "," . @c7 . "=" . @m7(_v7) |
| 204 |
. "," . @c8 . "=" . @m8(_v8) |
| 205 |
. "} " . text_str(@m0(_v)) . "\n") |
| 206 |
} |
| 207 |
%) |
| 208 |
|
| 209 |
|
| 210 |
@define prometheus_dump_array8(a,name,c1,c2,c3,c4,c5,c6,c7,c8) %( |
| 211 |
@prometheus_dump_array8_map(@a,@name,@c1,@c2,@c3,@c4,@c5,@c6,@c7,@c8, |
| 212 |
sprint,sprint,sprint,sprint,sprint,sprint, |
| 213 |
sprint,sprint,sprint) |
| 214 |
%) |