Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU/Memory Lim/ Req dispalyed as thresholds in the graph. #50

Closed
wants to merge 48 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f6bc728
generated tar ball
schakrad Feb 9, 2023
90d8e0f
Removed the tar from dist and added in the manifests folder
schakrad Feb 9, 2023
b6185c1
Header change
schakrad Feb 13, 2023
fb930c5
Merge branch 'main' of https://github.com/argoproj-labs/argocd-extens…
schakrad Feb 13, 2023
1c00202
Merge branch 'argoproj-labs:main' into main
schakrad Feb 13, 2023
16b7030
Added comments and moved the file into Metrics folder and renamed it …
schakrad Feb 15, 2023
3b05f8d
rerge branch 'main' of https://github.com/schakrad/argocd-extension-m…
schakrad Feb 15, 2023
112f5f5
Modified the documentation for the functions in client.ts
schakrad Feb 15, 2023
58f4412
change in framing the comment
schakrad Feb 16, 2023
a336d39
Updated tar ball
schakrad Feb 16, 2023
5ce2f53
Merge branch 'argoproj-labs:main' into main
schakrad Feb 16, 2023
918bce4
Adding the applicationNameSpace in code
schakrad Feb 16, 2023
32bf3f7
Merge branch 'main' of https://github.com/schakrad/argocd-extension-m…
schakrad Feb 16, 2023
f73f026
Tar ball after addition of applicationNameSpace.
schakrad Feb 16, 2023
c07c14a
tar ball after adding ApplicationNameSpace
schakrad Feb 17, 2023
c4f7f82
code fix for the type error
schakrad Feb 17, 2023
094a785
tar ball after fixing the error
schakrad Feb 17, 2023
8f4642b
tar ball regeneration
schakrad Feb 17, 2023
32b48ae
Converting response to response.json()
schakrad Feb 17, 2023
98b4647
Final tar ball
schakrad Feb 17, 2023
b7eeeb2
Adding dependencies
schakrad Feb 17, 2023
d9c9c04
Final tar ball after adding dependency
schakrad Feb 17, 2023
07325e7
Merge branch 'argoproj-labs:main' into main
schakrad Mar 1, 2023
d6bc187
Reduce tar ball
schakrad Mar 29, 2023
fc6f772
Merge branch 'main' of https://github.com/schakrad/argocd-extension-m…
schakrad Mar 29, 2023
871b112
Tar ball reduction
schakrad Mar 29, 2023
5c9e4aa
Merge branch 'main' of https://github.com/schakrad/argocd-extension-m…
schakrad Mar 29, 2023
ada5e11
extension.js file pushed
schakrad Mar 29, 2023
f799f8c
tar ball regenerated
schakrad Mar 29, 2023
490bec7
Merge branch 'main' of https://github.com/schakrad/argocd-extension-m…
schakrad Jul 18, 2023
021171f
Merge branch 'main' of https://github.com/argoproj-labs/argocd-extens…
schakrad Jul 24, 2023
13a39b7
Merge branch 'main' of https://github.com/schakrad/argocd-extension-m…
schakrad Jul 24, 2023
c0ad56f
Fix for the UI bug
schakrad Aug 23, 2023
fa5f720
Removed space
schakrad Aug 23, 2023
99ad3e4
CPU/Mem Req&Lim changes
schakrad Aug 4, 2023
b1623f8
refactoring the code
schakrad Aug 7, 2023
f5f4b88
Refactored changes
schakrad Aug 7, 2023
efb0087
temporary changes
schakrad Aug 18, 2023
cf7222e
temp changes at chartWrapper
schakrad Aug 18, 2023
921351a
temp
schakrad Aug 18, 2023
67a0966
backend design changes and frontend UI changes
schakrad Aug 22, 2023
0c3255f
dashboard config changes
schakrad Aug 22, 2023
e786570
checkbox button shouldnot be shown when no data in thresholds
schakrad Aug 22, 2023
ca103cc
UI changes
schakrad Aug 23, 2023
fc41b45
UI changes
schakrad Aug 23, 2023
71e4402
changes done after review
schakrad Aug 27, 2023
29adf01
UI changes
schakrad Aug 28, 2023
f6b800a
Merge branch 'Requests_and_limits-2' of https://github.com/schakrad/a…
schakrad Aug 29, 2023
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
Expand Up @@ -344,7 +344,7 @@ export const AnomalyChart = ({
}: AnomalyChartProps) => {
const formatChartData = (data: any) => {
const formattedData: any = [];
data?.map((obj: any) => {
data?.data?.map((obj: any) => {
const metricObj: any = {
...obj,
name: obj?.metric && Object.values(obj?.metric).join(":"),
Expand Down Expand Up @@ -510,7 +510,6 @@ export const AnomalyChart = ({
});
return uEvents;
};
// const thisChartData = formatChartData(exampleData);
const thisChartData = formatChartData(chartData);

const scaleGradient = (
Expand All @@ -537,7 +536,7 @@ export const AnomalyChart = ({
return useMemo(
() => (
<>
<div style={{ display: "block", width: "100%" }}>
<div style={{ display: "block", width: "100%", margin: "0px 5px" }}>
<div>
<strong>{title}</strong>
</div>
Expand All @@ -549,7 +548,7 @@ export const AnomalyChart = ({
syncId={"o11yCharts"}
syncMethod={"value"}
layout={"horizontal"}
onMouseMove={(e: any) => {}}
onMouseMove={(e: any) => { }}
onMouseLeave={() => {
setHighlight({ ...highlight, [groupBy]: "" });
}}
Expand All @@ -559,6 +558,7 @@ export const AnomalyChart = ({
left: 40,
bottom: 5,
}}
style={{ border: '1px dashed #DEE6EB' }}
>
{/* <CartesianGrid strokeDasharray="3 3" /> */}
{Object.keys(uniqueEvents(events))?.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,44 @@
}

.chartYLabel {
opacity: .6;
opacity: 0.6;
}

.metrics-charts__legend_wrapper {
text-align: left;
font-size: .9em;
font-size: 0.9em;
position: absolute;
margin-left: 30px;
margin-left: 30px;
overflow-y: scroll;
z-index: 999;
background-color: rgb(0, 0, 0,.8);
background-color: rgb(0, 0, 0, 0.8);
color: #fafafa;
font-weight: 400;
border-radius: 6px;

.legend-content {
overflow-y: scroll;
overflow-y: auto;
max-height: 220px;
padding-right: 15px;

&::-webkit-scrollbar {
width: 0.5em;
height: 0.5em;
}

&::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.4);
border-radius: 3px;

&:hover {
background: rgba(255, 255, 255, 0.6);
}
}
}
.l-content {
display: flex;
white-space: nowrap;
.label {

}
}
.metrics-charts__value {
Expand All @@ -41,58 +55,56 @@

.metrics-charts__legend_wrapper {
display: none;
transition: .3s;
padding: .8em 1.2em !important;
transition: 0.3s;
padding: 0.8em 1.2em !important;
min-width: 50%;
left: 15%;
font-size: .85em;
font-size: 0.85em;
padding: 20px;
}

div:hover > div > .metrics-charts__legend_wrapper {
max-height: 500px;
display: block;

}

.legendLink {
color: #ffffff;
color: #ffffff;
cursor: pointer;
font-weight: 400;
&:hover {
color: #5d9fcb;
color: #5d9fcb;
}
}

.metrics-charts {

&__tooltip_text {
display: inline-block;
margin-right: 1em;
}

&__tooltip_wrapper {
padding: .5em;
padding: 0.5em;
text-align: left;
font-size: .95em;
font-size: 0.95em;
clear: both;
}

&__tooltip_title {
text-align: left;
font-size: .8em;
padding-bottom:.2em;
font-size: 0.8em;
padding-bottom: 0.2em;
text-transform: uppercase;
color: #ddd;
}

&__badge {
padding: .25em .5em .09em .5em;
padding: 0.25em 0.5em 0.09em 0.5em;
background-color: #555;
border-radius:100px;
font-size: .8em;
border-radius: 100px;
font-size: 0.8em;
display: inline-block;
margin: auto .1em;
margin: auto 0.1em;
line-height: 1em;
float: right;
margin-top: 2px;
Expand All @@ -101,7 +113,6 @@ div:hover > div > .metrics-charts__legend_wrapper {
&__legend_title {
text-transform: uppercase;
}

}

.metrics-charts__tooltip {
Expand Down Expand Up @@ -148,10 +159,33 @@ div:hover > div > .metrics-charts__legend_wrapper {
content: " ";
position: absolute;
left: 40px;
top:0;
top: 0;
transform: translateY(-99%);
border-top: none;
border-right: 7px solid transparent;
border-left: 7px solid transparent;
border-bottom: 7px solid rgba(0, 0, 0, 0.8);
}
}

.label-container {
display: flex;
align-items: center;
}

.checkbox-container {
vertical-align: middle;
margin-right: 5px;
}

.graph-container {
border: 1px dashed #dee6eb;
margin: 2px 0;
}

.input-container {
display: flex;
font-size: 16px;
margin-left: 50px;
margin-top: 5px;
letter-spacing: 0.5px;
}
Loading
Loading