본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Datadog 정책 구성 참조

원문 보기 위키 갱신

Datadog 정책 구성 참조 (Datadog Policy Configuration Reference)

이 문서는 Datadog 정책에서 설정할 수 있는 옵션들을 JSON 스키마 형태로 정리한 참조 자료예요. 상태 태그나 라우트 이름 태그 같은 태그 설정부터 재시도 횟수, 큐 크기 같은 전송 관련 옵션까지 항목별로 확인할 수 있어요. 특히 큐(queue) 설정 안에는 최대 항목 수, 배치 크기, 재시도 지연 시간, 동시성 제한 같은 세부 값들이 담겨 있으니 로그 전송 방식을 세밀하게 조정할 때 참고하면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "status_tag": {
          "type": "string",
          "description": "String to be attached as the tag of the HTTP status.",
          "default": "status"
        },
        "route_name_tag": {
          "type": "string",
          "description": "String to be attached as tag of the route name or ID."
        },
        "retry_count": {
          "type": "integer",
          "description": "Number of times to retry when sending data to the upstream server."
        },
        "queue_size": {
          "type": "integer",
          "description": "Maximum number of log entries to be sent on each message to the upstream server."
        },
        "queue": {
          "type": "object",
          "properties": {
            "max_entries": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 1,
              "description": "Maximum number of entries that can be waiting on the queue.",
              "default": 10000
            },
            "max_bytes": {
              "type": "integer",
              "description": "Maximum number of bytes that can be waiting on a queue, requires string content."
            },
            "max_retry_time": {
              "type": "number",
              "description": "Time in seconds before the queue gives up calling a failed handler for a batch.",
              "default": 60
            },
            "initial_retry_delay": {
              "type": "number",
              "maximum": 1000000,
              "minimum": 0.001,
              "description": "Time in seconds before the initial retry is made for a failing batch.",
              "default": 0.01
            },
            "max_retry_delay": {
              "type": "number",
              "maximum": 1000000,
              "minimum": 0.001,
              "description": "Maximum time in seconds between retries, caps exponential backoff.",
              "default": 60
            },
            "concurrency_limit": {
              "type": "integer",
              "enum": [
                -1,
                1
              ],
              "description": "The number of of queue delivery timers. -1 indicates unlimited.",
              "default": 1
            },
            "max_batch_size": {
              "type": "integer",
              "maximum": 1000000,
              "minimum": 1,
              "description": "Maximum number of entries that can be processed at a time.",
              "default": 1
            },
            "max_coalescing_delay": {
              "type": "number",
              "maximum": 3600,
              "minimum": 0,
              "description": "Maximum number of (fractional) seconds to elapse after the first entry was queued before the queue starts calling the handler.",
              "default": 1
            }
          }
        },
        "metrics": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "sample_rate": {
                "type": "number",
                "maximum": 1,
                "minimum": 0,
                "description": "Sampling rate"
              },
              "consumer_identifier": {
                "type": "string",
                "enum": [
                  "consumer_id",
                  "custom_id",
                  "username"
                ],
                "description": "Authenticated user detail"
              },
              "name": {
                "type": "string",
                "enum": [
                  "kong_latency",
                  "latency",
                  "request_count",
                  "request_size",
                  "response_size",
                  "upstream_latency"
                ],
                "description": "Datadog metric’s name"
              },
              "stat_type": {
                "type": "string",
                "enum": [
                  "counter",
                  "distribution",
                  "gauge",
                  "histogram",
                  "meter",
                  "set",
                  "timer"
                ],
                "description": "Determines what sort of event the metric represents"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "List of tags"
              }
            },
            "required": [
              "name",
              "stat_type"
            ]
          },
          "description": "List of metrics to be logged."
        },
        "port": {
          "type": "integer",
          "maximum": 65535,
          "minimum": 0,
          "description": "An integer representing a port number between 0 and 65535, inclusive.",
          "default": 8125
        },
        "prefix": {
          "type": "string",
          "description": "String to be attached as a prefix to a metric's name.",
          "default": "kong"
        },
        "service_name_tag": {
          "type": "string",
          "description": "String to be attached as the name of the service.",
          "default": "name"
        },
        "consumer_tag": {
          "type": "string",
          "description": "String to be attached as tag of the consumer.",
          "default": "consumer"
        },
        "flush_timeout": {
          "type": "number",
          "description": "Optional time in seconds. If `queue_size` > 1, this is the max idle time before sending a log with less than `queue_size` records."
        },
        "host": {
          "type": "string",
          "description": "A string representing a host name, such as example.com.",
          "default": "localhost",
          "x-referenceable": true
        }
      }
    }
  }
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.