Skip to content

Commit c5ed6e1

Browse files
committed
fix some visuals
1 parent 48535a9 commit c5ed6e1

3 files changed

Lines changed: 301 additions & 29 deletions

File tree

‎src/main/resources/static/azure-diagnostics.html‎

Lines changed: 137 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,133 @@
66
<title>Azure Diagnostics - Performance Problem Simulator - Java 21</title>
77
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
88
<link rel="stylesheet" href="/css/styles.css">
9+
<style>
10+
/* Card-based Documentation Styles - Matching Deployment Page */
11+
.card {
12+
background: var(--color-card);
13+
border-radius: var(--radius-md);
14+
padding: 1.5rem 2rem;
15+
margin-bottom: 1.5rem;
16+
box-shadow: var(--shadow-sm);
17+
scroll-margin-top: 80px;
18+
border: 1px solid #d0d0d0;
19+
}
20+
21+
.card h2 {
22+
color: var(--color-primary);
23+
border-bottom: 2px solid var(--color-bg);
24+
padding-bottom: 0.5rem;
25+
margin-bottom: 1rem;
26+
}
27+
28+
.card h3 {
29+
color: var(--color-text);
30+
margin-top: 1.5rem;
31+
margin-bottom: 0.75rem;
32+
}
33+
34+
.card h4 {
35+
color: var(--color-text-muted);
36+
margin-top: 1rem;
37+
margin-bottom: 0.5rem;
38+
}
39+
40+
.card p, .card li {
41+
line-height: 1.6;
42+
color: var(--color-text-muted);
43+
}
44+
45+
.card ul, .card ol {
46+
margin: 0.5rem 0 1rem 1.5rem;
47+
}
48+
49+
.card li {
50+
margin-bottom: 0.25rem;
51+
}
52+
53+
pre {
54+
background: #1e1e1e;
55+
color: #d4d4d4;
56+
border-radius: var(--radius-md);
57+
padding: 1rem;
58+
overflow-x: auto;
59+
font-size: 0.85rem;
60+
margin: 1rem 0;
61+
font-family: 'Cascadia Code', 'Consolas', monospace;
62+
}
63+
64+
code {
65+
background: rgba(0,0,0,0.05);
66+
padding: 0.2rem 0.4rem;
67+
border-radius: var(--radius-sm);
68+
font-size: 0.9em;
69+
font-family: 'Cascadia Code', 'Consolas', monospace;
70+
color: var(--color-danger);
71+
}
72+
73+
pre code {
74+
background: none;
75+
padding: 0;
76+
color: inherit;
77+
}
78+
79+
table {
80+
width: 100%;
81+
border-collapse: collapse;
82+
margin: 1rem 0;
83+
font-size: 0.9rem;
84+
}
85+
86+
th, td {
87+
border: 1px solid var(--color-bg);
88+
padding: 0.75rem;
89+
text-align: left;
90+
}
91+
92+
th {
93+
background: var(--color-bg);
94+
font-weight: 600;
95+
color: var(--color-text);
96+
}
97+
98+
.note {
99+
background: rgba(231, 111, 0, 0.1);
100+
border-left: 4px solid var(--color-primary);
101+
padding: 1rem;
102+
margin: 1rem 0;
103+
border-radius: 0 var(--radius-md) var(--radius-md) 0;
104+
}
105+
106+
.note h4 {
107+
color: var(--color-primary-dark);
108+
margin-top: 0;
109+
margin-bottom: 0.5rem;
110+
}
111+
112+
.note p {
113+
margin: 0;
114+
color: var(--color-text);
115+
}
116+
117+
.warning {
118+
background: rgba(209, 52, 56, 0.1);
119+
border-left: 4px solid var(--color-danger);
120+
padding: 1rem;
121+
margin: 1rem 0;
122+
border-radius: 0 var(--radius-md) var(--radius-md) 0;
123+
}
124+
125+
.warning h4 {
126+
color: var(--color-danger);
127+
margin-top: 0;
128+
margin-bottom: 0.5rem;
129+
}
130+
131+
.warning p {
132+
margin: 0;
133+
color: var(--color-text);
134+
}
135+
</style>
9136
</head>
10137
<body class="page-secondary">
11138
<header>
@@ -77,12 +204,12 @@ <h1><span class="doc-icon">☁️</span> Azure Diagnostics</h1>
77204

78205
<div class="doc-layout">
79206
<main class="doc-content">
80-
<section id="overview">
207+
<section id="overview" class="card">
81208
<h2>Overview</h2>
82209
<p>This guide explains how to use Azure diagnostic tools to analyze performance issues simulated by this application.</p>
83210
</section>
84211

85-
<section id="simulation-ids">
212+
<section id="simulation-ids" class="card">
86213
<h2>🔗 Simulation ID Correlation</h2>
87214

88215
<p>Every simulation instance is assigned a unique Simulation ID (GUID) that enables end-to-end correlation
@@ -174,7 +301,7 @@ <h4>💡 Tip</h4>
174301
</div>
175302
</section>
176303

177-
<section id="applens">
304+
<section id="applens" class="card">
178305
<h2>AppLens Integration</h2>
179306

180307
<p>This application is designed to work with Azure AppLens by sending health probes every 100ms
@@ -192,7 +319,7 @@ <h3>What AppLens Can Detect</h3>
192319
</ul>
193320
</section>
194321

195-
<section id="azure-monitor">
322+
<section id="azure-monitor" class="card">
196323
<h2>Azure Monitor Metrics</h2>
197324

198325
<p>Key metrics to watch in Azure Monitor when running simulations:</p>
@@ -214,7 +341,7 @@ <h3>JVM Metrics (if App Insights enabled)</h3>
214341
</ul>
215342
</section>
216343

217-
<section id="app-insights">
344+
<section id="app-insights" class="card">
218345
<h2>Application Insights</h2>
219346

220347
<p>If Application Insights is configured, you can use these features:</p>
@@ -244,7 +371,7 @@ <h3>Application Map</h3>
244371
</ol>
245372
</section>
246373

247-
<section id="diagnose-solve">
374+
<section id="diagnose-solve" class="card">
248375
<h2>Diagnose and Solve Problems</h2>
249376

250377
<p>Azure App Service provides built-in diagnostic tools:</p>
@@ -267,7 +394,7 @@ <h3>Diagnostic Tools</h3>
267394
</ul>
268395
</section>
269396

270-
<section id="kql-queries">
397+
<section id="kql-queries" class="card">
271398
<h2>Log Analytics / KQL Queries</h2>
272399

273400
<p>Useful KQL queries for analyzing simulation effects:</p>
@@ -294,7 +421,7 @@ <h3>Memory Usage Pattern</h3>
294421
| order by TimeGenerated desc</code></pre>
295422
</section>
296423

297-
<section id="java-diagnostics">
424+
<section id="java-diagnostics" class="card">
298425
<h2>Java-Specific Diagnostics</h2>
299426

300427
<h3>Enable JMX for Remote Monitoring</h3>
@@ -335,7 +462,7 @@ <h3>Reading Thread Dumps: Connection Pool Exhaustion</h3>
335462
<p>Many threads in TIMED_WAITING on pool acquisition = connection pool exhaustion. Increase pool size or reduce query hold time.</p>
336463
</section>
337464

338-
<section id="mapping">
465+
<section id="mapping" class="card">
339466
<h2>Simulation → Diagnostic Mapping</h2>
340467

341468
<table style="width:100%; border-collapse: collapse; margin: 1rem 0;">
@@ -376,7 +503,7 @@ <h2>Simulation → Diagnostic Mapping</h2>
376503
</table>
377504
</section>
378505

379-
<section id="best-practices">
506+
<section id="best-practices" class="card">
380507
<h2>Best Practices</h2>
381508

382509
<div class="note">

‎src/main/resources/static/azure-load-testing.html‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -664,22 +664,20 @@ <h2>📚 Related Resources</h2>
664664
window.addEventListener('scroll', updateActiveTocLink);
665665
updateActiveTocLink(); // Initial call
666666

667-
// Fetch and display SKU
668-
async function fetchAzureSku() {
667+
// Load SKU info
668+
async function loadSkuInfo() {
669669
try {
670-
const response = await fetch('/api/sku');
671-
if (response.ok) {
672-
const data = await response.json();
673-
const skuElement = document.getElementById('sku-badge');
674-
if (skuElement) {
675-
skuElement.textContent = `SKU: ${data.sku}`;
676-
}
670+
const response = await fetch('/api/health/environment');
671+
const data = await response.json();
672+
const skuBadge = document.getElementById('sku-badge');
673+
if (skuBadge) {
674+
skuBadge.textContent = data.isAzure ? `SKU: ${data.sku}` : 'SKU: Local';
677675
}
678676
} catch (error) {
679-
console.error('Failed to fetch Azure SKU', error);
677+
console.log('Could not load SKU info');
680678
}
681679
}
682-
fetchAzureSku();
680+
loadSkuInfo();
683681

684682
// Fetch and display build info and GitHub repo
685683
async function fetchBuildInfo() {

0 commit comments

Comments
 (0)