You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Example of the Consul(ConsulAgent) configuration file.

{
"datacenter": "od-torpedo",
"data_dir": "C:\\ConsulAgent\\Data",
"log_level": "INFO",
"node_name": "Consul1",
"server": true,
"bind_addr": "127.0.0.1",
"advertise_addr": "127.0.0.1",
"services": [
{
"id": "HyuMD1",
"name": "HyundaiMasterData",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 7000,
"checks": [
{
"id": "HyuMD1_Check",
"name": "Check Hyundai API on port 7000",
"http": "http://127.0.0.1:7000/HyundaiMasterData/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "HyuMD2",
"name": "HyundaiMasterData",
"tags": [
"delayed",
"secondary"
],
"address": "127.0.0.1",
"port": 7001,
"checks": [
{
"id": "HyuMD2_Check",
"name": "Check Hyundai API on port 7001",
"http": "http://127.0.0.1:7001/HyundaiMasterData/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "TechAl1",
"name": "TecAllianceApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 50000,
"checks": [
{
"id": "TechAl1_Check",
"name": "Check TecAllianceApi 1 API on port 50000",
"http": "http://127.0.0.1:50000/TecAllianceApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "TechAl2",
"name": "TecAllianceApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 50001,
"checks": [
{
"id": "TechAl2_Check",
"name": "Check TecAllianceApi 2 API on port 50001",
"http": "http://127.0.0.1:50001/TecAllianceApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "AvagDispo1",
"name": "AvagDispoToolApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 50100,
"checks": [
{
"id": "AvagDispo1_Check",
"name": "Check AvagDispoTool API on port 50100",
"http": "http://127.0.0.1:50100/AvagDispoToolApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "AvagDispo12",
"name": "AvagDispoToolApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 50101,
"checks": [
{
"id": "AvagDispo2_Check",
"name": "Check AvagDispoTool 2 API on port 50101",
"http": "http://127.0.0.1:50101/AvagDispoToolApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "OpelMilesIntegration1",
"name": "OpelMilesIntegrationApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 50900,
"checks": [
{
"id": "OpelMilesIntegration1_Check",
"name": "Check OpelMilesIntegration API on port 50900",
"http": "http://127.0.0.1:50900/OpelMilesIntegrationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "OpelMilesIntegration2",
"name": "OpelMilesIntegrationApi",
"tags": [
"delayed",
"secondary"
],
"address": "127.0.0.1",
"port": 50901,
"checks": [
{
"id": "OpelMilesIntegration2_Check",
"name": "Check OpelMilesIntegration 2 API on port 50901",
"http": "http://127.0.0.1:50901/OpelMilesIntegrationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "DatIntegration1",
"name": "DatIntegrationApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 52000,
"checks": [
{
"id": "DatIntegration1_Check",
"name": "Check DATIntegration API on port 52000",
"http": "http://127.0.0.1:52000/DATIntegrationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "DatIntegration2",
"name": "DatIntegrationApi",
"tags": [
"delayed",
"secondary"
],
"address": "127.0.0.1",
"port": 52001,
"checks": [
{
"id": "DatIntegration2_Check",
"name": "Check DATIntegration 2 API on port 52001",
"http": "http://127.0.0.1:52001/DATIntegrationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "OpelLeadIntegration1",
"name": "OpelLeadIntegrationApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 50300,
"checks": [
{
"id": "OpelLeadIntegration1_Check",
"name": "Check OpelLeadIntegration API on port 50300",
"http": "http://127.0.0.1:50300/OpelLeadIntegrationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "OpelLeadIntegration2",
"name": "OpelLeadIntegrationApi",
"tags": [
"delayed",
"secondary"
],
"address": "127.0.0.1",
"port": 50301,
"checks": [
{
"id": "OpelLeadIntegration2_Check",
"name": "Check OpelLeadIntegration 2 API on port 50301",
"http": "http://127.0.0.1:50301/OpelLeadIntegrationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "OpelVehicleConfiguration1",
"name": "OpelVehicleConfigurationApi",
"tags": [
"primary"
],
"address": "127.0.0.1",
"port": 50400,
"checks": [
{
"id": "OpelVehicleConfiguration1_Check",
"name": "Check OpelVehicleConfiguration API on port 50400",
"http": "http://127.0.0.1:50400/OpelVehicleConfigurationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
},
{
"id": "OpelVehicleConfiguration2",
"name": "OpelVehicleConfigurationApi",
"tags": [
"delayed",
"secondary"
],
"address": "127.0.0.1",
"port": 50401,
"checks": [
{
"id": "OpelVehicleConfiguration2_Check",
"name": "Check OpelVehicleConfiguration 2 API on port 50401",
"http": "http://127.0.0.1:50401/OpelVehicleConfigurationApi/Health",
"tls_skip_verify": false,
"method": "GET",
"header": {
"Content-Type": [
"application/json"
]
},
"interval": "1s",
"timeout": "10s",
"failures_before_critical": 3
}
]
}
],
"dns_config": {
"allow_stale": false,
"service_ttl": {
"*": "0s"
},
"node_ttl": "0s"
}
}

  • No labels