Skip to content
Closed
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

BlockStorageContextualMetrics feature flag added ([#13313](https://github.com/linode/manager/pull/13313))
4 changes: 4 additions & 0 deletions packages/manager/src/dev-tools/FeatureFlagTool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ const options: { flag: keyof Flags; label: string }[] = [
label: 'VM Host Maintenance Policy',
},
{ flag: 'volumeSummaryPage', label: 'Volume Summary Page' },
{
flag: 'blockStorageContextualMetrics',
label: 'Block Storage Contextual Metrics',
},
{ flag: 'objSummaryPage', label: 'OBJ Summary Page' },
{ flag: 'vpcIpv6', label: 'VPC IPv6' },
];
Expand Down
1 change: 1 addition & 0 deletions packages/manager/src/featureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export interface Flags {
apl: boolean;
aplGeneralAvailability: boolean;
aplLkeE: boolean;
blockStorageContextualMetrics: boolean;
blockStorageEncryption: boolean;
blockStorageVolumeLimit: boolean;
cloudManagerDesignUpdatesBanner: DesignUpdatesBannerFlag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import { VolumeDetailsHeader } from './VolumeDetailsHeader';
export const VolumeDetails = () => {
const navigate = useNavigate();

const { volumeSummaryPage, aclpServices } = useFlags();
const { volumeSummaryPage, aclpServices, blockStorageContextualMetrics } =
useFlags();
const { volumeId } = useParams({ from: '/volumes/$volumeId' });
const { data: volume, isLoading, error } = useVolumeQuery(volumeId);
const { tabs, handleTabChange, tabIndex } = useTabs([
Expand All @@ -27,7 +28,9 @@ export const VolumeDetails = () => {
{
to: '/volumes/$volumeId/metrics',
title: 'Metrics',
hide: !aclpServices?.blockstorage?.metrics?.enabled,
hide:
!aclpServices?.blockstorage?.metrics?.enabled ||
!blockStorageContextualMetrics,
chip: aclpServices?.blockstorage?.metrics?.beta ? <BetaChip /> : null,
},
]);
Expand Down