Skip to content

Commit ed79dd0

Browse files
Merge pull request #23 from nsidc/da115-fix-edd-metrics-nesting
Fixup issue with EDD metrics being nested
2 parents 797a5b0 + 42d0a4a commit ed79dd0

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
- Fixed issue with docker logs: limit total amount of logs retained by Docker.
55
This prevents a VM's local disk from completely filling after long enough
66
uptime.
7+
- Fix issue with EDD metrics being nested under each other in the `/api/metrics`
8+
generated-page.
79

810
# v1.0.1
911

src/dat_backend/templates/app_metrics.html.jinja

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,16 @@
3030
{% endfor %}
3131
</p>
3232

33-
<h3>get-links specific metrics (indicates interaction with EDD)</h3>
34-
<p>
35-
{% for shortname_version, metrics in get_links_metrics.items() %}
36-
<h4><u>{{ shortname_version }}</u></h4>
37-
<p>Number of requests by status:</p>
38-
<ul>
39-
{% for status_code, count in metrics.items() %}
40-
<li>{{ status_code }}: {{ count }}</li>
41-
{% endfor %}
42-
{% endfor %}
43-
</p>
33+
<h3>get-links specific metrics (indicates interaction with EDD!)</h3>
34+
{% for shortname_version, metrics in get_links_metrics.items() %}
35+
<h4><u>{{ shortname_version }}</u></h4>
36+
<p>Number of requests by status:</p>
37+
<ul>
38+
{% for status_code, count in metrics.items() %}
39+
<li>{{ status_code }}: {{ count }}</li>
40+
{% endfor %}
41+
</ul>
42+
{% endfor %}
4443

4544
<div style="display: flex;">
4645
</body>

0 commit comments

Comments
 (0)