Skip to content

Commit 8a8d18b

Browse files
committed
Changed the grafana url formatting
1 parent ecda434 commit 8a8d18b

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

app/containers/AWSGraphsContainer.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const AwsGraphsContainer: React.FC = React.memo(props => {
9292
}
9393
};
9494

95-
95+
console.log(awsUrl)
9696

9797
return (
9898
<div className="AWS-container">
@@ -125,8 +125,12 @@ const AwsGraphsContainer: React.FC = React.memo(props => {
125125
)}
126126
{typeOfService === 'AWS/EKS' && (
127127
<div>
128-
<iframe src={`${awsUrl}/d/8jYcvsBVz/kubernetes-cluster-monitoring-via-prometheus?orgId=1&refresh=10s&theme=light&kiosk`} width="1300" height="1300" ></iframe>
129-
<iframe src={`${awsUrl}/d/jPEGwyfVk/opencost?orgId=1&theme=light&kiosk`} width="1300" height="1300" ></iframe>
128+
{/* <iframe src={`${awsUrl}/d/8jYcvsBVz/kubernetes-cluster-monitoring-via-prometheus?orgId=1&refresh=10s&theme=light&kiosk`} width="1300" height="1300" ></iframe> */}
129+
{/* <iframe src={`${awsUrl}/d/jPEGwyfVk/opencost?orgId=1&theme=light&kiosk`} width="1300" height="1300" ></iframe> */}
130+
131+
<iframe src={`http://a9921cff905094aa0a45e6e330684283-98913978.us-east-2.elb.amazonaws.com/d/8jYcvsBVz/kubernetes-cluster-monitoring-via-prometheus?orgId=1&refresh=10s&theme=light&kiosk`} width="1300" height="1300" ></iframe>
132+
<iframe src={`http://a9921cff905094aa0a45e6e330684283-98913978.us-east-2.elb.amazonaws.com/d/jPEGwyfVk/opencost?orgId=1&theme=light&kiosk`} width="1300" height="1300" ></iframe>
133+
130134
{/* <GrafanaIFrame {...awsAppInfo}/> */}
131135
</div>
132136
)}

electron/routes/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ ipcMain.on(
571571
message.sender.send('awsAppInfoResponse', JSON.stringify(response));
572572
} catch (err) {
573573
console.log('Error in awsAppInfoRequest', message);
574-
message.sender.send('awsAppInfoResponse', { typeOfService: '', region: '' });
574+
message.sender.send('awsAppInfoResponse', { typeOfService: '', region: '' , awsUrl: ''});
575575
}
576576
}
577577
);

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"resolveJsonModule": true,
1717
"skipLibCheck": true,
1818
"noEmitOnError": false,
19-
"types": ["jest", "node", "@testing-library/jest-dom"],
19+
// "types": ["jest", "node", "@testing-library/jest-dom"],
20+
"types": ["jest", "node"]
2021
},
2122
"exclude": [
2223
"node_modules",

0 commit comments

Comments
 (0)