mtthwcmpbll / spring-boot-carbon-metrics

This repository is a project to automatically instrument a Spring Boot app with carbon-aware sustainability metrics.
Apache License 2.0
7 stars 4 forks source link

Expose sci and emissions endpoint for prometheus #26

Closed iamdebojyoti closed 2 years ago

iamdebojyoti commented 2 years ago

This PR is responsible for the following :

  1. Exposing sci and emissions endpoint for Prometheus to fetch data.
  2. Refactor to conditionally create beans for EnergyConsumptionProvider, MarginalEmissionsProvider and EmbodiedEmissionsProvider only when an implementation is not provided.
  3. Added an implementation of EmbodiedEmissionsProvider in hello-service for testing point 2.
  4. Update playground.sh to refer to tag v1.0.0 of carbon-aware-sdk
iamdebojyoti commented 2 years ago

@mtthwcmpbll I am merging this PR for now as its mainly for exposing the endpoints for prometheus and some small updates to the starter.