Skip to main content

Self-hosted AI observability backend

Project description

🔭 Logmera

Self-hosted monitoring for AI applications

Log prompts, responses, and latency from your AI apps and view them in a simple dashboard.

What is Logmera?

Logmera is a self-hosted observability tool for AI / LLM applications.

It helps developers understand what their AI systems are doing.

Instead of printing logs to the console, Logmera stores:

  • prompts
  • responses
  • model name
  • latency

in a PostgreSQL database and shows them in a web dashboard.

Your data stays on your infrastructure.


Source Code: https://github.com/ThilakKumar-A/Logmera/


Why use Logmera?

When building AI applications it becomes hard to know:

  • what prompts were sent
  • what responses were returned
  • how long requests took
  • which model was used
  • when errors happened

Logmera helps you see and monitor all AI activity in one place.


How it works

Your AI App
     │
     ▼
Logmera SDK
     │
     ▼
Logmera Server
     │
     ▼
PostgreSQL
     │
     ▼
Dashboard

Your application sends logs to Logmera. Logmera stores them and displays them in the dashboard.


Quick Start

1. Install

pip install logmera

2. Start PostgreSQL

You can use any PostgreSQL database.

Example connection string:

postgresql://username:password@localhost:5432/database

If you do not have PostgreSQL installed, you can run it with Docker.

docker run --name logmera-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=logmera \
-p 5432:5432 -d postgres:16

3. Start Logmera

logmera --db-url "postgresql://postgres:postgres@localhost:5432/logmera"

Server starts at:

http://127.0.0.1:8000

Open the Dashboard

Open your browser:

http://127.0.0.1:8000

You will see your AI logs in the dashboard.


Python Example

Add Logmera to your AI code.

import logmera

logmera.log(
    project_id="chatbot",
    prompt="Hello",
    response="Hi there",
    model="gpt-4o",
    latency_ms=120,
    status="success"
)

Now the request will appear in the Logmera dashboard.


API Example

You can also send logs using the API.

curl -X POST http://127.0.0.1:8000/logs \
-H "Content-Type: application/json" \
-d '{
  "project_id":"my-app",
  "prompt":"Hello",
  "response":"Hi",
  "model":"gpt-4o",
  "latency_ms":95,
  "status":"success"
}'

API Endpoints

Method Endpoint Description
GET /health Health check
POST /logs Create log
GET /logs Get logs

Configuration

Example CLI:

logmera --host 127.0.0.1 --port 8000

Environment variables:

DATABASE_URL
LOGMERA_URL
LOGMERA_TIMEOUT_SECONDS
LOGMERA_RETRIES

Deployment

Logmera can run on:

  • Local machines
  • Docker
  • VPS servers
  • Kubernetes
  • Cloud VMs

Because Logmera is self-hosted, your AI data remains private.


License

MIT License


Links

PyPI https://pypi.org/project/logmera/

GitHub https://github.com/ThilakKumar-A/Logmera/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logmera-0.1.5.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logmera-0.1.5-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file logmera-0.1.5.tar.gz.

File metadata

  • Download URL: logmera-0.1.5.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for logmera-0.1.5.tar.gz
Algorithm Hash digest
SHA256 06a723415d925b23d2310484a2a63760acf19ee1080ba806b37851f62636a088
MD5 2943dcbaa503978c1f0276722c309479
BLAKE2b-256 53164912ab63545ee7699d8eba48dc3c390fede1354d950d219945e1fcf28850

See more details on using hashes here.

File details

Details for the file logmera-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: logmera-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for logmera-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7997881e43f62cba89d55c2555d7b74b229b4831577584dd1f3c363fddfe52ca
MD5 339ac1f7e58579312911e811b3aa25bd
BLAKE2b-256 da5172822a6548e4c9f0eb42e38c7b293b7435bf9637feb567548b4dd7ce5b89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page