Skip to content

#053: Email/System Monitoring (ELK Stack)#98

Open
samieazubike wants to merge 3 commits intoGildado:mainfrom
samieazubike:main
Open

#053: Email/System Monitoring (ELK Stack)#98
samieazubike wants to merge 3 commits intoGildado:mainfrom
samieazubike:main

Conversation

@samieazubike
Copy link

#57 feat(logging): Implement centralized logging service with Winston

  • Added logger.ts for structured JSON logging with multiple transports (console, file, Elasticsearch).
  • Introduced child logger support and contextual logging helpers for performance metrics, transactions, and security events.

feat(monitoring): Add alerting service for error rates and performance thresholds

  • Created alerting.ts to monitor error rates and response times, triggering alerts when thresholds are exceeded.
  • Implemented email notifications for alerts and cooldown periods to prevent alert storms.

feat(monitoring): Introduce metrics collector for performance tracking

  • Developed metrics.ts to track HTTP request metrics, error rates, and database query performance.
  • Exposed metrics via /api/monitoring/metrics endpoint and integrated with Elasticsearch.

feat(monitoring): Add distributed tracing service

  • Created tracing.ts for W3C Trace Context-compatible distributed tracing.
  • Supports nested spans and logging of trace information to Elasticsearch.

chore(docker): Set up ELK stack for centralized logging and monitoring

  • Added docker-compose.elk.yml to run Elasticsearch, Logstash, and Kibana.
  • Configured Logstash pipeline for processing JSON logs from the backend.

chore(docker): Create Kibana setup script for index patterns

  • Added setup-kibana.sh to automate the creation of index patterns and dashboards in Kibana.

- Added logger.ts for structured JSON logging with multiple transports (console, file, Elasticsearch).
- Introduced child logger support and contextual logging helpers for performance metrics, transactions, and security events.

feat(monitoring): Add alerting service for error rates and performance thresholds

- Created alerting.ts to monitor error rates and response times, triggering alerts when thresholds are exceeded.
- Implemented email notifications for alerts and cooldown periods to prevent alert storms.

feat(monitoring): Introduce metrics collector for performance tracking

- Developed metrics.ts to track HTTP request metrics, error rates, and database query performance.
- Exposed metrics via /api/monitoring/metrics endpoint and integrated with Elasticsearch.

feat(monitoring): Add distributed tracing service

- Created tracing.ts for W3C Trace Context-compatible distributed tracing.
- Supports nested spans and logging of trace information to Elasticsearch.

chore(docker): Set up ELK stack for centralized logging and monitoring

- Added docker-compose.elk.yml to run Elasticsearch, Logstash, and Kibana.
- Configured Logstash pipeline for processing JSON logs from the backend.

chore(docker): Create Kibana setup script for index patterns

- Added setup-kibana.sh to automate the creation of index patterns and dashboards in Kibana.
@drips-wave
Copy link

drips-wave bot commented Feb 21, 2026

Hey @samieazubike! 👋 It looks like this PR isn't linked to any issue.

If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g., Closes #123), or by clicking a button below:

Issue Title
#57 #53: Email/System Monitoring (ELK Stack) Link to this issue
#69 #65: Session Timeout Warnings Link to this issue

ℹ️ Learn more about linking PRs to issues

@Wilfred007
Copy link
Collaborator

Hi @samieazubike there seems to be conflict can you resolve please

@Wilfred007
Copy link
Collaborator

Hello @samieazubike Kindly resolve conflicts and push again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants