Skip to content

Commit

Permalink
quitado enlace grafana de app
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago21112001 committed Apr 27, 2024
1 parent be3e14d commit 3f3c483
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ services:
- gatewayservice
ports:
- "3000:3000"
environment:
GRAFANA_ENDPOINT: http://grafana:9091

prometheus:
image: prom/prometheus
Expand Down
Binary file removed webapp/public/images/monitoring.jpg
Binary file not shown.
8 changes: 0 additions & 8 deletions webapp/src/components/pages/AboutUS.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import './AboutUS.css';
import CardItem from '../CardItem';

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';
const grafanaEndpoint = process.env.GRAFANA_ENDPOINT || 'http://localhost:9091';

function AboutUS() {
return (
Expand All @@ -12,13 +11,6 @@ function AboutUS() {
<div className='cards__container'>
<div className='cards__wrapper'>
<ul className='cards__items'>
{/* Monitorización de la Aplicación */}
<CardItem
src='images/monitoring.jpg'
text='Técnicas y estrategias de monitorización aplicadas con grafana para controlar nuestra aplicación.'
label='Monitorización'
path={`${grafanaEndpoint}/dashboards`}
/>
{/* API Doc */}
<CardItem
src='images/api-logic.jpg'
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/pages/AboutUS.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ describe('AboutUS Component', () => {
// Usamos queryAllByTestId para seleccionar todos los elementos con el data-testid "card-item"
const cardItems = screen.queryAllByTestId('card-item');
// Verificamos que el número de elementos encontrados sea el esperado
expect(cardItems).toHaveLength(5); // Cambia el número esperado según cuántos CardItem esperas renderizar
expect(cardItems).toHaveLength(4); // Cambia el número esperado según cuántos CardItem esperas renderizar
});
});

0 comments on commit 3f3c483

Please sign in to comment.