Skip to content

feat: Prometheus and Graphana Setup for HTTP Transport#32

Merged
akshaydeo merged 2 commits intomainfrom
05-12-feat_prometheus_and_graphana_setup_added_for_http_transport_tracking
May 13, 2025
Merged

feat: Prometheus and Graphana Setup for HTTP Transport#32
akshaydeo merged 2 commits intomainfrom
05-12-feat_prometheus_and_graphana_setup_added_for_http_transport_tracking

Conversation

@Pratham-Mishra04
Copy link
Copy Markdown
Collaborator

Add Prometheus Metrics and Docker Container Naming

This PR adds Prometheus metrics tracking to the Bifrost HTTP service and improves Docker container configuration. The changes include:

  1. Added Prometheus metrics collection for:

    • HTTP server metrics (request counts, latency, sizes)
    • Upstream provider metrics (request counts, latency, errors)
  2. Implemented a Prometheus plugin that hooks into Bifrost's request lifecycle to track provider-specific metrics.

  3. Added Docker Compose configuration for Prometheus and Grafana monitoring stack.

  4. Refactored the codebase by moving account and configuration management to a dedicated lib package.

  5. Updated the Docker run command in the README to include container naming (--name bifrost-api), making it easier to reference in monitoring configurations.

  6. Improved code documentation with detailed comments explaining the purpose and functionality of each component.

These changes enable comprehensive monitoring of the Bifrost API service, providing insights into both HTTP server performance and upstream provider metrics.

Copy link
Copy Markdown
Collaborator Author

Pratham-Mishra04 commented May 12, 2025

@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-12-feat_prometheus_and_graphana_setup_added_for_http_transport_tracking branch from f09c686 to 196f093 Compare May 13, 2025 12:25
Copy link
Copy Markdown
Contributor

@akshaydeo akshaydeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed - allow adding custom tags for better slice and dice of the data

@Pratham-Mishra04
Copy link
Copy Markdown
Collaborator Author

as discussed - allow adding custom tags for better slice and dice of the data

yes @akshaydeo I have added support for custom labels

Comment thread transports/bifrost-http/main.go
@akshaydeo akshaydeo merged commit d1292b9 into main May 13, 2025
1 check passed
@Pratham-Mishra04 Pratham-Mishra04 deleted the 05-12-feat_prometheus_and_graphana_setup_added_for_http_transport_tracking branch May 13, 2025 20:06
akshaydeo added a commit that referenced this pull request Nov 17, 2025
# Add Prometheus Metrics and Docker Container Naming

This PR adds Prometheus metrics tracking to the Bifrost HTTP service and improves Docker container configuration. The changes include:

1. Added Prometheus metrics collection for:
   - HTTP server metrics (request counts, latency, sizes)
   - Upstream provider metrics (request counts, latency, errors)

2. Implemented a Prometheus plugin that hooks into Bifrost's request lifecycle to track provider-specific metrics.

3. Added Docker Compose configuration for Prometheus and Grafana monitoring stack.

4. Refactored the codebase by moving account and configuration management to a dedicated `lib` package.

5. Updated the Docker run command in the README to include container naming (`--name bifrost-api`), making it easier to reference in monitoring configurations.

6. Improved code documentation with detailed comments explaining the purpose and functionality of each component.

These changes enable comprehensive monitoring of the Bifrost API service, providing insights into both HTTP server performance and upstream provider metrics.
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