Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Environment Variable Configuration

All of the values defined in the Json config file can also be defined as environment variables. This functionality is provided by the default dotnet IConfiguration interface.

The variables use the following convention, note the use of both single and double underscores:

DOCGRAF_CONFIGSECTION__CONFIGPROPERTY=value

Example Grafana Config

DOCGRAF_GRAFANA__URI
DOCGRAF_GRAFANA__APIKEY

Example Arrays

DOCGRAF_GRAFANA__CONTAINEREVENTS__0="start"
DOCGRAF_GRAFANA__CONTAINEREVENTS__1="stop"
DOCGRAF_GRAFANA__CONTAINEREVENTS__2="restart"
...and so on