fix: change grafana port to 3030 (port 3000 already used by gitea on .47)
This commit is contained in:
@@ -25,7 +25,7 @@ services:
|
||||
container_name: grafana
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3030:3000"
|
||||
volumes:
|
||||
- grafana_data:/var/lib/grafana
|
||||
- ./grafana/provisioning:/etc/grafana/provisioning
|
||||
|
||||
@@ -92,13 +92,13 @@ def test_dashboard_provisioning():
|
||||
|
||||
# Login to Grafana (default credentials)
|
||||
session = requests.Session()
|
||||
login_response = session.post("http://localhost:3000/login",
|
||||
json={"user": "admin", "password": "admin"},
|
||||
login_response = session.post("http://localhost:3030/login",
|
||||
json={"user": "admin", "password": "admin"},
|
||||
timeout=10)
|
||||
assert login_response.status_code == 200, f"Grafana login failed: {login_response.status_code}"
|
||||
|
||||
# Check for dashboards
|
||||
dashboards_response = session.get("http://localhost:3000/api/search?query=LLM", timeout=10)
|
||||
dashboards_response = session.get("http://localhost:3030/api/search?query=LLM", timeout=10)
|
||||
assert dashboards_response.status_code == 200, f"Dashboard search failed: {dashboards_response.status_code}"
|
||||
|
||||
dashboards = dashboards_response.json()
|
||||
|
||||
Reference in New Issue
Block a user