annotate next/index_page.py @ 57:b3addcd4486c

extract css/js to their own files (patch is contaminated with some parameterization code)
author drewp@bigasterisk.com
date Fri, 26 Apr 2024 15:35:23 -0700
parents a72c47973aa4
children fb0519859645
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>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
18 </tr>
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 <td><a href="recent/vminsert/">vminsert</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
21 <td><a href="recent/vminsert/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
22 </tr>
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 <td><a href="recent/vmstorage/">vmstorage</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
25 <td><a href="recent/vmstorage/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
26 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
27 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
28 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
29
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
30 <section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
31 <h3><code>forever</code></h3>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
32 <table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
33 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
34 <td><a href="forever/vmagent/">vmagent</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
35 <td><a href="forever/vmagent/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
36 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
37 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
38 <td><a href="forever/vminsert/">vminsert</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
39 <td><a href="forever/vminsert/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
40 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
41 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
42 <td><a href="forever/vmstorage/">vmstorage</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
43 <td><a href="forever/vmstorage/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
44 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
45 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
46 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
47 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
48
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 <h2>vmselect</h2>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
51 <table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
52 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
53 <td><a href="vmselect/">vmselect</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
54 <td><a href="vmselect/metrics">metrics</a></td>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
55 </tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
56 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
57 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
58
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 <h2>vmui</h2>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
61 <table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
62 <tr>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
63 <td><a href="vmselect/0/vmui/vmui">vmui</a></td>
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 </table>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
66 </section>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
67
57
b3addcd4486c extract css/js to their own files
drewp@bigasterisk.com
parents: 56
diff changeset
68 <script src="index.js"></script>
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
69 <script>
57
b3addcd4486c extract css/js to their own files
drewp@bigasterisk.com
parents: 56
diff changeset
70 init("https://{webHost}{webRoot}/vmselect/select/0/prometheus");
56
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
71 </script>
a72c47973aa4 parameterize the python version
drewp@bigasterisk.com
parents:
diff changeset
72 </body>
57
b3addcd4486c extract css/js to their own files
drewp@bigasterisk.com
parents: 56
diff changeset
73 </html>"""