Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add observability to STAC, Raster APIs #193

Open
smohiudd opened this issue May 27, 2024 · 2 comments
Open

Add observability to STAC, Raster APIs #193

smohiudd opened this issue May 27, 2024 · 2 comments
Assignees

Comments

@smohiudd
Copy link
Member

smohiudd commented May 27, 2024

Problem description

Some partners may need usage metrics from the STAC or Raster API to assess most access collections, items etc. This could be be achieved by instrumenting the APIs to emit metrics, traces and logs. Observability data can then be visualized or analyzed in Cloudwatch or Grafana.

The VEDA Data Services team has implemented STAC and Raster Observability to get fine grained analytics in Grafana that can tell us the most accessed collections using the /collections/{collection_id} endpoint for example. Metrics could also be obtained for Raster endpoints.

See the VEDA implementation in the STAC API for more details: https://github.com/NASA-IMPACT/veda-backend/blob/develop/stac_api/runtime/src/monitoring.py

A potential feature implementation would instrument the APIs using OpenTelemetry or AWS Lambda Powertools. Grafana could also be be deployed as part of the infrastructure however this could be left to individual implementors as well.

@smohiudd smohiudd added bug Something isn't working Feature Request and removed bug Something isn't working labels May 27, 2024
@zacharyDez
Copy link
Contributor

@vincentsarago; do you think we should move this conversation to https://github.com/developmentseed/eoapi-devseed?

@vincentsarago
Copy link
Member

the issue can still live here but any dev should go either on eoapi-cdk or eoapi-devseed

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

No branches or pull requests

4 participants