1010# ##########################################################
1111# metricstore config (postgres) - for grafana's metadata
1212DB_HOST=
13- # append DB_PORT in grafana.ini db config
1413DB_NAME=grafana
1514DB_USER=grafana
1615DB_PASSWORD=sarjitsu123
17- DB_PORT=5432 # default for postgres
16+ DB_PORT=5432
1817
18+ # TODO: data dir option below is currently not integrated into sarjitsu;
19+ # one would have to build a postgres container, to make new mountpoint
20+ # available. Refer to https://hub.docker.com/_/postgres/ for more.
21+ # set to default
1922DB_DATA_DIR=' /var/lib/postgresql/data'
2023# change this in production, if you have a fs mountpoint (for persistent disks)
2124# if so, you'll have to build the postgres container (and not just pull it
@@ -25,13 +28,17 @@ DB_DATA_DIR='/var/lib/postgresql/data'
2528# datasource config (elasticsearch) - source of timeseries data
2629ES_HOST=
2730ES_PORT=9200
31+
32+ # sarjitsu currently needs passwordless access to elasticsearch;
33+ # this protocol goes into grafana's datasource settings.
2834ES_PROTOCOL=http
2935
3036# set this if you want a particular cluster name while building
3137# the ElasticSearch container. If not set, a random string will be assigned
3238ES_CLUSTER_NAME=elasticsearch$RANDOM
3339
34- # below settings are for data sent to ES by backend and middleware
40+ # below settings are for data sent to ES by backend and middleware;
41+ # recommended to keep these values to default.
3542INDEX_PREFIX=sarjitsu
3643BULK_ACTION_COUNT=2000
3744INDEX_VERSION=1
@@ -46,14 +53,24 @@ GRAFANA_DB_TYPE=postgres
4653# make sure this is above 1024; 3000 is standard
4754GRAFANA_PORT=3000
4855
56+ # Sarjitsu supports only ES < 2.0 ..which supports _timestamp
57+ # in mapping. If you don't have a production instance of ES<2.0
58+ # it is highly recommended to leave ES_HOST option empty to let
59+ # sarjitsu spawn it's own compatible instance of ElasticSearch
4960GRAFANA_TIMEFIELD=_timestamp
61+
62+ # you could change these
5063GRAFANA_DS_NAME=elastic
64+
65+ # don't change this. It is here for reference of app itself
5166GRAFANA_DS_PATTERN=[$INDEX_PREFIX .sar-]YYYYMMDD
5267
5368# ##########################################################
5469# middleware config (frontend API server) - service that builds dashboards
5570MIDDLEWARE_HOST=
5671MIDDLEWARE_PORT=80
72+
73+ # don't change this. It is here for reference of app itself
5774MIDDLEWARE_ENDPOINT=/db/create/
5875
5976# ##########################################################
0 commit comments