You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once deployed, any STAC Item uploaded to the `stac-updater-kickoff` bucket will be ingested by the service and added to the `https://stac.com/landsat-8-l1/catalog.json` collection. Regardless of event source, the service expects the following JSON payload:
30
-
31
-
| Field Name | Type | Description | Example |
32
-
| ---------- | ----- | ----------- | ------- |
33
-
| stac_item | dict |**REQUIRED.**[STAC Item](https://github.com/radiantearth/stac-spec/tree/master/item-spec) to ingest into collection. |[link](https://github.com/radiantearth/stac-spec/blob/dev/item-spec/examples/sample-full.json)|
34
-
| path | str | String pattern indicating subcatalogs. Used by [sat-stac](https://github.com/sat-utils/sat-stac/blob/master/tutorial-1.ipynb#Views) to automatically build sub catalogs from item properties. | '${landsat:path}/${landsat:row}' |
35
-
| filename | str | String pattern indicating filename. Used by [sat-stac](https://github.com/sat-utils/sat-stac/blob/master/tutorial-1.ipynb#Views) to automatically build item filename from item properties.| '${date}/${id}' |
31
+
Once deployed, any STAC Item uploaded to the `stac-updater-kickoff` bucket will be ingested by the service and added to the `https://stac.com/landsat-8-l1/catalog.json` collection. Regardless of event source, the service expects the payload to contain a [STAC Item](https://github.com/radiantearth/stac-spec/tree/master/item-spec).
36
32
37
33
Each call to `update-collection` tells the services to update a single collection. Updating multiple collections within a single deployment is accomplished with multiple calls to `update-collection`. When updating multiple collections, the services uses a SNS fanout pattern to distribute messages across multiple queues (1 queue per collection).
38
34
39
35

40
36
41
37
## SNS Notifications
42
-
You may additionally deploy a SNS topic which publishes messages whenever a STAC Item is succesfully uploaded to a collection.
38
+
You may deploy a SNS topic which publishes messages whenever a STAC Item is succesfully uploaded to a collection.
43
39
44
40
```
45
41
# Add SNS notification
@@ -60,8 +56,38 @@ Once deployed, end-users may subscribe to the newly created SNS topic to be noti
60
56
61
57

62
58
59
+
## Logging
60
+
You may pipe CloudWatch logs to a deployed instance of AWS Elasticsearch service for monitoring and visualizing with kibana.
Logs are saved to the `stac_updater_logs_YYYYMMDD` index (a new index is created each day) with the following schema:
68
+
69
+
| Field Name | Type | Description | Example |
70
+
| ---------- | ----- | ----------- | ------- |
71
+
| id | string | Unique ID of the CloudWatch log event. | 34819275800 |
72
+
| timestamp | date | Date of the lambda invocation. | June 23rd 2019, 21:25:26.649 |
73
+
| BilledDuration | str | Time (ms) charged for execution. | 87 |
74
+
| CollectionName | str | Name of collection. | landsat8 |
75
+
| Duration | str | Runtime (ms) of the lambda function. | 442.49 |
76
+
| ItemCount | number | Number of STAC Items processed by the invocation. | 4 |
77
+
| ItemLinks | string array | URLs of STAC Items processed by the invocation. |['https://stac.s3.amazonaws.com/landsat8/item.json']|
78
+
| MemorySize | number | Memory limit of lambda function. | 1024 |
79
+
| MaxMemoryUsed | number | Maximum memory (MB) consumed by the lambda function. | 87 |
80
+
| RequestId | str | Unique request ID of the lambda invocation. | 87 |
81
+
82
+
The following image is a kibana time-series visualization showing number of lambda invocations binned into 15 second intervals after 200 STAC Items were pushed into the queue. Notice how lambda scales up to handle the initial burst of messages.
- Add support for dynamic catalogs ([sat-api](https://github.com/sat-utils/sat-api), [staccato](https://github.com/boundlessgeo/staccato)).
66
-
- Add aggregator service for metrics/logging etc on batch jobs.
0 commit comments