shantanoo-desai / komponist

A Composer for your favorite IoT/ IIoT container stacks with Ansible + Jinja2 + Docker Compose v2
GNU Affero General Public License v3.0
25 stars 2 forks source link

[timescaledb][grafana] Add Postgres-TimescaleDB Datasource #56

Closed shantanoo-desai closed 1 year ago

shantanoo-desai commented 1 year ago

Description

Add Postgres Datasource in Grafana with TimescaleDB options enabled in the datasources.yml.j2 file.

 - name: Komponist-TimescaleDB
    type: postgres
    url: komponist_timescaledb:5432
    user: admin
    jsonData:
      database: test
      sslmode: 'disable'
      maxOpenConns: 100
      maxIdleConns: 100
      maxIdleConnsAuto: true
      connMaxLifetime: 14400
      postgresVersion: 1000
      timescaledb: true
    secureJsonData:
      password: timescaleTest
    editable: true