Add Content-Type header for prometheus metrics
This commit is contained in:
@@ -96,6 +96,7 @@ class Mon
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
res.setHeader('Content-Type', 'text/plain; version=0.0.4; charset=utf-8');
|
||||||
res.write(export_prometheus_metrics(this.state));
|
res.write(export_prometheus_metrics(this.state));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user