fix: metrics-collector /cron/metrics route + UI API path, croned-pkg URL updated, image v0.1.1
This commit is contained in:
@@ -24,6 +24,7 @@ func main() {
|
|||||||
_, _ = w.Write([]byte("ok\n"))
|
_, _ = w.Write([]byte("ok\n"))
|
||||||
})
|
})
|
||||||
mux.HandleFunc("/metrics", srv.HandleMetrics)
|
mux.HandleFunc("/metrics", srv.HandleMetrics)
|
||||||
|
mux.HandleFunc("/cron/metrics", srv.HandleMetrics)
|
||||||
mux.Handle("/", ui.Handler())
|
mux.Handle("/", ui.Handler())
|
||||||
|
|
||||||
httpSrv := &http.Server{
|
httpSrv := &http.Server{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: metrics-collector
|
- name: metrics-collector
|
||||||
image: naeel/metrics-collector:v0.1.0
|
image: naeel/metrics-collector:v0.1.1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8091
|
- containerPort: 8091
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -228,7 +228,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const API = '/metrics';
|
const API = '/cron/metrics';
|
||||||
const summaryEl = document.getElementById('summary');
|
const summaryEl = document.getElementById('summary');
|
||||||
const historyBody = document.getElementById('history-body');
|
const historyBody = document.getElementById('history-body');
|
||||||
const lastUpdatedEl = document.getElementById('last-updated');
|
const lastUpdatedEl = document.getElementById('last-updated');
|
||||||
|
|||||||
Reference in New Issue
Block a user