Skip to content

# Event based data processor for real-time analytics data

Notifications You must be signed in to change notification settings

DallasFormulaRacing/Star-Stream

Repository files navigation

Metrics Processor

Serverless Function to consume metrics from a Kafka topic and store them in Loki and MongoDB Time-Series.

Loki Format

{
  "streams": [
    {
      "stream": {
        "labelKey": "labelValue" # can be used for filtering
      },
      "values": [
        [
          "timestamp",
          "value"
          {"optional": "labels"}
        ]
      ]
    }
  ]
}

MongoDB Time-Series Format

{
  "timestamp": "timestamp",
  "metadata": {
    "labelKey": "labelValue"
  }

  ...keyvalues
}

Weird Hacks

  • MongoDB is incredibly buggy so we are using certifi for SSL resolution.

About

# Event based data processor for real-time analytics data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages