Sign inSign up

vkrishna04/cognigate-analytics

By vkrishna04

•Updated 11 days ago

CogniGate analytics: usage and billing service for the CogniGate LLM gateway.

Image
API management
Machine learning & AI
Developer tools
0

1.4K

vkrishna04/cognigate-analytics repository overview

⁠CogniGate analytics

The usage and billing service of CogniGate⁠, a self-hosted, multi-tenant LLM gateway. It receives usage records from cognigate-gateway⁠, stores them in Postgres, and serves the usage and cost reports.

⁠Tags

  • latest: the newest build of main
  • X.Y.Z and X.Y: releases
  • Images are published for linux/amd64 and linux/arm64, with build provenance attestations. The same images are on ghcr.io/life-experimentalist/cognigate-analytics.

⁠Run it

This image is meant to run next to the gateway and a Postgres database. The simplest way to get all three is:

curl -sSL https://cognigate.vkrishna04.me/install.sh | bash

To run it yourself, give it a database and the same token the gateway uses:

SettingPurpose
port 8081ingest API for the gateway, reports, /actuator/health
SPRING_DATASOURCE_URLJDBC URL, e.g. jdbc:postgresql://db:5432/cognigate
SPRING_DATASOURCE_USERNAME, SPRING_DATASOURCE_PASSWORDdatabase credentials
ANALYTICS_TOKENshared secret; must match the gateway's (generate with openssl rand -hex 32)

Port 8081 accepts usage writes, so do not expose it beyond the network the gateway runs on.

Tag summary

Content type

Image

Digest

sha256:daeb79add…

Size

151.8 MB

Last updated

11 days ago

docker pull vkrishna04/cognigate-analytics