-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve empty hosts, incorrect metrics and no filter views
- Loading branch information
Showing
8 changed files
with
215 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
frontend/src/container/InfraMonitoringHosts/HostsEmptyOrIncorrectMetrics.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { Typography } from 'antd'; | ||
|
||
export default function HostsEmptyOrIncorrectMetrics({ | ||
noData, | ||
incorrectData, | ||
}: { | ||
noData: boolean; | ||
incorrectData: boolean; | ||
}): JSX.Element { | ||
return ( | ||
<div className="hosts-empty-state-container"> | ||
<div className="hosts-empty-state-container-content"> | ||
<img className="eyes-emoji" src="/Images/eyesEmoji.svg" alt="eyes emoji" /> | ||
|
||
{noData && ( | ||
<div className="no-hosts-message"> | ||
<Typography.Title level={5} className="no-hosts-message-title"> | ||
No host metrics data received yet. | ||
</Typography.Title> | ||
|
||
<Typography.Text className="no-hosts-message-text"> | ||
Infrastructure monitoring requires the{' '} | ||
<a | ||
href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/system/system-metrics.md" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
OpenTelemetry system metrics | ||
</a> | ||
. Please refer to{' '} | ||
<a | ||
href="https://signoz.io/docs/userguide/hostmetrics" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
this | ||
</a>{' '} | ||
to learn how to send host metrics to SigNoz. | ||
</Typography.Text> | ||
</div> | ||
)} | ||
|
||
{incorrectData && ( | ||
<Typography.Text className="incorrect-metrics-message"> | ||
To see host metrics, upgrade to the latest version of SigNoz k8s-infra | ||
chart. Please contact support if you need help. | ||
</Typography.Text> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters