Skip to content

Commit 72ec308

Browse files
authored
Merge pull request #781 from opendatacube/histogram_metric
Upgrade OGC metrics to histogram. Update History.rst.
2 parents 219ec00 + b0f6ec8 commit 72ec308

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

HISTORY.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ History
77

88
Datacube-ows version 1.8.x indicates that it is designed work with datacube-core versions 1.8.x.
99

10-
1.8.23.2 (2021-12-16)
10+
1.8.23.3 (2021-12-16)
11+
---------------------
12+
13+
Interim administrative release.
14+
15+
* Upgraded Prometheus metrics to histogram type, and updated HISTORY.rst (#781)
16+
17+
1.8.23.2 (2021-12-15)
1118
---------------------
1219

1320
Interim administrative release.

datacube_ows/ogc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
OWS_SUPPORTED = supported_versions()
4848

4949
# Prometheus Metrics
50-
prometheus_ows_ogc_metric = metrics.summary(
50+
prometheus_ows_ogc_metric = metrics.histogram(
5151
"ows_ogc",
5252
"Summary by OGC request protocol, version, operation, layer, and HTTP Status",
5353
labels={
@@ -196,7 +196,7 @@ def ping():
196196

197197

198198
@app.route("/legend/<string:layer>/<string:style>/legend.png")
199-
@metrics.summary('ows_legends', "Legend query durations", labels={
199+
@metrics.histogram('ows_legends', "Legend query durations", labels={
200200
"layer": lambda: request.path.split("/")[2],
201201
"style": lambda: request.path.split("/")[3],
202202
"status": lambda r: r.status,

0 commit comments

Comments
 (0)