summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-08-15 14:08:06 +0800
committerchenzizhan <[email protected]>2024-08-15 14:19:15 +0800
commit6717b31086b40d289397569d3c70ce54abeba766 (patch)
treea6b89c87542acf45189866f2afa5470864c34005 /src
parent644fd0a135b1f6d2bb572c8fc335eab7b2eb548c (diff)
modify prometheus summary
Diffstat (limited to 'src')
-rw-r--r--src/exporter/fieldstat_exporter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exporter/fieldstat_exporter.py b/src/exporter/fieldstat_exporter.py
index 5816a8b..296d6cb 100644
--- a/src/exporter/fieldstat_exporter.py
+++ b/src/exporter/fieldstat_exporter.py
@@ -153,7 +153,7 @@ class PrometheusExporter:
metrics = ""
for i in self.hist_bins:
value = FieldstatAPI.libfieldstat.fieldstat_histogram_value_at_percentile_api(c_hist, float(i * 100))
- metric = name + "{" + tags + ",quantile=\"{:.2f}%\"".format(i * 100) + "}" + ' ' + str(value) + '\n'
+ metric = name + "{" + tags + ",quantile=\"{:.2f}\"".format(i) + "}" + ' ' + str(value) + '\n'
metrics += metric
self.n_lines += 1