Skip to content

Commit

Permalink
added github redirect in client and added api endpoint for accesing d…
Browse files Browse the repository at this point in the history
…ashboard
  • Loading branch information
HetavShah committed Jul 12, 2023
1 parent 1ac32e2 commit 998b302
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
8 changes: 7 additions & 1 deletion client/src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ const Footer = () => {
<footer>
<Container>
<Row>
<Col className="text-center py-3">Copyright &copy; KarKaushal</Col>
<Col className="text-center py-3">
<div>
Copyright &copy; KarKaushal
</div>
<a href="https://www.github.com/HetavShah/karkaushal">Github</a>
</Col>
{/* <Col className="text-left py-3"><a href="https://www.github.com/HetavShah/karkaushal">Github</a></Col> */}
</Row>
</Container>
</footer>
Expand Down
9 changes: 1 addition & 8 deletions infra/k8s-prod/ingress-srv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,13 @@ spec:
name: products-srv
port:
number: 3000
- path: /monitor/scrap
- path: /monitor/?(.*)
pathType: Prefix
backend:
service:
name: monitor-srv
port:
number: 3000
- path: /monitor/grafana/?(.*)
pathType: Prefix
backend:
service:
name: express-monitor-grafana
port:
number: 80
- path: /api/orders/?(.*)
pathType: Prefix
backend:
Expand Down
7 changes: 3 additions & 4 deletions infra/k8s/express-monitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ prometheus:


grafana:
server:
root_url:https://www.karkaushal.in/monitor/grafana
ingress:
enabled: true
service:
type: NodePort

2 changes: 1 addition & 1 deletion monitor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ app.get('/monitor/scrap', async (req: Request, res: Response) => {
});

app.get('/monitor/dashboard',async(req,res)=>{

res.redirect('http://34.67.43.134/d/PTSqcpJWk/nodejs-application-dashboard?orgId=1&from=1689180582765&to=1689184182765');
})

app.listen(port,()=>{
Expand Down

0 comments on commit 998b302

Please sign in to comment.