2018-06-10 21:02:34 +00:00
|
|
|
use Mix.Config
|
|
|
|
|
2018-06-10 21:56:59 +00:00
|
|
|
config :elstat,
|
2018-06-11 07:24:16 +00:00
|
|
|
port: 8069,
|
|
|
|
|
|
|
|
# which services will be managed by elstat?
|
|
|
|
# this follows a service spec
|
|
|
|
# the example here is for elixire
|
|
|
|
services: [
|
|
|
|
%{
|
|
|
|
id: :elixire,
|
|
|
|
human_id: "elixi.re",
|
|
|
|
adapter: Elstat.Adapter.Elixire,
|
|
|
|
adapter_opts: %{
|
|
|
|
base_url: "https://elixi.re",
|
|
|
|
},
|
|
|
|
# every 10 seconds
|
|
|
|
poll: 10,
|
|
|
|
},
|
|
|
|
%{
|
|
|
|
id: :genserver,
|
|
|
|
human_id: "genserver, elixire main server",
|
|
|
|
adapter: Elstat.Adapter.Ping,
|
|
|
|
adapter_opts: %{
|
|
|
|
address: "192.168.1.1",
|
|
|
|
},
|
|
|
|
poll: 15,
|
|
|
|
},
|
|
|
|
]
|