summaryrefslogtreecommitdiffstats
path: root/kubernetes/consul/resources/config/consul-agent-config/aaf-service-health.json
blob: cd715f8b6a3f15ca8cafab65b890345066bf1b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  "service": {
    "name": "Health Check: Application Authorization Framework",
    "checks": [
      {
        "id": "aaf-service",
        "name": "AAF Service Health Check",
        "http": "https://aaf-service:8100/authz/perms/user/demo@people.osaaf.org",
        "header": {
          "Authorization": ["Basic ZGVtb0BwZW9wbGUub3NhYWYub3JnOmRlbW8xMjM0NTYh"],
          "X-TransactionId": ["ConsulHealthCheck"],
          "X-FromAppId": ["healthcheck"]
        },
        "tls_skip_verify": true,
        "interval": "20s",
        "timeout": "5s"
      }
    ]
  }
}
pan class="na">source="logging.format"/> <property name="currentTimeStamp" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}"/> <appender name="jsonConsole" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder"> <providers> <pattern> <omitEmptyFields>true</omitEmptyFields> <pattern> { "logTimeStamp": "${currentTimeStamp:-}", "logTypeName": "", "logLevel": "%level", "traceId": "%X{traceId:-}", "statusCode": "", "principalId": "${username:-}", "serviceName": "${springAppName:-}", "message": "%message", "spanId": "%X{spanId:-}", "processId": "${PID:-}", "threadName": "%thread", "class": "%logger{40}", "exception": "%wEx" } </pattern> </pattern> </providers> </encoder> </appender> <appender name="asyncConsole" class="ch.qos.logback.classic.AsyncAppender"> <if condition='property("loggingFormat").equalsIgnoreCase("json")'> <then> <appender-ref ref="jsonConsole"/> </then> <else> <appender-ref ref="CONSOLE"/> </else> </if> </appender> <root level="INFO"> <appender-ref ref="asyncConsole"/> </root> </configuration>