annotate index_page.py @ 74:177c0a2eab1e

prom annotations are ignored
author drewp@bigasterisk.com
date Fri, 03 May 2024 15:00:40 -0700
parents c3d13fab248e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
1 def makeIndexHtml(objPrefix, webRoot, webHost):
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
2 return f"""<!DOCTYPE html>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
3 <html>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
4 <head>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
5 <title>{objPrefix}</title>
57
b3addcd4486c extract css/js to their own files
drewp@bigasterisk.com
parents: 56
diff changeset
6 <link rel="stylesheet" href="index.css">
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
7 </head>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
8 <body>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
9 <h1>{objPrefix}</h1>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
10 <section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
11 <h2>Retentions</h2>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
12 <section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
13 <h3><code>recent</code></h3>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
14 <table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
15 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
16 <td><a href="recent/vmagent/">vmagent</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
17 <td><a href="recent/vmagent/metrics">metrics</a></td>
61
fb0519859645 better py configs
drewp@bigasterisk.com
parents: 57
diff changeset
18 <td><a href="recent/vmagent/targets">targets</a></td>
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
19 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
20 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
21 <td><a href="recent/vminsert/">vminsert</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
22 <td><a href="recent/vminsert/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
23 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
24 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
25 <td><a href="recent/vmstorage/">vmstorage</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
26 <td><a href="recent/vmstorage/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
27 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
28 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
29 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
30
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
31 <section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
32 <h3><code>forever</code></h3>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
33 <table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
34 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
35 <td><a href="forever/vmagent/">vmagent</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
36 <td><a href="forever/vmagent/metrics">metrics</a></td>
61
fb0519859645 better py configs
drewp@bigasterisk.com
parents: 57
diff changeset
37 <td><a href="forever/vmagent/targets">targets</a></td>
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
38 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
39 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
40 <td><a href="forever/vminsert/">vminsert</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
41 <td><a href="forever/vminsert/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
42 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
43 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
44 <td><a href="forever/vmstorage/">vmstorage</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
45 <td><a href="forever/vmstorage/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
46 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
47 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
48 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
49 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
50
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
51 <section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
52 <h2>vmselect</h2>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
53 <table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
54 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
55 <td><a href="vmselect/">vmselect</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
56 <td><a href="vmselect/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
57 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
58 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
59 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
60
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
61 <section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
62 <h2>vmui</h2>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
63 <table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
64 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
65 <td><a href="vmselect/0/vmui/vmui">vmui</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
66 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
67 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
68 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
69
72
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
70 <section>
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
71 <h2>vmalert</h2>
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
72 <table>
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
73 <tr>
73
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
74 <td><a href="vmalert/">vmalert</a></td>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
75 <td><a href="vmalert/metrics">metrics</a></td>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
76 </tr>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
77 </table>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
78 </section>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
79
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
80 <section>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
81 <h2>alertmanager</h2>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
82 <table>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
83 <tr>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
84 <td><a href="alertmanager/">alertmanager</a></td>
c3d13fab248e alertmanager deployment
drewp@bigasterisk.com
parents: 72
diff changeset
85 <td><a href="alertmanager/metrics">metrics</a></td>
72
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
86 </tr>
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
87 </table>
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
88 </section>
85d9dae18656 fix up vmalert k8s objs
drewp@bigasterisk.com
parents: 67
diff changeset
89
57
b3addcd4486c extract css/js to their own files
drewp@bigasterisk.com
parents: 56
diff changeset
90 <script src="index.js"></script>
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
91 <script>
57
b3addcd4486c extract css/js to their own files
drewp@bigasterisk.com
parents: 56
diff changeset
92 init("https://{webHost}{webRoot}/vmselect/select/0/prometheus");
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
93 </script>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
94 </body>
57
b3addcd4486c extract css/js to their own files
drewp@bigasterisk.com
parents: 56
diff changeset
95 </html>"""