Skip to content

Commit

Permalink
Merge pull request #38 from tbeerman/add_dashboards_to_dev
Browse files Browse the repository at this point in the history
add example dashboard for Kibana and Grafana to dev image
  • Loading branch information
tbeerman authored Oct 18, 2019
2 parents d92ea97 + e4b2034 commit 9125d7f
Show file tree
Hide file tree
Showing 8 changed files with 743 additions and 5 deletions.
14 changes: 10 additions & 4 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,16 @@ RUN chmod +x /usr/local/bin/logshow
COPY restartweb /usr/local/bin/restartweb
RUN chmod +x /usr/local/bin/restartweb

COPY run_daemons.sh /tools/run_daemons.sh
RUN chmod +x /tools/run_daemons.sh
COPY create_monit_data.sh /tools/create_monit_data.sh
RUN chmod +x /tools/create_monit_data.sh
COPY run_daemons /usr/local/bin/run_daemons
RUN chmod +x /usr/local/bin/run_daemons
COPY create_monit_data /usr/local/bin/create_monit_data
RUN chmod +x /usr/local/bin/create_monit_data

RUN mkdir $RUCIOHOME/etc/dashboards
COPY dashboards/* $RUCIOHOME/etc/dashboards/
RUN chmod +x $RUCIOHOME/etc/dashboards/import_dashboards.sh
COPY monit-entrypoint.sh /monit-entrypoint.sh
RUN chmod +x /monit-entrypoint.sh

EXPOSE 443

Expand Down
9 changes: 8 additions & 1 deletion dev/create_monit_data.sh → dev/create_monit_data
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

rses=("XRD1" "XRD2" "XRD3")

activities=("Express" "Functional Test" "User Subscriptions")

lifetime=300

count=1
Expand All @@ -19,7 +21,12 @@ do
rm $filename
for dstrse in ${rses[@]}; do
if [ $srcrse = $dstrse ]; then continue; fi
rucio add-rule --activity 'User Subscriptions' --lifetime $lifetime --source-replica-expression $srcrse test:$filename 1 $dstrse
if [ $((1 + RANDOM % 10)) = 1 ]; then
path=$(rucio list-file-replicas test:$filename --pfns)
gfal-rm $path
fi
index=$(($RANDOM % 3))
rucio add-rule --activity "${activities[$index]}" --lifetime $lifetime --source-replica-expression $srcrse test:$filename 1 $dstrse
sleep 10
done
done
Expand Down
Loading

0 comments on commit 9125d7f

Please sign in to comment.