elastic-ipfs / metrics-collector

collect elastic-ipfs events into metrics
Other
2 stars 0 forks source link

define IndexerNotified event #5

Closed gobengo closed 2 years ago

gobengo commented 2 years ago

Context

"Elastic Provider Events" discusses how the MVP should have two events. One is:

CAR file received: S3 URL, size, timestamp

In the case of elastic ipfs, we are considering emitting this event approximately here, when the data has been uploaded to s3, and the ObjectCreated event triggers that lambda.

So we need to define the syntax of this event, and write a test that the collector is able to receive/distinguish/validate them.

It begs the question of what to call this event. I considered:

Decision

We will define an event similar to 'CAR File Received' which is named "IndexerNotified". This is probably the event we expect to see 'first' of all indexing-related events. Eventing on it will allow us to measure the duration/delta between in and downstream indexing (or after) events.

Once there is an MVP of using metrics-collector for indexing metrics, we may decide to reconsider the semantics and syntax of the events and their names.

Requirements