Skip to content

Commit cf8fa40

Browse files
authored
Merge pull request #252 from scalar-labs/add-log-viewer-for-monitor (#268)
1 parent 960ce14 commit cf8fa40

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

modules/universal/monitor/provision/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,23 @@ services:
5656
- prometheus
5757
- alertmanager
5858
- grafana
59+
60+
tailon:
61+
image: port22/tailon:latest
62+
ports:
63+
- 8080:8080
64+
volumes:
65+
- /log:/log
66+
- ./tailon/config.yaml:/tailon/config.yaml
67+
command:
68+
- "/usr/local/bin/tailon"
69+
- "-b"
70+
- "0.0.0.0:8080"
71+
- "-t"
72+
- "9999"
73+
- "-a"
74+
- "-f"
75+
- "/log/*/*.log"
76+
- "-m"
77+
- "tail"
78+
restart: always

modules/universal/monitor/provision/nginx/html_templates/index.html.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
<li><a class="service" name="grafana" target="frame-grafana" href="http://grafana.localhost.scalar-labs.com:{{ dashboard_local_forwarding_port }}/">Grafana</a></li>
1919
<li><a class="service" name="prometheus" target="frame-prometheus" href="http://prometheus.localhost.scalar-labs.com:{{ dashboard_local_forwarding_port }}/">Prometheus</a></li>
2020
<li><a class="service" name="alertmanager" target="frame-alertmanager" href="http://alertmanager.localhost.scalar-labs.com:{{ dashboard_local_forwarding_port }}/">Alertmanager</a></li>
21+
<li><a class="service" name="tailon" target="frame-tailon" href="http://tailon.localhost.scalar-labs.com:{{ dashboard_local_forwarding_port }}/">Tailon</a></li>
2122
</ul>
2223
</nav>
2324
</aside>
2425
<main id="content">
2526
<iframe class="frame" name="frame-grafana"></iframe>
2627
<iframe class="frame" name="frame-prometheus"></iframe>
2728
<iframe class="frame" name="frame-alertmanager"></iframe>
29+
<iframe class="frame" name="frame-tailon"></iframe>
2830
</main>
2931
</div>
3032
<script src="./dashboard.js"></script>

modules/universal/monitor/provision/nginx/proxies.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ server {
1818
proxy_pass http://alertmanager:9093;
1919
}
2020
}
21+
22+
server {
23+
server_name tailon.localhost.scalar-labs.com;
24+
location / {
25+
proxy_pass http://tailon:8080;
26+
}
27+
}

0 commit comments

Comments
 (0)