Compare commits

...

3 Commits

3 changed files with 119 additions and 74 deletions
+28 -1
View File
@@ -5,8 +5,14 @@
}
adnova.itqdev.xyz {
handle_path /health/* {
@healthPath path /health /health/*
handle @healthPath {
import basic-auth
reverse_proxy http://backend:8080
}
handle_path /static/* {
reverse_proxy http://backend-staticfiles:80
}
reverse_proxy http://backend:8080
@@ -16,6 +22,7 @@ admin.adnova.itqdev.xyz {
import basic-auth
root * /var/www/admin
file_server
}
loadtest.adnova.itqdev.xyz {
@@ -27,3 +34,23 @@ loadtest.adnova.itqdev.xyz {
grafana.adnova.itqdev.xyz {
reverse_proxy http://grafana:3000
}
pgadmin.adnova.itqdev.xyz {
reverse_proxy http://pgadmin:80
}
zipkin.adnova.itqdev.xyz {
import basic-auth
reverse_proxy http://zipkin:9411
}
prometheus.adnova.itqdev.xyz {
import basic-auth
reverse_proxy http://prometheus:9090
}
minio.adnova.itqdev.xyz {
reverse_proxy http://minio:9000
}
+46 -42
View File
@@ -34,36 +34,19 @@
{
name: "Gitea Repository",
link: "https://git.itqdev.xyz/PROD.2025/AdNova",
description: "Main monorepo."
description: "Main monorepo on Gitea."
},
{
name: "Jira Project Board",
link: "https://jira.example.com/project",
description: "Task tracking and project management."
name: "Rest API Docs",
link: "https://adnova.itqdev.xyz/docs",
description: "Rest API Docs on Swagger."
},
{
name: "Jenkins CI/CD",
link: "https://jenkins.example.com",
username: "ci_admin",
password: "jenkins_pass",
description: "Continuous Integration and Deployment pipelines."
}
]
},
{
category: "Cloud Platforms",
items: [
{
name: "AWS Console",
link: "https://console.aws.amazon.com",
username: "aws_root",
password: "aws_super_secret",
description: "Access to AWS cloud services."
},
{
name: "Google Cloud Console",
link: "https://console.cloud.google.com",
description: "Access to Google Cloud Platform services."
name: "Django Admin",
link: "https://adnova.itqdev.xyz/admin/",
username: "admin",
password: "admin",
description: "Django Admin panel."
}
]
},
@@ -72,20 +55,48 @@
items: [
{
name: "Grafana",
link: "https://grafana.example.com",
link: "https://grafana.adnova.itqdev.xyz",
username: "admin",
password: "proooooood",
description: "Real-time system metrics and dashboards."
},
{
name: "Kibana Logs",
link: "https://kibana.example.com",
description: "Centralized log management and analysis."
name: "Prometheus",
link: "https://prometheus.adnova.itqdev.xyz",
username: "admin",
password: "kit2025_observability",
description: "Real-time system metrics and scrape targets."
},
{
name: "Zipkin",
link: "https://zipkin.adnova.itqdev.xyz",
username: "admin",
password: "kit2025_observability",
description: "Latest traces from production."
},
{
name: "Django Silk",
link: "https://adnova.itqdev.xyz/silk/",
username: "admin",
password: "admin",
description: "App profiles and performance info in production, need to authenticate first as staff in Django Admin."
},
{
name: "Adnova Alerts",
link: "https://t.me/adnova_alerts",
description: "Telegram channel where alerts are posted."
},
{
name: "Healthcheck",
link: "https://adnova.itqdev.xyz/health",
username: "admin",
password: "kit2025_observability",
description: "Summary of integration status between services."
},
{
name: "Uptime-Kuma Dashboard",
link: "https://status.adnova.itqdev.xyz",
description: "External monitoring of AdNova."
}
]
},
@@ -93,18 +104,11 @@
category: "Databases",
items: [
{
name: "Production DB Admin",
link: "https://dbadmin.example.com/prod",
username: "db_prod_admin",
password: "db_prod_secure_pass",
description: "Direct access to production database."
},
{
name: "Staging DB Admin",
link: "https://dbadmin.example.com/staging",
username: "db_stage_user",
password: "db_stage_pass",
description: "Access to staging database for testing."
name: "Pgadmin",
link: "https://pgadmin.adnova.itqdev.xyz",
username: "admin@mail.com",
password: "password",
description: "Access to production database."
}
]
}
+45 -31
View File
@@ -263,47 +263,61 @@
function setupWebSocket ()
{
const wsUrl = 'ws://' + window.location.host + '/ws'
ws = new WebSocket( wsUrl )
let wsUrl = 'ws://' + window.location.host + '/ws'
let triedSecure = false
ws.onopen = () => console.log( 'WebSocket connected' )
ws.onclose = () => console.log( 'WebSocket disconnected' )
ws.onerror = ( error ) => console.error( 'WebSocket error:', error )
ws.onmessage = ( event ) =>
function connect ( url )
{
const data = JSON.parse( event.data )
if ( typeof data.isRunning !== 'undefined' )
ws = new WebSocket( url )
ws.onopen = () => console.log( 'WebSocket connected' )
ws.onclose = () => console.log( 'WebSocket disconnected' )
ws.onerror = ( error ) =>
{
if ( data.isRunning )
console.error( 'WebSocket error:', error )
if ( !triedSecure )
{
isRunning = true
startStopBtn.textContent = 'Stop Test'
startStopBtn.classList.remove( 'bg-green-600', 'hover:bg-green-500' )
startStopBtn.classList.add( 'bg-red-600', 'hover:bg-red-500' )
configPanel.querySelectorAll( 'input, select' ).forEach( el => el.disabled = true )
triedSecure = true
wsUrl = 'wss://' + window.location.host + '/ws'
connect( wsUrl )
}
}
if ( data.isRunning )
ws.onmessage = ( event ) =>
{
const now = new Date().toLocaleTimeString()
rpsStat.textContent = data.rps
latencyStat.textContent = data.latency.toFixed( 2 )
errorRateStat.textContent = data.errorRate.toFixed( 2 ) + '%'
totalReqsStat.textContent = data.totalReqs
totalErrorsStat.textContent = data.totalErrors
const data = JSON.parse( event.data )
updateChart( rpsChart, now, data.rps )
updateChart( latencyChart, now, data.latency )
updateChart( errorRateChart, now, data.errorRate )
} else
{
totalReqsStat.textContent = data.totalReqs
totalErrorsStat.textContent = data.totalErrors
if ( typeof data.isRunning !== 'undefined' )
{
if ( data.isRunning )
{
isRunning = true
startStopBtn.textContent = 'Stop Test'
startStopBtn.classList.remove( 'bg-green-600', 'hover:bg-green-500' )
startStopBtn.classList.add( 'bg-red-600', 'hover:bg-red-500' )
configPanel.querySelectorAll( 'input, select' ).forEach( el => el.disabled = true )
}
}
if ( data.isRunning )
{
const now = new Date().toLocaleTimeString()
rpsStat.textContent = data.rps
latencyStat.textContent = data.latency.toFixed( 2 )
errorRateStat.textContent = data.errorRate.toFixed( 2 ) + '%'
totalReqsStat.textContent = data.totalReqs
totalErrorsStat.textContent = data.totalErrors
updateChart( rpsChart, now, data.rps )
updateChart( latencyChart, now, data.latency )
updateChart( errorRateChart, now, data.errorRate )
} else
{
totalReqsStat.textContent = data.totalReqs
totalErrorsStat.textContent = data.totalErrors
}
}
}
connect( wsUrl )
}
function setRunningState ()