Skip to content

Commit 3a5649c

Browse files
authored
Merge branch 'main' into dependabot/pip/monitoring_flask_backend/pip-c4729a6cb0
2 parents 0fbb931 + 6937c1c commit 3a5649c

169 files changed

Lines changed: 32158 additions & 5250 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor

Submodule .cursor updated from 735d2bf to f20a54c

.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# PostgresAI Monitoring Stack configuration
2+
# Copy this file to .env and adjust values as needed:
3+
# cp .env.example .env
4+
5+
# Image tag (required) - specify version to use
6+
PGAI_TAG=0.14.0
7+
8+
# Registry prefix (optional, default: postgresai for DockerHub)
9+
# For GitLab Container Registry:
10+
# PGAI_REGISTRY=registry.gitlab.com/postgres-ai/postgres_ai
11+
# PGAI_REGISTRY=postgresai
12+
13+
# Optional: Grafana admin password (default: demo)
14+
# GF_SECURITY_ADMIN_PASSWORD=your-secure-password
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Mirror to GitLab
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
- '!main'
8+
- '!master'
9+
10+
jobs:
11+
mirror:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Mirror to GitLab
20+
env:
21+
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
22+
GITLAB_URL: ${{ vars.GITLAB_URL || 'https://gitlab.com' }}
23+
GITLAB_REPO: ${{ vars.GITLAB_REPO || 'postgres-ai/postgres_ai' }}
24+
run: |
25+
# Configure git
26+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
27+
git config --global user.name "GitHub Actions"
28+
29+
# Add GitLab remote with token auth
30+
git remote add gitlab "https://oauth2:${GITLAB_TOKEN}@${GITLAB_URL#https://}/${GITLAB_REPO}.git"
31+
32+
# Push the current branch
33+
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
34+
echo "Pushing branch: ${BRANCH_NAME}"
35+
git push gitlab "HEAD:refs/heads/${BRANCH_NAME}" --force
36+
37+
echo "Successfully mirrored to GitLab"

.gitignore

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Thumbs.db
99

1010
# IDE and editor files
1111
.vscode/
12+
# Keep an example debug config in git:
13+
!.vscode/
14+
.vscode/*
15+
!.vscode/launch.example.json
1216
.idea/
1317
*.swp
1418
*.swo
@@ -18,6 +22,9 @@ Thumbs.db
1822
.env.local
1923
.env.*.local
2024

25+
# Compose local override (auto-loaded by docker compose) - dev-only
26+
docker-compose.override.yml
27+
2128
# Logs
2229
*.log
2330
logs/
@@ -28,6 +35,17 @@ pids
2835
*.seed
2936
*.pid.lock
3037

38+
# Local report outputs (dev-only)
39+
dev_reports/
40+
41+
# Python artifacts
42+
__pycache__/
43+
*.py[cod]
44+
45+
# Python virtual environments
46+
.venv/
47+
venv/
48+
3149
# Node artifacts
3250
node_modules/
3351
cli/node_modules/
@@ -40,6 +58,10 @@ cli/**/*.js.map
4058
cli/**/*.d.ts
4159
cli/**/*.d.ts.map
4260
!cli/jest.config.js
61+
!cli/packages/postgres-ai/bin/postgres-ai.js
62+
63+
# Generated at build time from metrics.yml
64+
cli/lib/metrics-embedded.ts
4365

4466
# Generated config files (these are created by the sources-generator)
4567
config/pgwatch-postgres/sources.yml
@@ -48,4 +70,6 @@ config/pgwatch-prometheus/sources.yml
4870
# Volume data (if accidentally committed)
4971
data/
5072
volumes/
51-
.pgwatch-config
73+
.pgwatch-config
74+
75+
.env

0 commit comments

Comments
 (0)