Skip to content

Commit 3ffa3bb

Browse files
authored
(bot) Change pushed prometheus metrics to plaintext
1 parent 3940e22 commit 3ffa3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/prometheus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PrometheusService {
5353
throw new Error('PROMETHEUS_METRICS_SERVICE_URL is not set');
5454
}
5555

56-
const metrics = await this.registry.getMetricsAsJSON();
56+
const metrics = await this.registry.metrics();
5757

5858
try {
5959
await axios.post(process.env.PROMETHEUS_METRICS_SERVICE_URL, {

0 commit comments

Comments
 (0)