# LocalGreenChain Grafana Datasources
# Agent 4: Production Deployment

apiVersion: 1

datasources:
  # Prometheus
  - name: Prometheus
    type: prometheus
    access: proxy
    url: http://prometheus:9090
    isDefault: true
    editable: false
    jsonData:
      timeInterval: "15s"
      httpMethod: POST

  # PostgreSQL (optional)
  # - name: PostgreSQL
  #   type: postgres
  #   url: postgres:5432
  #   database: localgreenchain
  #   user: lgc
  #   secureJsonData:
  #     password: ${DB_PASSWORD}
  #   jsonData:
  #     sslmode: disable
  #     maxOpenConns: 5
  #     maxIdleConns: 2
  #     connMaxLifetime: 14400
