Docs Menu
Docs Home
/
MongoDB Ops Manager
/ / / /

1๊ฐœ์˜ ์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ ํ™œ์„ฑํ™” ๋˜๋Š” ๋น„ํ™œ์„ฑํ™”

์ด ํŽ˜์ด์ง€์˜ ๋‚ด์šฉ

  • ํ•„์ˆ˜ ์—ญํ• 
  • ์š”์ฒญ
  • ์š”์ฒญ ๊ฒฝ๋กœ ๋งค๊ฐœ๋ณ€์ˆ˜
  • ์š”์ฒญ ์ฟผ๋ฆฌ ๋งค๊ฐœ๋ณ€์ˆ˜
  • ์š”์ฒญ ๋ณธ๋ฌธ ๋งค๊ฐœ๋ณ€์ˆ˜
  • ์‘๋‹ต
  • ์š”์ฒญ ์˜ˆ์‹œ
  • ์‘๋‹ต ์˜ˆ์‹œ
  • ์‘๋‹ต ํ—ค๋”
  • ์‘๋‹ต ๋ณธ๋ฌธ

GLOBAL-ALERT-CONFIG-ID ๋กœ ์‹๋ณ„๋˜๋Š” ํ•˜๋‚˜์˜ ์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์„ ํ™œ์„ฑํ™”ํ•˜๊ฑฐ๋‚˜ ๋น„ํ™œ์„ฑํ™”ํ•ฉ๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ• ๋‹น๋œ ์—ญํ• ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด ์—”๋“œํฌ์ธํŠธ๋ฅผ ์„ฑ๊ณต์ ์œผ๋กœ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • Global Owner

  • Global Monitoring Admin

๊ธฐ๋ณธ URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0

PATCH /globalAlertConfigs/{GLOBAL-ALERT-CONFIG-ID}
์ด๋ฆ„
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…
{GLOBAL-ALERT-CONFIG-ID}
๋ฌธ์ž์—ด
ํ•„์ˆ˜ ์‚ฌํ•ญ
ํ™œ์„ฑํ™”ํ•˜๊ฑฐ๋‚˜ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋Š” ์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์˜ ๊ณ ์œ  ์‹๋ณ„์ž์ž…๋‹ˆ๋‹ค.
์ด๋ฆ„
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…
๊ธฐ๋ณธ๊ฐ’
pretty
๋ถ€์šธ
์˜ต์…˜
์‘๋‹ต ๋ณธ๋ฌธ์ด ํ”„๋ฆฌํ‹ฐํ”„๋ฆฐํŠธ ์— ์žˆ์–ด์•ผ ํ•˜๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ํ”Œ๋ž˜๊ทธ์ž…๋‹ˆ๋‹ค. ํ˜•์‹.
false
envelope
๋ถ€์šธ
์˜ต์…˜

์‘๋‹ต์„ ์—”๋ฒจ๋กœํ”„์— ๋ž˜ํ•‘ํ• ์ง€ ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ํ”Œ๋ž˜๊ทธ์ž…๋‹ˆ๋‹ค.

์ผ๋ถ€ API ํด๋ผ์ด์–ธํŠธ๋Š” HTTP ์‘๋‹ต ํ—ค๋” ๋˜๋Š” ์ƒํƒœ ์ฝ”๋“œ์— ์•ก์„ธ์Šคํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด ์ฟผ๋ฆฌ์—์„œ envelope=true๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

ํ•˜๋‚˜์˜ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ์—”๋“œํฌ์ธํŠธ์˜ ๊ฒฝ์šฐ ์‘๋‹ต ๋ณธ๋ฌธ์—๋Š” ๋‹ค์Œ์ด ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

์ด๋ฆ„
์„ค๋ช…
status
HTTP ์‘๋‹ต ์ฝ”๋“œ
content
์˜ˆ์ƒ๋˜๋Š” ์‘๋‹ต ๋ณธ๋ฌธ
false
๋ณธ๋ฌธ ๋งค๊ฐœ๋ณ€์ˆ˜
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…
enabled
๋ถ€์šธ
ํ•„์ˆ˜ ์‚ฌํ•ญ

์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์˜ ํ™œ์„ฑํ™” ๋˜๋Š” ๋น„ํ™œ์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค.

  • ์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์„ ํ™œ์„ฑํ™” ํ•˜๋ ค๋ฉด true ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

  • ์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์„ ๋น„ํ™œ์„ฑํ™”ํ•˜๋ ค๋ฉด false ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

์ด๋ฆ„
์œ ํ˜•
์„ค๋ช…
created
๋ฌธ์ž์—ด
ISO 8601 ์˜ ํƒ€์ž„์Šคํƒฌํ”„ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์ด ์ƒ์„ฑ๋œ ์‹œ์ ์˜ UTC ๋‚ ์งœ ๋ฐ ์‹œ๊ฐ„ ํ˜•์‹์ž…๋‹ˆ๋‹ค.
enabled
๋ถ€์šธ
๊ฒฝ๊ณ  ๊ตฌ์„ฑ์˜ ํ™œ์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ์ง€์ •ํ•˜๋Š” ํ† ๊ธ€์ž…๋‹ˆ๋‹ค.
eventTypeName
๋ฌธ์ž์—ด

์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์ด Atlas๊ฐ€ ๊ฒฝ๊ณ ๋ฅผ ํŠธ๋ฆฌ๊ฑฐํ•˜๋Š” ์ด๋ฒคํŠธ ์œ ํ˜•์ž…๋‹ˆ๋‹ค.

๊ฒฝ๊ณ ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ์ด๋ฒคํŠธ ์œ ํ˜•์„ ๊ฒ€ํ† ํ•˜๋ ค๋ฉด ๊ฒฝ๊ณ  ์œ ํ˜•์„ ์ฐธ์กฐํ•˜์„ธ์š”.

Ops Manager ๊ฐ์‚ฌ ๋กœ๊ทธ์— ํฌํ•จ๋œ ์ด๋ฒคํŠธ์˜ ์ „์ฒด ๋ชฉ๋ก์€ ๊ฐ์‚ฌ ์ด๋ฒคํŠธ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”.

forAllGroups
๋ถ€์šธ

์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์„ ๋ชจ๋“  ๊ทธ๋ฃน์— ์ ์šฉํ• ์ง€ ์—ฌ๋ถ€๋ฅผ ์ง€์ •ํ•˜๋Š” ํ† ๊ธ€์ž…๋‹ˆ๋‹ค. ๋˜ํ•œ tags ๋ฐฐ์—ด์„ ์‚ฌ์šฉํ•˜์—ฌ ํŠน์ • ๊ทธ๋ฃน์„ ๊ตฌ์„ฑ ๋Œ€์ƒ์œผ๋กœ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ์—ฌ๋ถ€์—๋„ ์˜ํ–ฅ์„ ์ค๋‹ˆ๋‹ค.

true ์ด๋ฉด ๊ตฌ์„ฑ์ด ๋ชจ๋“  ๊ทธ๋ฃน์— ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. tags ๋ฐฐ์—ด์„ ํ†ตํ•ด ํŠน์ • ๊ทธ๋ฃน์„ ๋Œ€์ƒ์œผ๋กœ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

false ์ธ ๊ฒฝ์šฐ ๊ตฌ์„ฑ์€ groupIds ๋ฐฐ์—ด์— ์ง€์ •๋œ ๊ทธ๋ฃน์—๋งŒ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. groupIds ๋ฐฐ์—ด์— ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋‚˜ ์ด์ƒ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์—๋Š” tags ๋ฐฐ์—ด์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

groupIds
๋ฌธ์ž์—ด ๋ฐฐ์—ด
์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์ด ์ ์šฉ๋˜๋Š” ๊ทธ๋ฃน์˜ ID์ž…๋‹ˆ๋‹ค. ์ด ํ•„๋“œ๋Š” forAllGroups ์ด(๊ฐ€) false(์œผ)๋กœ ์„ค์ •๋œ ๊ฒฝ์šฐ์—๋งŒ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.
id
๋ฌธ์ž์—ด
๊ฒฝ๊ณ  ๊ตฌ์„ฑ์˜ ๊ณ ์œ  ์‹๋ณ„์ž์ž…๋‹ˆ๋‹ค.
matchers
๊ฐ์ฒด ๋ฐฐ์—ด

์ด ์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ๊ณผ ๊ฐ์ฒด๋ฅผ ์ผ์น˜์‹œํ‚ฌ ๋•Œ ์ ์šฉํ•  ๊ทœ์น™์ž…๋‹ˆ๋‹ค. MongoDB Ops Manager๋Š” ๊ฒฝ๊ณ  ์กฐ๊ฑด์— ๋Œ€ํ•ด ์ด๋Ÿฌํ•œ ๋ชจ๋“  ๊ทœ์น™๊ณผ ์ผ์น˜ํ•˜๋Š” ์—”ํ„ฐํ‹ฐ๋งŒ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

eventTypeName ๊ฐ€ ํ˜ธ์ŠคํŠธ, ๋ณต์ œ๋ณธ ์„ธํŠธ ๋˜๋Š” ์ƒค๋“œ cluster์— ๋Œ€ํ•œ ์ด๋ฒคํŠธ๋ฅผ ์ง€์ •ํ•˜๋Š” ๊ฒฝ์šฐ์—๋งŒ matchers ๋ฐฐ์—ด์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•„ํ„ฐ๋งํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

matchers.fieldName
๋ฌธ์ž์—ด

์ผ์น˜์‹œํ‚ฌ ๋Œ€์ƒ ๊ฐ์ฒด์˜ ํ•„๋“œ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค.

  • ํ˜ธ์ŠคํŠธ ๊ฒฝ๊ณ ๋Š” ์ด๋Ÿฌํ•œ ํ•„๋“œ๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

    • HOSTNAME

    • PORT

    • HOSTNAME_AND_PORT

    • REPLICA_SET_NAME

    • TYPE_NAME

  • ๋ณต์ œ๋ณธ ์„ธํŠธ ๊ฒฝ๊ณ ๋Š” ์ด๋Ÿฌํ•œ ํ•„๋“œ๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

    • REPLICA_SET_NAME

    • SHARD_NAME

    • CLUSTER_NAME

  • Sharded cluster ๊ฒฝ๊ณ ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ•„๋“œ๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

    • CLUSTER_NAME

    • SHARD_NAME

๋‹ค๋ฅธ ๋ชจ๋“  ์œ ํ˜•์˜ ๊ฒฝ๊ณ ๋Š” ๋งค์ฒ˜๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

matchers.operator
๋ฌธ์ž์—ด

ํ•„๋“œ ๊ฐ’์„ ํ…Œ์ŠคํŠธํ•˜๋Š” ์—ฐ์‚ฐ์ž์ž…๋‹ˆ๋‹ค. ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • EQUALS

  • NOT_EQUALS

  • CONTAINS

  • NOT_CONTAINS

  • STARTS_WITH

  • ENDS_WITH

  • REGEX

matchers.value
๋ฌธ์ž์—ด

์ง€์ •๋œ ์—ฐ์‚ฐ์ž๋กœ ํ…Œ์ŠคํŠธํ•  ๊ฐ’์ž…๋‹ˆ๋‹ค.

matchers.fieldName ๋กœ ์„ค์ •๋œ TYPE_NAME ๊ฒฝ์šฐ ๋‹ค์Œ ๊ฐ’์„ ์ผ์น˜์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • PRIMARY

  • SECONDARY

  • STANDALONE

  • CONFIG

  • MONGOS

metricThreshold
๊ฐ์ฒด
์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์ด ๊ฒฝ๊ณ ๋ฅผ trigger ํ•˜๋„๋ก ํ•˜๋Š” ์ž„๊ณ„๊ฐ’์ž…๋‹ˆ๋‹ค. eventTypeName ์ด(๊ฐ€) OUTSIDE_METRIC_THRESHOLD(์œผ)๋กœ ์„ค์ •๋œ ๊ฒฝ์šฐ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
metricThreshold.metricName
๋ฌธ์ž์—ด
ํ™•์ธํ•  ์ง€ํ‘œ์˜ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. globalAlerts ๋ฆฌ์†Œ์Šค ์˜ metricName ํ•„๋“œ ์™€ ๋™์ผํ•œ ๊ฐ’์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๊ฐ’ ๋ชฉ๋ก์€ ๊ธ€๋กœ๋ฒŒ ๊ฒฝ๊ณ ์˜ ์ธก์ • ์œ ํ˜•์„ ์ฐธ์กฐํ•˜์„ธ์š”.
metricThreshold.mode
๋ฌธ์ž์—ด
์ด ๊ฐ’์€ AVERAGE ์œผ)๋กœ ์„ค์ •๋˜๊ณ  ํ˜„์žฌ ์ง€ํ‘œ ๊ฐ’์„ ํ‰๊ท ์œผ๋กœ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค.
metricThreshold.operator
๋ฌธ์ž์—ด

metricThreshold.threshold ์— ๋Œ€ํ•ด ํ˜„์žฌ ์ง€ํ‘œ ๊ฐ’์„ ํ™•์ธํ•  ๋•Œ ์ ์šฉํ•  ์—ฐ์‚ฐ์ž์ž…๋‹ˆ๋‹ค. ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • GREATER_THAN

  • LESS_THAN

metricThreshold.threshold
์ˆซ์ž
์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์„ ๋ฒ—์–ด๋‚˜๋Š” ์ž„๊ณ„๊ฐ’์œผ๋กœ Atlas๊ฐ€ ๊ฒฝ๊ณ ๋ฅผ ํŠธ๋ฆฌ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.
metricThreshold.units
๋ฌธ์ž์—ด

metricThreshold.threshold ์˜ ๋‹จ์œ„์ž…๋‹ˆ๋‹ค. ๋‹จ์œ„๋Š” ๋ฉ”ํŠธ๋ฆญ ์œ ํ˜•์— ๋”ฐ๋ผ ๋‹ค๋ฆ…๋‹ˆ๋‹ค.

ํ—ˆ์šฉ๋˜๋Š” ๊ฐ’์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • RAW

  • BITS

  • BYTES

  • KILOBITS

  • KILOBYTES

  • MEGABITS

  • MEGABYTES

  • GIGABITS

  • GIGABYTES

  • TERABYTES

  • PETABYTES

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

์˜ˆ๋ฅผ ์˜ˆ์‹œ ๋ฉ”๋ชจ๋ฆฌ ์†Œ๋น„๋ฅผ ์ธก์ •ํ•˜๋Š” ์ง€ํ‘œ์—๋Š” BYTES, ์‹œ๊ฐ„์„ ์ธก์ •ํ•˜๋Š” ์ง€ํ‘œ์—๋Š” HOURS ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

notifications
๊ฐ์ฒด ๋ฐฐ์—ด
์•Œ๋ฆผ MongoDB Ops Manager๋Š” ์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์—์„œ ์„ค๋ช…ํ•˜๋Š” ๊ฒฝ๊ณ ๋ฅผ ๊ฐ์ง€ํ•˜๋ฉด ์ „์†กํ•ฉ๋‹ˆ๋‹ค.
notifications.apiToken
๋ฌธ์ž์—ด

Slack API ํ† ํฐ ๋˜๋Š” Bot ํ† ํฐ. SLACK ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ๋‚˜์ค‘์— ํ† ํฐ์ด ์œ ํšจํ•˜์ง€ ์•Š๊ฒŒ ๋˜๋ฉด MongoDB Ops Manager๋Š” ํ”„๋กœ์ ํŠธ ์†Œ์œ ์ž์—๊ฒŒ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ด๊ณ  ํ† ํฐ์„ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.

API ๋˜๋Š” ํ†ตํ•ฉ ํ‚ค๊ฐ€ ํ•„์š”ํ•œ ํƒ€์‚ฌ ํ†ตํ•ฉ์„ ์ƒ์„ฑํ•œ ํ›„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฝ์šฐ ํ‚ค๊ฐ€ ๋ถ€๋ถ„์ ์œผ๋กœ ํŽธ์ง‘๋œ ์ƒํƒœ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

  • UI๋ฅผ ํ†ตํ•ด ๊ฒฝ๊ณ ๋ฅผ ๋ณด๊ฑฐ๋‚˜ ํŽธ์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  • API ๋ฅผ ํ†ตํ•ด ํƒ€์‚ฌ ํ†ตํ•ฉ ์„ค์ •์„ ์ฟผ๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

notifications.channelName
๋ฌธ์ž์—ด
Slack ์ฑ„๋„ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. SLACK ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
notifications.delayMin
์ˆซ์ž
๊ฒฝ๊ณ  ์กฐ๊ฑด์ด ๊ฐ์ง€๋œ ํ›„ MongoDB Ops Manager๊ฐ€ ์ฒซ ๋ฒˆ์งธ ์•Œ๋ฆผ์„ ๋ณด๋‚ด๊ธฐ ์ „์— ๋Œ€๊ธฐํ•  ์‹œ๊ฐ„(๋ถ„)์ž…๋‹ˆ๋‹ค.
notifications.emailAddress
๋ฌธ์ž์—ด
์•Œ๋ฆผ์„ ๋ณด๋‚ผ ์ด๋ฉ”์ผ ์ฃผ์†Œ์ž…๋‹ˆ๋‹ค. EMAIL ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
notifications.emailEnabled
๋ถ€์šธ
MongoDB Ops Manager๊ฐ€ ์ด๋ฉ”์ผ ์•Œ๋ฆผ์„ ๋ณด๋‚ผ์ง€ ์—ฌ๋ถ€๋ฅผ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค. GROUP ๋ฐ USER ์•Œ๋ฆผ์—๋งŒ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.
notifications.intervalMin
์ˆซ์ž
์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์ด Atlas๊ฐ€ ํŠธ๋ฆฌ๊ฑฐํ•˜๋Š” ํ™•์ธ๋˜์ง€ ์•Š์•˜๊ฑฐ๋‚˜ ํ•ด๊ฒฐ๋˜์ง€ ์•Š์€ ๊ฒฝ๊ณ ์— ๋Œ€ํ•œ ์—ฐ์† ์•Œ๋ฆผ ์‚ฌ์ด์— ๋Œ€๊ธฐํ•  ์‹œ๊ฐ„(๋ถ„)์ž…๋‹ˆ๋‹ค.
notifications.[n]
.webhookSecret
๋ฌธ์ž์—ด

์•Œ๋ฆผ์„ ์ˆ˜๋ฝํ•˜๊ณ  ์ „๋‹ฌํ•˜๋Š” Webhook์œผ๋กœ ์ธ์ฆํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ๊ฐ’์ž…๋‹ˆ๋‹ค.

Ops Manager๋Š” notifications.[n].typeName ์„(๋ฅผ) WEBHOOK (์œผ)๋กœ ์„ค์ •ํ•˜๊ฑฐ๋‚˜ ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์— ํ•ด๋‹นํ•˜๋Š” ๊ฒฝ์šฐ ์ด ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

  • notification.[n].webhookSecret ์„(๋ฅผ) ๋น„์–ด ์žˆ์ง€ ์•Š์€ ๋ฌธ์ž์—ด๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

  • ๊ด€๋ฆฌ ์ฝ˜์†”์—์„œ ๊ธฐ๋ณธ๊ฐ’ webhookSecret ๋ฅผ ์„ค์ •ํ•˜๋‹ค ํ•ฉ๋‹ˆ๋‹ค.

์›นํ›… ์•Œ๋ฆผ์„ ์ƒ์„ฑํ•œ ํ›„ ๊ฒฝ๊ณ  ๋ฅผ ๋ณด๊ฑฐ๋‚˜ ํŽธ์ง‘ํ•  ๋•Œ URL ์ด ๋ถ€๋ถ„์ ์œผ๋กœ ์ˆ˜์ •๋˜๊ณ  ์‹œํฌ๋ฆฟ์€ ์™„์ „ํžˆ ์ˆ˜์ •๋ฉ๋‹ˆ๋‹ค.

notifications.[n]
.webhookUrl
๋ฌธ์ž์—ด

์ด ์•Œ๋ฆผ์„ Atlas Triggers ์›นํ›…์˜ URL ์ž…๋‹ˆ๋‹ค.

Ops Manager๋Š” notifications.[n].typeName ์„(๋ฅผ) WEBHOOK (์œผ)๋กœ ์„ค์ •ํ•˜๊ฑฐ๋‚˜ ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜์— ํ•ด๋‹นํ•˜๋Š” ๊ฒฝ์šฐ ์ด ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

  • notification.[n].webhookURL ์„(๋ฅผ) ๋น„์–ด ์žˆ์ง€ ์•Š์€ ๋ฌธ์ž์—ด๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

  • ๊ด€๋ฆฌ ์ฝ˜์†” ํŽ˜์ด์ง€์—์„œ ๊ธฐ๋ณธ๊ฐ’ webhookUrl ๋ฅผ ์„ค์ •ํ•˜๋‹ค ํ•ฉ๋‹ˆ๋‹ค.

์›นํ›… ์•Œ๋ฆผ์„ ์ƒ์„ฑํ•œ ํ›„ ๊ฒฝ๊ณ  ๋ฅผ ๋ณด๊ฑฐ๋‚˜ ํŽธ์ง‘ํ•  ๋•Œ URL ์ด ๋ถ€๋ถ„์ ์œผ๋กœ ์ˆ˜์ •๋˜๊ณ  ์‹œํฌ๋ฆฟ์€ ์™„์ „ํžˆ ์ˆ˜์ •๋ฉ๋‹ˆ๋‹ค.

notifications.microsoftTeamsWebhookUrl
๋ฌธ์ž์—ด

Microsoft Teams ์ฑ„๋„ ์ˆ˜์‹  ์›นํ›… URL์ž…๋‹ˆ๋‹ค. MICROSOFT_TEAMS ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

์›นํ›„ํฌ ์•Œ๋ฆผ์— ๋Œ€ํ•œ ๊ฒฝ๊ณ ๋ฅผ ๋ณด๊ฑฐ๋‚˜ ํŽธ์ง‘ํ•  ๋•Œ URL์€ ๋ถ€๋ถ„์ ์œผ๋กœ ํŽธ์ง‘๋œ ์ƒํƒœ๋กœ ํ‘œ์‹œ๋˜๊ณ  ๋น„๋ฐ€๋ฒˆํ˜ธ๋Š” ์™„์ „ํžˆ ํŽธ์ง‘๋œ ์ƒํƒœ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

notifications.notificationToken
๋ฌธ์ž์—ด

HipChat API ํ† ํฐ. HIP_CHAT ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ๋‚˜์ค‘์— ํ† ํฐ์ด ์œ ํšจํ•˜์ง€ ์•Š๊ฒŒ ๋˜๋ฉด MongoDB Ops Manager๋Š” ํ”„๋กœ์ ํŠธ ์†Œ์œ ์ž์—๊ฒŒ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ด๊ณ  ํ† ํฐ์„ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.

API ๋˜๋Š” ํ†ตํ•ฉ ํ‚ค๊ฐ€ ํ•„์š”ํ•œ ํƒ€์‚ฌ ํ†ตํ•ฉ์„ ์ƒ์„ฑํ•œ ํ›„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฝ์šฐ ํ‚ค๊ฐ€ ๋ถ€๋ถ„์ ์œผ๋กœ ํŽธ์ง‘๋œ ์ƒํƒœ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

  • UI๋ฅผ ํ†ตํ•ด ๊ฒฝ๊ณ ๋ฅผ ๋ณด๊ฑฐ๋‚˜ ํŽธ์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  • API ๋ฅผ ํ†ตํ•ด ํƒ€์‚ฌ ํ†ตํ•ฉ ์„ค์ •์„ ์ฟผ๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

notifications.roomName
๋ฌธ์ž์—ด
HipChat ์ฑ„ํŒ…๋ฐฉ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. HIP_CHAT ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
notifications.serviceKey
๋ฌธ์ž์—ด

PagerDuty ํ†ตํ•ฉ ํ‚ค์ž…๋‹ˆ๋‹ค. PAGER_DUTY ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ๋‚˜์ค‘์— ํ‚ค๊ฐ€ ์œ ํšจํ•˜์ง€ ์•Š๊ฒŒ ๋˜๋ฉด MongoDB Ops Manager๋Š” ํ”„๋กœ์ ํŠธ ์†Œ์œ ์ž์—๊ฒŒ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ด๊ณ  ํ‚ค๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.

API ๋˜๋Š” ํ†ตํ•ฉ ํ‚ค๊ฐ€ ํ•„์š”ํ•œ ํƒ€์‚ฌ ํ†ตํ•ฉ์„ ์ƒ์„ฑํ•œ ํ›„ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ฒฝ์šฐ ํ‚ค๊ฐ€ ๋ถ€๋ถ„์ ์œผ๋กœ ํŽธ์ง‘๋œ ์ƒํƒœ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

  • UI๋ฅผ ํ†ตํ•ด ๊ฒฝ๊ณ ๋ฅผ ๋ณด๊ฑฐ๋‚˜ ํŽธ์ง‘ํ•ฉ๋‹ˆ๋‹ค.

  • API ๋ฅผ ํ†ตํ•ด ํƒ€์‚ฌ ํ†ตํ•ฉ ์„ค์ •์„ ์ฟผ๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

notifications.smsEnabled
๋ถ€์šธ
MongoDB Ops Manager๊ฐ€ SMS ์•Œ๋ฆผ์„ ๋ณด๋‚ผ์ง€ ์—ฌ๋ถ€๋ฅผ ํ† ๊ธ€ํ•ฉ๋‹ˆ๋‹ค. GROUP ๋ฐ USER ์•Œ๋ฆผ์—๋งŒ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.
notifications.typeName
๋ฌธ์ž์—ด

์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์˜ ๊ฒฝ๊ณ  ์•Œ๋ฆผ ์œ ํ˜• Atlas Triggers์ž…๋‹ˆ๋‹ค. ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • ADMIN

  • GROUP

  • USER

  • EMAIL

  • SMS ( MongoDB Ops Manager ๊ฐ€ Twilio ํ†ตํ•ฉ ์„ ์œ„ํ•ด ๊ตฌ์„ฑ๋œ ๊ฒฝ์šฐ์—๋งŒ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.)

  • HIPCHAT

  • SLACK

  • PAGER_DUTY

notifications.username
๋ฌธ์ž์—ด
์•Œ๋ฆผ์„ ๋ณด๋‚ผ MongoDB Ops Manager ์‚ฌ์šฉ์ž์˜ ์ด๋ฆ„์ž…๋‹ˆ๋‹ค. USER ์•Œ๋ฆผ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
threshold
๊ฐ์ฒด

์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์ด ๊ฒฝ๊ณ ๋ฅผ trigger ํ•˜๋„๋ก ํ•˜๋Š” ์ž„๊ณ„๊ฐ’์ž…๋‹ˆ๋‹ค. eventTypeName ์ด ๋‹ค์Œ ๊ฐ’ ์ค‘ ํ•˜๋‚˜๋กœ ์„ค์ •๋œ ๊ฒฝ์šฐ์—๋งŒ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

  • TOO_FEW_HEALTHY_MEMBERS

  • TOO_MANY_UNHEALTHY_MEMBERS

threshold.operator
๋ฌธ์ž์—ด

threshold.threshold ์— ๋Œ€ํ•ด ํ˜„์žฌ ์ง€ํ‘œ ๊ฐ’์„ ํ™•์ธํ•  ๋•Œ ์ ์šฉํ•  ์—ฐ์‚ฐ์ž์ž…๋‹ˆ๋‹ค. ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • GREATER_THAN

  • LESS_THAN

threshold.threshold
์ˆซ์ž
์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์„ ๋ฒ—์–ด๋‚˜๋Š” ์ž„๊ณ„๊ฐ’์œผ๋กœ Atlas๊ฐ€ ๊ฒฝ๊ณ ๋ฅผ ํŠธ๋ฆฌ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.
tags
๋ฌธ์ž์—ด ๋ฐฐ์—ด
์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ๊ณผ ์—ฐ๊ฒฐ๋œ ํƒœ๊ทธ์ž…๋‹ˆ๋‹ค.
typeName
๋ฌธ์ž์—ด
์ด ํ•„๋“œ๋Š” ๋” ์ด์ƒ ์‚ฌ์šฉ๋˜์ง€ ์•Š์œผ๋ฉฐ ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค.
updated
๋ฌธ์ž์—ด
ISO 8601 ์˜ ํƒ€์ž„์Šคํƒฌํ”„ ์ด ๊ฒฝ๊ณ  ๊ตฌ์„ฑ์ด ๋งˆ์ง€๋ง‰์œผ๋กœ ์—…๋ฐ์ดํŠธ๋œ ๋‚ ์งœ ๋ฐ ์‹œ๊ฐ„ ํ˜•์‹(UTC )์ž…๋‹ˆ๋‹ค.
1curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
2 --header "Accept: application/json" \
3 --header "Content-Type: application/json" \
4 --include \
5 --request PATCH "https://<OpsManagerHost>:<Port>/api/public/v1.0/globalAlertConfigs/{GLOBAL-ALERT-CONFIG-ID}" \
6 --data '{
7 "enabled" : false
8 }'
HTTP/1.1 401 Unauthorized
Content-Type: application/json;charset=ISO-8859-1
Date: {dateInUnixFormat}
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false
Content-Length: {requestLengthInBytes}
Connection: keep-alive
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json
Strict-Transport-Security: max-age=300
Date: {dateInUnixFormat}
Connection: keep-alive
Content-Length: {requestLengthInBytes}
X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
1{
2 "created": "2019-10-02T12:34:04Z",
3 "enabled": false,
4 "eventTypeName": "BACKUP_AGENT_DOWN",
5 "forAllGroups": true,
6 "groupIds": [],
7 "id": "{GLOBAL-ALERT-CONFIG-ID}",
8 "links": [
9 ],
10 "matchers": [],
11 "notifications": [
12 {
13 "delayMin": 0,
14 "intervalMin": 60,
15 "typeName": "ADMIN"
16 }
17 ],
18 "tags": [],
19 "typeName": "AGENT",
20 "updated": "2019-10-02T12:34:04Z"
21}

๋Œ์•„๊ฐ€๊ธฐ

1๊ฐœ์˜ ์ „์—ญ ๊ฒฝ๊ณ  ๊ตฌ์„ฑ ์—…๋ฐ์ดํŠธ