Logging Configuration

FT Services uses Grafana Loki for centralized log aggregation.

Architecture

  • Promtail (DaemonSet) - Collects logs from all pods

  • Loki - Stores and indexes logs

  • Grafana - Query and visualization

LogQL Queries

Basic Queries

# All logs from dev environment
{namespace="dev"}

# FTACS logs only
{namespace="dev", app="ftacs"}

# Errors
{namespace="dev"} |~ "(?i)error"

Advanced Queries

# Rate of errors per minute
rate({namespace="dev"} |~ "error" [1m])

# Slow queries
{namespace="dev", app="mysql"} |~ "slow query"

# API calls > 1s
{namespace="dev", component="api"} | json | duration > 1s

Retention

  • dev: 7 days

  • dev-oracle: 14 days

  • feature branches: 3 days

  • production: 30 days

See full logging guide for implementation details.

For complete logging documentation, see LOGGING-IMPLEMENTATION-GUIDE.md