Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
6e0354b3
Commit
6e0354b3
authored
13 years ago
by
Brian Moe
Browse files
Options
Downloads
Patches
Plain Diff
Added IFAR chart to reports page.
parent
a555d844
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
gracedb/reports.py
+8
-2
8 additions, 2 deletions
gracedb/reports.py
settings.py
+4
-0
4 additions, 0 deletions
settings.py
settings_dev.py
+5
-1
5 additions, 1 deletion
settings_dev.py
templates/gracedb/histogram.html
+12
-2
12 additions, 2 deletions
templates/gracedb/histogram.html
with
29 additions
and
5 deletions
gracedb/reports.py
+
8
−
2
View file @
6e0354b3
...
@@ -4,15 +4,21 @@ from django.template import RequestContext
...
@@ -4,15 +4,21 @@ from django.template import RequestContext
from
django.shortcuts
import
render_to_response
from
django.shortcuts
import
render_to_response
from
django.conf
import
settings
from
django.conf
import
settings
import
os
def
histo
(
request
):
def
histo
(
request
):
try
:
try
:
table
=
open
(
settings
.
LATENCY_REPORT_WEB_PAGE_FILE_PATH
,
"
r
"
).
read
()
table
=
open
(
settings
.
LATENCY_REPORT_WEB_PAGE_FILE_PATH
,
"
r
"
).
read
()
except
IOError
:
except
IOError
:
table
=
"
No Data Available
"
table
=
"
No Data Available
"
if
os
.
access
(
settings
.
REPORT_IFAR_IMAGE
,
os
.
R_OK
):
ifar
=
settings
.
REPORT_IFAR_URL
else
:
ifar
=
None
return
render_to_response
(
return
render_to_response
(
'
gracedb/histogram.html
'
,
'
gracedb/histogram.html
'
,
{
'
table
'
:
table
},
{
'
table
'
:
table
,
'
ifar
'
:
ifar
,
},
context_instance
=
RequestContext
(
request
))
context_instance
=
RequestContext
(
request
))
This diff is collapsed.
Click to expand it.
settings.py
+
4
−
0
View file @
6e0354b3
...
@@ -75,6 +75,10 @@ LATENCY_REPORT_DEST_DIR = "/home/gracedb/data/latency"
...
@@ -75,6 +75,10 @@ LATENCY_REPORT_DEST_DIR = "/home/gracedb/data/latency"
LATENCY_MAXIMUM_CHARTED
=
1800
LATENCY_MAXIMUM_CHARTED
=
1800
LATENCY_REPORT_WEB_PAGE_FILE_PATH
=
LATENCY_REPORT_DEST_DIR
+
"
/latency.inc
"
LATENCY_REPORT_WEB_PAGE_FILE_PATH
=
LATENCY_REPORT_DEST_DIR
+
"
/latency.inc
"
REPORT_CBC_IFAR_QUERY
=
"
LowMass ER1 hasfar
"
REPORT_IFAR_IMAGE
=
LATENCY_REPORT_DEST_DIR
+
"
/ifar.png
"
REPORT_IFAR_URL
=
"
ifar.png
"
# RSS Feed Defaults
# RSS Feed Defaults
FEED_MAX_RESULTS
=
50
FEED_MAX_RESULTS
=
50
...
...
This diff is collapsed.
Click to expand it.
settings_dev.py
+
5
−
1
View file @
6e0354b3
...
@@ -60,10 +60,14 @@ GRACEDB_DATA_DIR = "/mnt/gracedb-web/data"
...
@@ -60,10 +60,14 @@ GRACEDB_DATA_DIR = "/mnt/gracedb-web/data"
#GRACEDB_DATA_DIR = "/mnt/gracedb-web-temp/data"
#GRACEDB_DATA_DIR = "/mnt/gracedb-web-temp/data"
# Latency histograms. Where they go and max latency to bin.
# Latency histograms. Where they go and max latency to bin.
LATENCY_REPORT_DEST_DIR
=
"
/home/bmoe/
django/
data/latency
"
LATENCY_REPORT_DEST_DIR
=
"
/home/bmoe/data/latency
"
LATENCY_MAXIMUM_CHARTED
=
1800
LATENCY_MAXIMUM_CHARTED
=
1800
LATENCY_REPORT_WEB_PAGE_FILE_PATH
=
LATENCY_REPORT_DEST_DIR
+
"
/latency.inc
"
LATENCY_REPORT_WEB_PAGE_FILE_PATH
=
LATENCY_REPORT_DEST_DIR
+
"
/latency.inc
"
REPORT_CBC_IFAR_QUERY
=
"
LowMass ER1 hasfar
"
REPORT_IFAR_IMAGE
=
LATENCY_REPORT_DEST_DIR
+
"
/ifar.png
"
REPORT_IFAR_URL
=
"
ifar.png
"
# RSS Feed Defaults
# RSS Feed Defaults
FEED_MAX_RESULTS
=
50
FEED_MAX_RESULTS
=
50
...
...
This diff is collapsed.
Click to expand it.
templates/gracedb/histogram.html
+
12
−
2
View file @
6e0354b3
{% extends "base.html" %}
{% extends "base.html" %}
{% block title %}Report
ing Latency
{% endblock %}
{% block title %}Report
s
{% endblock %}
{% block heading %}Report
ing Latency
{% endblock %}
{% block heading %}Report
s
{% endblock %}
{% block pageid %}reports{% endblock %}
{% block pageid %}reports{% endblock %}
{% block content %}
{% block content %}
<h3>
Latency
</h3>
{{ table|safe }}
{{ table|safe }}
<br/>
<h3>
CBC IFAR
</h3>
{% if ifar %}
<img
src=
"{{ ifar }}"
>
hai
{% else %}
No IFAR table.
{% endif %}
{% endblock %}
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment