feat(BIT-247): consolidate error reporting repo from OTT
Merge ingest-api, collector-worker, admin-ui, database/error_reporting, deploy/lxc, docker-compose, and deployment docs into the dedicated repository. Paths updated for repo root (ER_REPO_ROOT, systemd WorkingDirectory). Root README documents layout. Co-Authored-By: Paperclip <[email protected]>
This commit is contained in:
1 parent
eeb5039a3c
commit
b0b733d5e1
88 files changed
+19321
No files matched your search
@@ -0,0 +1,26 @@
|
||||
-- HTTP poll demo source for docker-compose (BIT-180). Depends on dev_two_projects.sql.
|
||||
|
||||
BEGIN;
|
||||
|
||||
INSERT INTO er_collector_sources (
|
||||
project_id,
|
||||
name,
|
||||
source_type,
|
||||
endpoint_uri,
|
||||
auth_secret_ref,
|
||||
poll_interval_seconds,
|
||||
is_active
|
||||
)
|
||||
SELECT
|
||||
p.id,
|
||||
'docker-demo-http',
|
||||
'http_poll',
|
||||
'http://fixture-poll/errors.json',
|
||||
'env:ER_COLLECTOR_PROJECT_ALPHA_TOKEN',
|
||||
30,
|
||||
TRUE
|
||||
FROM er_projects p
|
||||
WHERE p.slug = 'project-alpha'
|
||||
ON CONFLICT (project_id, name) DO NOTHING;
|
||||
|
||||
COMMIT;
|
||||
@@ -0,0 +1,24 @@
|
||||
-- Dev fixtures: two projects + ingest keys (plaintext tokens documented for local tests only).
|
||||
-- Token A: er_tst_a_secret_one
|
||||
-- Token B: er_tst_b_secret_two
|
||||
-- Apply after all error_reporting migrations.
|
||||
|
||||
BEGIN;
|
||||
|
||||
INSERT INTO er_projects (slug, name, description, is_active)
|
||||
VALUES
|
||||
('project-alpha', 'Project Alpha', 'Seed project A for passive ingest tests', TRUE),
|
||||
('project-beta', 'Project Beta', 'Seed project B for passive ingest tests', TRUE)
|
||||
ON CONFLICT (slug) DO NOTHING;
|
||||
|
||||
INSERT INTO er_ingest_keys (project_id, label, token_prefix, token_hash, status)
|
||||
SELECT p.id, 'default', 'tok_pr_a', '6b28a152af86ee5d2a30216c5c25e938c1b9bec58685a735b590c8cbaa005189', 'active'
|
||||
FROM er_projects p WHERE p.slug = 'project-alpha'
|
||||
ON CONFLICT (project_id, label) DO NOTHING;
|
||||
|
||||
INSERT INTO er_ingest_keys (project_id, label, token_prefix, token_hash, status)
|
||||
SELECT p.id, 'default', 'tok_pr_b', '63ca0b7048280893a98adb9e2a7333e431eb217d90b9470312b2f169ca736012', 'active'
|
||||
FROM er_projects p WHERE p.slug = 'project-beta'
|
||||
ON CONFLICT (project_id, label) DO NOTHING;
|
||||
|
||||
COMMIT;
|
||||
Reference in new issue
Block a user