Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
APItools Monitor Release 201408041328
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Cichra committed Aug 4, 2014
1 parent efe6322 commit 204cd9a
Show file tree
Hide file tree
Showing 43 changed files with 851 additions and 314 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM quay.io/3scale/openresty:1.5.12.1

MAINTAINER Michal Cichra <[email protected]> # 2014-02-24

RUN luarocks install luajson \
&& luarocks install luaexpat

RUN ln -sf /var/www/brainslug/config/supervisor.conf /etc/supervisor/conf.d/openresty.conf \
&& ln -sf /var/www/brainslug/config/logrotate.conf /etc/logrotate.d/nginx \
&& echo '* * * * * curl http://localhost:7071/api/mails/send' | crontab

ENV SLUG_LOGFILE /var/log/supervisor/supervisord.log
ENV SLUG_CSRF_PROTECTION 1;

CMD ["supervisord", "-n"]
EXPOSE 7071 10002

ADD . /var/www/brainslug

5 changes: 3 additions & 2 deletions app/analytics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ <h4>Analyze flows to detect peaks and problems</h4>
</p>
</div>

<ul ng-if="current_dashboard" class="charts" ng-controller="CurrentDashboardCtrl">
<ul ng-if="current_dashboard" class="charts current-dashboard" ng-controller="CurrentDashboardCtrl">

<li class="{{ blueprint.type }}" ng-repeat="window in windows" ng-controller="ChartController">
<a ng-hide="chart" class="chart new" ng-click="addChart($index, config)"><i class="icon-plus"></i> Add Chart</a>
<a ng-hide="chart" href class="chart new" ng-click="addChart($index, config)"><i class="icon-plus"></i> Add Chart</a>

<div ng-if="chart" class="chart">
<div class="caption">
Expand All @@ -25,6 +25,7 @@ <h4>{{ chart.name }}</h4>

<div class="plot">
<div rickshaw="stats"></div>
<a rickshaw-maximizer />
</div>
</div>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/assets/all.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/app.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions app/assets/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/v2.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/v2/modal.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions app/dashboard/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,18 @@

<div ng-switch-default
class="selected-dashboard"
id="dashboard-{{ selected_dashboard }}"
rickshaw="dashboard"
rickshaw-renderer="area"
rickshaw-color="{{ color }}"
rickshaw-stroke-width="3"
></div>
</div>
id="dashboard-{{ selected_dashboard }}">
<div class="plot">
<div rickshaw="dashboard"
rickshaw-renderer="area"
rickshaw-color="{{ color }}"
rickshaw-stroke-width="3">
</div>
<a rickshaw-maximizer />
</div>
</div>

</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -95,7 +99,7 @@ <h4 class="dashboard-box-title">Latest traces <small><a href="traces">(View all)

<ol>
<li ng-repeat="trace in last_traces">
<a class='trace-link' ng-href="traces?select={{trace._id }}">
<a class='trace-link' ng-href="traces/{{ trace._id }}">
<span class="cell label-{{ trace.res.status | status }}">{{ trace.res.status }}</span>
<b class="cell http-method method-{{ trace.req.method | lowercase }}">{{
trace.req.method }}</b>
Expand Down
7 changes: 6 additions & 1 deletion app/dashboards/chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ <h3 ng-show="!editTitle" >{{ chart.name }}</h3>

<div class="modal-body">

<div class="preview" rickshaw="analytics"></div>
<div class="preview">
<div class="plot">
<div rickshaw="analytics"></div>
<a rickshaw-maximizer />
</div>
</div>

<fieldset class="row-fluid">
<div class="span3">
Expand Down
Loading

0 comments on commit 204cd9a

Please sign in to comment.