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

๋ชจ๋‹ˆํ„ฐ๋ง ๊ตฌ์„ฑ ์„ค์ • ์—…๋ฐ์ดํŠธ

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

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

์ด ๋ฆฌ์†Œ์Šค ์—๋Š” Project Automation Admin ์—ญํ•  ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

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

PUT /groups/{PROJECT-ID}/automationConfig/monitoringAgentConfig
์ด๋ฆ„
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…

ํ”„๋กœ์ ํŠธ ID

๋ฌธ์ž์—ด

ํ•„์ˆ˜ ์‚ฌํ•ญ

๊ตฌ์„ฑ์„ ์†Œ์œ ํ•œ 24ํ”„๋กœ์ ํŠธ ๋ฅผ string ์‹๋ณ„ํ•˜๋Š” ๊ณ ์œ ํ•œ -16์ง„์ˆ˜ ์ž…๋‹ˆ๋‹ค.

๋‹ค์Œ ์ฟผ๋ฆฌ ๋งค๊ฐœ๋ณ€์ˆ˜๋Š” ์„ ํƒ ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.

์ด๋ฆ„
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…
๊ธฐ๋ณธ๊ฐ’

pretty

๋ถ€์šธ

์˜ต์…˜

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

false

envelope

๋ถ€์šธ

์˜ต์…˜

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

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

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

์ด๋ฆ„
์„ค๋ช…

์ƒํƒœ

HTTP ์‘๋‹ต ์ฝ”๋“œ

envelope

์˜ˆ์ƒ๋˜๋Š” ์‘๋‹ต ๋ณธ๋ฌธ

false

MongoDB Agent๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋Ÿฌํ•œ ์„ค์ •์„ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด ์š”์ฒญ ๋ณธ๋ฌธ์— ์ด๋Ÿฌํ•œ ๋งค๊ฐœ๋ณ€์ˆ˜ ์ค‘ ํ•˜๋‚˜ ์ด์ƒ์„ ํฌํ•จํ•˜์„ธ์š”.

Parameter
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…

configOverrides

๊ฐ์ฒด

์˜ต์…˜

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

์„ค์ •
๋ฐ์ดํ„ฐ ์œ ํ˜•

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ถ€์šธ

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ถ€์šธ

enableMunin

๋ถ€์šธ

logPath

๋ฌธ์ž์—ด

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋กœ๊ทธ๋ฅผ ๊ธฐ๋กํ•˜๋Š” ์ ˆ๋Œ€ ํŒŒ์ผ ๊ฒฝ๋กœ์ž…๋‹ˆ๋‹ค. ์ด๋ฅผ ์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ๋กœ๊ทธ๋Š” UNIX ๋ฐ Linux ๊ธฐ๋ฐ˜ ์‹œ์Šคํ…œ์—์„œ๋Š” ํ‘œ์ค€ ์˜ค๋ฅ˜(stderr)์— ๊ธฐ๋ก๋˜๊ณ  Windows ์‹œ์Šคํ…œ์—์„œ๋Š” ์ด๋ฒคํŠธ ๋กœ๊ทธ์— ๊ธฐ๋ก๋ฉ๋‹ˆ๋‹ค.

๋กœ๊ทธ ํšŒ์ „

๊ฐ์ฒด

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋ชจ๋‹ˆํ„ฐ๋ง ๋กœ๊ทธ๋ฅผ ๋กœํ…Œ์ด์…˜ํ•˜๋Š” ์ž„๊ณ„๊ฐ’์ž…๋‹ˆ๋‹ค.

logRotate
.sizeThresholdMB

integer

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋กœ๊ทธ ํŒŒ์ผ์„ ๋กœํ…Œ์ด์…˜ํ•˜๊ธฐ ์ „์˜ ๋กœ๊ทธ ํŒŒ์ผ์˜ ์ตœ๋Œ€ ํฌ๊ธฐ(MB)์ž…๋‹ˆ๋‹ค.

logRotate
.timeDurationHrs

integer

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋กœ๊ทธ ํŒŒ์ผ์„ ๋กœํ…Œ์ด์…˜ํ•˜๊ธฐ ์ „๊นŒ์ง€์˜ ์‹œ๊ฐ„(์‹œ๊ฐ„)์ž…๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž ์ด๋ฆ„

๋ฌธ์ž์—ด

์˜ต์…˜

๋ชจ๋‹ˆํ„ฐ๋ง ๋กœ๊ทธ๋ฅผ managedํ•˜๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ MongoDB ์‚ฌ์šฉ์ž์ž…๋‹ˆ๋‹ค.

API ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB ์—์ด์ „ํŠธ์— ๋Œ€ํ•œ ์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋Š” ๊ฒฝ์šฐ, ์ด ์—”๋“œํฌ์ธํŠธ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ ์ด ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ mms-automation์œผ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

Parameter
์œ ํ˜•
ํ•„์š”์„ฑ
์„ค๋ช…

configOverrides

๊ฐ์ฒด

์˜ต์…˜

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

์„ค์ •
๋ฐ์ดํ„ฐ ์œ ํ˜•

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ถ€์šธ

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ฌธ์ž์—ด

๋ถ€์šธ

enableMunin

๋ถ€์šธ

logPath

๋ฌธ์ž์—ด

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋กœ๊ทธ๋ฅผ ๊ธฐ๋กํ•˜๋Š” ์ ˆ๋Œ€ ํŒŒ์ผ ๊ฒฝ๋กœ์ž…๋‹ˆ๋‹ค. ์ด๋ฅผ ์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ๋กœ๊ทธ๋Š” UNIX ๋ฐ Linux ๊ธฐ๋ฐ˜ ์‹œ์Šคํ…œ์—์„œ๋Š” ํ‘œ์ค€ ์˜ค๋ฅ˜(stderr)์— ๊ธฐ๋ก๋˜๊ณ  Windows ์‹œ์Šคํ…œ์—์„œ๋Š” ์ด๋ฒคํŠธ ๋กœ๊ทธ์— ๊ธฐ๋ก๋ฉ๋‹ˆ๋‹ค.

๋กœ๊ทธ ํšŒ์ „

๊ฐ์ฒด

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋ชจ๋‹ˆํ„ฐ๋ง ๋กœ๊ทธ๋ฅผ ๋กœํ…Œ์ด์…˜ํ•˜๋Š” ์ž„๊ณ„๊ฐ’์ž…๋‹ˆ๋‹ค.

logRotate
.sizeThresholdMB

integer

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋กœ๊ทธ ํŒŒ์ผ์„ ๋กœํ…Œ์ด์…˜ํ•˜๊ธฐ ์ „์˜ ๋กœ๊ทธ ํŒŒ์ผ์˜ ์ตœ๋Œ€ ํฌ๊ธฐ(MB)์ž…๋‹ˆ๋‹ค.

logRotate
.timeDurationHrs

integer

์˜ต์…˜

์ด MongoDB Agent๊ฐ€ ๋กœ๊ทธ ํŒŒ์ผ์„ ๋กœํ…Œ์ด์…˜ํ•˜๊ธฐ ์ „๊นŒ์ง€์˜ ์‹œ๊ฐ„(์‹œ๊ฐ„)์ž…๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž ์ด๋ฆ„

๋ฌธ์ž์—ด

์˜ต์…˜

๋ชจ๋‹ˆํ„ฐ๋ง ๋กœ๊ทธ๋ฅผ managedํ•˜๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ MongoDB ์‚ฌ์šฉ์ž์ž…๋‹ˆ๋‹ค.

API ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MongoDB ์—์ด์ „ํŠธ์— ๋Œ€ํ•œ ์ธ์ฆ์„ ํ™œ์„ฑํ™”ํ•˜๋Š” ๊ฒฝ์šฐ, ์ด ์—”๋“œํฌ์ธํŠธ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ ์ด ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ mms-automation์œผ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

1curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
2 --header "Accept: application/json" \
3 --header "Content-Type: application/json" \
4 --include \
5 --request PUT "https://<OpsManagerHost>:<Port>/api/public/v1.0/groups/{PROJECT-ID}/automationConfig/monitoringAgentConfig"
6 --data '{
7 "configOverrides" : {
8 "mmsBaseUrl" : "http://new.example.org"
9 },
10 "logPath": "/var/log/mongodb-mms-automation/monitoring-agent.log",
11 "logRotate": {
12 "sizeThresholdMB": 1000,
13 "timeThresholdHrs": 12
14 },
15 "username": "mms-automation"
16 }'
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}

์ด ์—”๋“œํฌ์ธํŠธ๋Š” ๋นˆ JSON ๊ฐ์ฒด๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

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

๋ชจ๋‹ˆํ„ฐ๋ง ๊ตฌ์„ฑ ์„ค์ • ๊ฐ€์ ธ์˜ค๊ธฐ