Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

Version 1 Current »

CH Collector(Telegraf)의 HTTP Input Plugin을 통해 사용자 정의 데이터를 수집할 수 있습니다.

다음은 예시입니다.

[[inputs.http]]
  ## One or more URLs from which to read formatted metrics
  urls = [
    "http://localhost:8900/myhttp/0.5/system-resources/monitoring",
    "http://localhost:8900/myhttp/0.5/myhttp-suite/myhttp-service-resource/monitoring",
    "http://localhost:8900/myhttp/0.5/myhttp-suite/myhttp-service/monitoring"
  ]

  ## HTTP method
  method = "GET"
  data_format = "json"
  name_override = "myhttp"
  json_query = "info.0"

위 예시에서 URL 별로 tag가 생성되어 influxdb에 저장 될 것 입니다.

저장되는 포맷을 변경하기 위해서는 Input Data Formats를 참조합니다.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.