Previous version of MOAT that works with Docker Swarm can be found here
The new version of automatic configuration of microservice applications.
These environment variables work independent from the configuration file.
LOG_LEVELcontrols the log level.
Any configuration item in the yaml file can be set using environment variables and in this case would overwrite the value of the config file.
The environment variables must start with ACFG_ and each level of the config name would be separated with _. For example if you want to set the URL of Args of EndpointAggregator you should use ACFG_ENDPOINTSAGGREGATOR_ARGS_URL
Aggregators are there to collect different resource metrics. Currently the only type is influxdb. See below on how to configure influxdb. This implementation works with influxdb v2.
These aggregators need to be configured:
- EndpointsAggregator, information about response times and status of each request sent the each endpoint.
- ResourceUsageAggregator, information about CPU and Memory usage. The memory is not implemented at this version.
- WorkloadAggregator, information about the generated workload during one iteration.
Beside these, the SystemStructureAggregator also need to be defined, the only type for this aggregator at this version is predefined. It specifies the path each endpoint (request-type) takes (the services involved in each request type).
For predefined type, it needs Endpoints2Resources which accepts a map[string][]string. See sample-configs.
It needs these values to work:
-
Args:
- URL
- Token
- Bucket
- Organization
How to create the cluster?
k3d cluster create -p "9099:9099@loadbalancer"
=======