ci(typhon): preserve run counter scrape buffer
This commit is contained in:
parent
4d45c40f75
commit
8ad9b8a35c
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -336,7 +336,10 @@ function labelString(labels) {
|
|||||||
|
|
||||||
function fetchCounter(targetStatus) {
|
function fetchCounter(targetStatus) {
|
||||||
try {
|
try {
|
||||||
const metrics = execSync(`curl -fsS ${gateway}/metrics`, { encoding: 'utf8' });
|
const metrics = execSync(`curl -fsS ${gateway}/metrics`, {
|
||||||
|
encoding: 'utf8',
|
||||||
|
maxBuffer: 16 * 1024 * 1024
|
||||||
|
});
|
||||||
for (const line of metrics.split(String.fromCharCode(10))) {
|
for (const line of metrics.split(String.fromCharCode(10))) {
|
||||||
if (
|
if (
|
||||||
line.startsWith('platform_quality_gate_runs_total{') &&
|
line.startsWith('platform_quality_gate_runs_total{') &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user