Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 0 additions & 117 deletions web_ui/frontend/app/cache/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,123 +39,6 @@ export default function Home() {
<Grid item xs={12} lg={6}>
<FederationOverview />
</Grid>
<Grid item xs={12} lg={6}>
<Box sx={{ backgroundColor: '#F6F6F6', borderRadius: '1rem' }} p={2}>
<Typography variant='h4' mb={1}>
Storage
</Typography>
<Box minHeight={'200px'}>
<LineGraph
duration={TimeDuration.fromString('7d')}
resolution={TimeDuration.fromString('3h')}
metrics={[
'xrootd_storage_volume_bytes{ns="/cache",server_type="cache",type="total"}',
'xrootd_storage_volume_bytes{ns="/cache",server_type="cache",type="free"}',
]}
boxProps={{
maxHeight: '400px',
flexGrow: 1,
justifyContent: 'center',
display: 'flex',
bgcolor: 'white',
borderRadius: 2,
p: 1,
}}
options={{
scales: {
x: {
type: 'time',
time: {
round: 'second',
minUnit: 'minute',
},
},
},
plugins: {
zoom: {
zoom: {
drag: {
enabled: true,
},
mode: 'x',
// TODO - Implement smart update on zoom: onZoom: (chart) => console.log(chart)
},
},
},
}}
datasetOptions={[
{
label: 'Total Storage (Gigabytes)',
borderColor: '#000000',
},
{ label: 'Free Storage (Gigabytes)', borderColor: '#54ff80' },
]}
datasetTransform={(dataset) => {
dataset.data = dataset.data.map((p) => {
let { x, y } = p as DataPoint;
y = y / 10 ** 9;
return { x: x, y: y };
});

return dataset;
}}
/>
</Box>
</Box>
</Grid>
<Grid item xs={12} lg={6}>
<Box sx={{ backgroundColor: '#F6F6F6', borderRadius: '1rem' }} p={2}>
<Typography variant='h4' mb={1}>
Transfer Rate
</Typography>
<Box minHeight={'200px'}>
<RateGraph
rate={TimeDuration.fromString('3h')}
duration={TimeDuration.fromString('7d')}
resolution={TimeDuration.fromString('3h')}
metrics={[
'xrootd_server_bytes{direction="rx"}',
'xrootd_server_bytes{direction="tx"}',
]}
boxProps={{
maxHeight: '400px',
flexGrow: 1,
justifyContent: 'center',
display: 'flex',
bgcolor: 'white',
borderRadius: 2,
p: 1,
}}
options={{
scales: {
x: {
type: 'time',
time: {
round: 'second',
minUnit: 'minute',
},
},
},
plugins: {
zoom: {
zoom: {
drag: {
enabled: true,
},
mode: 'x',
// TODO - Implement smart update on zoom: onZoom: (chart) => console.log(chart)
},
},
},
}}
datasetOptions={[
{ label: 'Bytes Received (Bps)', borderColor: '#0071ff' },
{ label: 'Bytes Sent (Bps)', borderColor: '#54ff80' },
]}
/>
</Box>
</Box>
</Grid>
</Grid>
</Box>
);
Expand Down
56 changes: 0 additions & 56 deletions web_ui/frontend/app/origin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,62 +87,6 @@ export default function Home() {
</Box>
<DataExportTable />
</Grid>
<Grid item xs={12} lg={6}>
<Box
sx={{ backgroundColor: '#F6F6F6', borderRadius: '1rem' }}
p={2}
>
<Typography variant='h4' mb={1}>
Transfer Rate
</Typography>
<Box minHeight={'200px'}>
<RateGraph
rate={TimeDuration.fromString('3h')}
duration={TimeDuration.fromString('7d')}
resolution={TimeDuration.fromString('3h')}
metrics={[
'xrootd_server_bytes{direction="rx"}',
'xrootd_server_bytes{direction="tx"}',
]}
boxProps={{
maxHeight: '400px',
flexGrow: 1,
justifyContent: 'center',
display: 'flex',
bgcolor: 'white',
borderRadius: 2,
p: 1,
}}
options={{
scales: {
x: {
type: 'time',
time: {
round: 'second',
minUnit: 'minute',
},
},
},
plugins: {
zoom: {
zoom: {
drag: {
enabled: true,
},
mode: 'x',
// TODO - Implement smart update on zoom: onZoom: (chart) => console.log(chart)
},
},
},
}}
datasetOptions={[
{ label: 'Bytes Received (Bps)', borderColor: '#0071ff' },
{ label: 'Bytes Sent (Bps)', borderColor: '#54ff80' },
]}
/>
</Box>
</Box>
</Grid>
<Grid item xs={12} lg={6}>
<FederationOverview />
</Grid>
Expand Down
Loading