補足情報

Tips1. curlによるNGINX Agent RESTの結果

参考にNGINX Agentの情報をRESTで取得したサンプルを示します

/metrics

curl -s http://10.1.1.5:8081/metrics/
実行結果サンプル
  1# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
  2# TYPE go_gc_duration_seconds summary
  3go_gc_duration_seconds{quantile="0"} 2.1421e-05
  4go_gc_duration_seconds{quantile="0.25"} 0.000119152
  5go_gc_duration_seconds{quantile="0.5"} 0.000151643
  6go_gc_duration_seconds{quantile="0.75"} 0.000165184
  7go_gc_duration_seconds{quantile="1"} 0.00380504
  8go_gc_duration_seconds_sum 0.006825104
  9go_gc_duration_seconds_count 22
 10# HELP go_goroutines Number of goroutines that currently exist.
 11# TYPE go_goroutines gauge
 12go_goroutines 100
 13# HELP go_info Information about the Go environment.
 14# TYPE go_info gauge
 15go_info{version="go1.19.6"} 1
 16# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
 17# TYPE go_memstats_alloc_bytes gauge
 18go_memstats_alloc_bytes 3.271896e+06
 19# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
 20# TYPE go_memstats_alloc_bytes_total counter
 21go_memstats_alloc_bytes_total 6.613096e+07
 22# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
 23# TYPE go_memstats_buck_hash_sys_bytes gauge
 24go_memstats_buck_hash_sys_bytes 5107
 25# HELP go_memstats_frees_total Total number of frees.
 26# TYPE go_memstats_frees_total counter
 27go_memstats_frees_total 358805
 28# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
 29# TYPE go_memstats_gc_sys_bytes gauge
 30go_memstats_gc_sys_bytes 9.45484e+06
 31# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
 32# TYPE go_memstats_heap_alloc_bytes gauge
 33go_memstats_heap_alloc_bytes 3.271896e+06
 34# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used.
 35# TYPE go_memstats_heap_idle_bytes gauge
 36go_memstats_heap_idle_bytes 6.463488e+06
 37# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use.
 38# TYPE go_memstats_heap_inuse_bytes gauge
 39go_memstats_heap_inuse_bytes 5.20192e+06
 40# HELP go_memstats_heap_objects Number of allocated objects.
 41# TYPE go_memstats_heap_objects gauge
 42go_memstats_heap_objects 9163
 43# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS.
 44# TYPE go_memstats_heap_released_bytes gauge
 45go_memstats_heap_released_bytes 3.97312e+06
 46# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system.
 47# TYPE go_memstats_heap_sys_bytes gauge
 48go_memstats_heap_sys_bytes 1.1665408e+07
 49# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection.
 50# TYPE go_memstats_last_gc_time_seconds gauge
 51go_memstats_last_gc_time_seconds 1.6778511732721324e+09
 52# HELP go_memstats_lookups_total Total number of pointer lookups.
 53# TYPE go_memstats_lookups_total counter
 54go_memstats_lookups_total 0
 55# HELP go_memstats_mallocs_total Total number of mallocs.
 56# TYPE go_memstats_mallocs_total counter
 57go_memstats_mallocs_total 367968
 58# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures.
 59# TYPE go_memstats_mcache_inuse_bytes gauge
 60go_memstats_mcache_inuse_bytes 2400
 61# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system.
 62# TYPE go_memstats_mcache_sys_bytes gauge
 63go_memstats_mcache_sys_bytes 15600
 64# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures.
 65# TYPE go_memstats_mspan_inuse_bytes gauge
 66go_memstats_mspan_inuse_bytes 80640
 67# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system.
 68# TYPE go_memstats_mspan_sys_bytes gauge
 69go_memstats_mspan_sys_bytes 162720
 70# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place.
 71# TYPE go_memstats_next_gc_bytes gauge
 72go_memstats_next_gc_bytes 6.68908e+06
 73# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations.
 74# TYPE go_memstats_other_sys_bytes gauge
 75go_memstats_other_sys_bytes 567957
 76# HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator.
 77# TYPE go_memstats_stack_inuse_bytes gauge
 78go_memstats_stack_inuse_bytes 917504
 79# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator.
 80# TYPE go_memstats_stack_sys_bytes gauge
 81go_memstats_stack_sys_bytes 917504
 82# HELP go_memstats_sys_bytes Number of bytes obtained from system.
 83# TYPE go_memstats_sys_bytes gauge
 84go_memstats_sys_bytes 2.2789136e+07
 85# HELP go_threads Number of OS threads created.
 86# TYPE go_threads gauge
 87go_threads 8
 88# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
 89# TYPE process_cpu_seconds_total counter
 90process_cpu_seconds_total 7.46
 91# HELP process_max_fds Maximum number of open file descriptors.
 92# TYPE process_max_fds gauge
 93process_max_fds 524288
 94# HELP process_open_fds Number of open file descriptors.
 95# TYPE process_open_fds gauge
 96process_open_fds 19
 97# HELP process_resident_memory_bytes Resident memory size in bytes.
 98# TYPE process_resident_memory_bytes gauge
 99process_resident_memory_bytes 2.502656e+07
100# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
101# TYPE process_start_time_seconds gauge
102process_start_time_seconds 1.677851166e+09
103# HELP process_virtual_memory_bytes Virtual memory size in bytes.
104# TYPE process_virtual_memory_bytes gauge
105process_virtual_memory_bytes 7.46848256e+08
106# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
107# TYPE process_virtual_memory_max_bytes gauge
108process_virtual_memory_max_bytes 1.8446744073709552e+19

/nginx

curl -s http://10.1.1.5:8081/nginx/ | jq .
実行結果サンプル
  1[
  2  {
  3    "nginx_id": "b636d4376dea15405589692d3c5d3869ff3a9b26b0e7bb4bb1aa7e658ace1437",
  4    "version": "1.23.2",
  5    "conf_path": "/etc/nginx/nginx.conf",
  6    "process_id": "898",
  7    "process_path": "/usr/sbin/nginx",
  8    "start_time": 1677841975000,
  9    "built_from_source": false,
 10    "loadable_modules": [
 11      "ngx_http_app_protect_dos_module-debug",
 12      "ngx_http_app_protect_dos_module",
 13      "ngx_http_app_protect_module-debug",
 14      "ngx_http_app_protect_module",
 15      "ngx_http_js_module-debug",
 16      "ngx_http_js_module",
 17      "ngx_stream_js_module-debug",
 18      "ngx_stream_js_module"
 19    ],
 20    "runtime_modules": [
 21      "http_addition_module",
 22      "http_auth_request_module",
 23      "http_dav_module",
 24      "http_flv_module",
 25      "http_gunzip_module",
 26      "http_gzip_static_module",
 27      "http_mp4_module",
 28      "http_random_index_module",
 29      "http_realip_module",
 30      "http_secure_link_module",
 31      "http_slice_module",
 32      "http_ssl_module",
 33      "http_stub_status_module",
 34      "http_sub_module",
 35      "http_v2_module",
 36      "mail_ssl_module",
 37      "stream_realip_module",
 38      "stream_ssl_module",
 39      "stream_ssl_preread_module",
 40      "http_auth_jwt_module",
 41      "http_f4f_module",
 42      "http_hls_module",
 43      "http_session_log_module",
 44      "http_proxy_protocol_vendor_module",
 45      "stream_proxy_protocol_vendor_module"
 46    ],
 47    "plus": {
 48      "enabled": true,
 49      "release": "nginx-plus-r28"
 50    },
 51    "ssl": {
 52      "ssl_type": 0,
 53      "details": [
 54        "OpenSSL",
 55        "1.1.1f",
 56        "31 Mar 2020"
 57      ]
 58    },
 59    "status_url": "http://localhost:8080/api",
 60    "configure_args": [
 61      "",
 62      "prefix=/etc/nginx",
 63      "sbin-path=/usr/sbin/nginx",
 64      "modules-path=/usr/lib/nginx/modules",
 65      "conf-path=/etc/nginx/nginx.conf",
 66      "error-log-path=/var/log/nginx/error.log",
 67      "http-log-path=/var/log/nginx/access.log",
 68      "pid-path=/var/run/nginx.pid",
 69      "lock-path=/var/run/nginx.lock",
 70      "http-client-body-temp-path=/var/cache/nginx/client_temp",
 71      "http-proxy-temp-path=/var/cache/nginx/proxy_temp",
 72      "http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp",
 73      "http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp",
 74      "http-scgi-temp-path=/var/cache/nginx/scgi_temp",
 75      "user=nginx",
 76      "group=nginx",
 77      "with-compat",
 78      "with-file-aio",
 79      "with-threads",
 80      "with-http_addition_module",
 81      "with-http_auth_request_module",
 82      "with-http_dav_module",
 83      "with-http_flv_module",
 84      "with-http_gunzip_module",
 85      "with-http_gzip_static_module",
 86      "with-http_mp4_module",
 87      "with-http_random_index_module",
 88      "with-http_realip_module",
 89      "with-http_secure_link_module",
 90      "with-http_slice_module",
 91      "with-http_ssl_module",
 92      "with-http_stub_status_module",
 93      "with-http_sub_module",
 94      "with-http_v2_module",
 95      "with-mail",
 96      "with-mail_ssl_module",
 97      "with-stream",
 98      "with-stream_realip_module",
 99      "with-stream_ssl_module",
100      "with-stream_ssl_preread_module",
101      "build=nginx-plus-r28",
102      "with-http_auth_jwt_module",
103      "with-http_f4f_module",
104      "with-http_hls_module",
105      "with-http_session_log_module",
106      "with-http_proxy_protocol_vendor_module",
107      "with-stream_proxy_protocol_vendor_module",
108      "with-cc-opt='-g -O2 -fdebug-prefix-map=/data/builder/debuild/nginx-plus-1.23.2/debian/debuild-base/nginx-plus-1.23.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC'",
109      "with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'"
110    ]
111  }
112]

Tips2. curlによるモックアプリケーションの結果

/registered

curl -s http://10.1.1.5:54790/registered/ | jq .
実行結果サンプル
  1{
  2  "meta": {
  3    "version": "v2.23.1",
  4    "display_name": "ip-10-1-1-7",
  5    "tag": null,
  6    "instance_group": "",
  7    "updated": {
  8      "seconds": 1677820999,
  9      "nanos": 203935155
 10    },
 11    "system_uid": "b437d630-5171-3284-b7b6-0c8087f7ee5e",
 12    "agent_details": {
 13      "features": [
 14        "features_registration",
 15        "features_nginx-config",
 16        "features_nginx-ssl-config",
 17        "features_nginx-counting",
 18        "features_nginx-config-async",
 19        "features_metrics",
 20        "features_metrics-throttle",
 21        "features_dataplane-status",
 22        "features_process-watcher",
 23        "features_file-watcher",
 24        "features_activity-events",
 25        "features_agent-api"
 26      ],
 27      "extensions": null,
 28      "tags": null,
 29      "alias": ""
 30    }
 31  },
 32  "details": [
 33    {
 34      "nginx_id": "b636d4376dea15405589692d3c5d3869ff3a9b26b0e7bb4bb1aa7e658ace1437",
 35      "version": "1.23.2",
 36      "conf_path": "/etc/nginx/nginx.conf",
 37      "process_id": "898",
 38      "process_path": "/usr/sbin/nginx",
 39      "start_time": 1677841975000,
 40      "built_from_source": false,
 41      "loadable_modules": [
 42        "ngx_http_app_protect_dos_module-debug",
 43        "ngx_http_app_protect_dos_module",
 44        "ngx_http_app_protect_module-debug",
 45        "ngx_http_app_protect_module",
 46        "ngx_http_js_module-debug",
 47        "ngx_http_js_module",
 48        "ngx_stream_js_module-debug",
 49        "ngx_stream_js_module"
 50      ],
 51      "runtime_modules": [
 52        "http_addition_module",
 53        "http_auth_request_module",
 54        "http_dav_module",
 55        "http_flv_module",
 56        "http_gunzip_module",
 57        "http_gzip_static_module",
 58        "http_mp4_module",
 59        "http_random_index_module",
 60        "http_realip_module",
 61        "http_secure_link_module",
 62        "http_slice_module",
 63        "http_ssl_module",
 64        "http_stub_status_module",
 65        "http_sub_module",
 66        "http_v2_module",
 67        "mail_ssl_module",
 68        "stream_realip_module",
 69        "stream_ssl_module",
 70        "stream_ssl_preread_module",
 71        "http_auth_jwt_module",
 72        "http_f4f_module",
 73        "http_hls_module",
 74        "http_session_log_module",
 75        "http_proxy_protocol_vendor_module",
 76        "stream_proxy_protocol_vendor_module"
 77      ],
 78      "plus": {
 79        "enabled": true,
 80        "release": "nginx-plus-r28"
 81      },
 82      "ssl": {
 83        "ssl_type": 0,
 84        "details": [
 85          "OpenSSL",
 86          "1.1.1f",
 87          "31 Mar 2020"
 88        ]
 89      },
 90      "status_url": "http://localhost:8080/api",
 91      "configure_args": [
 92        "",
 93        "prefix=/etc/nginx",
 94        "sbin-path=/usr/sbin/nginx",
 95        "modules-path=/usr/lib/nginx/modules",
 96        "conf-path=/etc/nginx/nginx.conf",
 97        "error-log-path=/var/log/nginx/error.log",
 98        "http-log-path=/var/log/nginx/access.log",
 99        "pid-path=/var/run/nginx.pid",
100        "lock-path=/var/run/nginx.lock",
101        "http-client-body-temp-path=/var/cache/nginx/client_temp",
102        "http-proxy-temp-path=/var/cache/nginx/proxy_temp",
103        "http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp",
104        "http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp",
105        "http-scgi-temp-path=/var/cache/nginx/scgi_temp",
106        "user=nginx",
107        "group=nginx",
108        "with-compat",
109        "with-file-aio",
110        "with-threads",
111        "with-http_addition_module",
112        "with-http_auth_request_module",
113        "with-http_dav_module",
114        "with-http_flv_module",
115        "with-http_gunzip_module",
116        "with-http_gzip_static_module",
117        "with-http_mp4_module",
118        "with-http_random_index_module",
119        "with-http_realip_module",
120        "with-http_secure_link_module",
121        "with-http_slice_module",
122        "with-http_ssl_module",
123        "with-http_stub_status_module",
124        "with-http_sub_module",
125        "with-http_v2_module",
126        "with-mail",
127        "with-mail_ssl_module",
128        "with-stream",
129        "with-stream_realip_module",
130        "with-stream_ssl_module",
131        "with-stream_ssl_preread_module",
132        "build=nginx-plus-r28",
133        "with-http_auth_jwt_module",
134        "with-http_f4f_module",
135        "with-http_hls_module",
136        "with-http_session_log_module",
137        "with-http_proxy_protocol_vendor_module",
138        "with-stream_proxy_protocol_vendor_module",
139        "with-cc-opt='-g -O2 -fdebug-prefix-map=/data/builder/debuild/nginx-plus-1.23.2/debian/debuild-base/nginx-plus-1.23.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC'",
140        "with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'"
141      ]
142    }
143  ],
144  "host": {
145    "agent": "v2.23.1",
146    "boot": 1677841813,
147    "hostname": "ip-10-1-1-7",
148    "display_name": "ip-10-1-1-7",
149    "os-type": "linux",
150    "uuid": "b437d630-5171-3284-b7b6-0c8087f7ee5e",
151    "uname": "x86_64",
152    "disk_partitions": [
153      {
154        "mountpoint": "/",
155        "device": "/dev/nvme0n1p1",
156        "fstype": "ext4"
157      },
158      {
159        "mountpoint": "/snap/lxd/24061",
160        "device": "/dev/loop6",
161        "fstype": "squashfs"
162      },
163      {
164        "mountpoint": "/snap/snapd/18357",
165        "device": "/dev/loop7",
166        "fstype": "squashfs"
167      },
168      {
169        "mountpoint": "/snap/amazon-ssm-agent/6312",
170        "device": "/dev/loop0",
171        "fstype": "squashfs"
172      },
173      {
174        "mountpoint": "/snap/core20/1778",
175        "device": "/dev/loop1",
176        "fstype": "squashfs"
177      },
178      {
179        "mountpoint": "/snap/core20/1822",
180        "device": "/dev/loop5",
181        "fstype": "squashfs"
182      },
183      {
184        "mountpoint": "/snap/amazon-ssm-agent/5656",
185        "device": "/dev/loop3",
186        "fstype": "squashfs"
187      },
188      {
189        "mountpoint": "/snap/snapd/17950",
190        "device": "/dev/loop9",
191        "fstype": "squashfs"
192      },
193      {
194        "mountpoint": "/snap/core18/2667",
195        "device": "/dev/loop2",
196        "fstype": "squashfs"
197      },
198      {
199        "mountpoint": "/snap/lxd/22753",
200        "device": "/dev/loop8",
201        "fstype": "squashfs"
202      },
203      {
204        "mountpoint": "/snap/core18/2697",
205        "device": "/dev/loop4",
206        "fstype": "squashfs"
207      }
208    ],
209    "network": {
210      "interfaces": [
211        {
212          "mac": "",
213          "ipv6": [
214            {
215              "prefixlen": 128,
216              "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
217              "address": "::1"
218            }
219          ],
220          "ipv4": [
221            {
222              "prefixlen": 8,
223              "netmask": "255.0.0.0",
224              "address": "127.0.0.1"
225            }
226          ],
227          "name": "lo"
228        },
229        {
230          "mac": "06:f1:3b:30:df:c5",
231          "ipv6": [
232            {
233              "prefixlen": 64,
234              "netmask": "ffff:ffff:ffff:ffff::",
235              "address": "fe80::4f1:3bff:fe30:dfc5"
236            }
237          ],
238          "ipv4": [
239            {
240              "prefixlen": 24,
241              "netmask": "255.255.255.0",
242              "address": "10.1.1.5"
243            }
244          ],
245          "name": "ens5"
246        }
247      ],
248      "default": "lo"
249    },
250    "processor": [
251      {
252        "model": "1",
253        "cores": 1,
254        "architecture": "23",
255        "mhz": 2199.99,
256        "hypervisor": "",
257        "cpus": 2,
258        "virtualization": "",
259        "cache": {
260          "Cacheline bytes:": "64",
261          "Features:": "ADX,AESNI,AVX,AVX2,AVXSLOW,BMI1,BMI2,CLMUL,CLZERO,CMOV,CMPXCHG8,CX16,F16C,FMA3,FXSR,FXSROPT,HTT,HYPERVISOR,LAHF,LZCNT,MMX,MMXEXT,MOVBE,NX,OSXSAVE,POPCNT,RDRAND,RDSEED,RDTSCP,SCE,SHA,SSE,SSE2,SSE3,SSE4,SSE42,SSE4A,SSSE3,X87,XGETBV1,XSAVE,XSAVEC,XSAVEOPT",
262          "L1d": "32768",
263          "L1i": "32768",
264          "L2": "524288",
265          "L3": "8388608",
266          "SIMD 2:": "Streaming SIMD 2 Extensions"
267        }
268      },
269      {
270        "model": "1",
271        "cores": 1,
272        "architecture": "23",
273        "mhz": 2199.99,
274        "hypervisor": "",
275        "cpus": 2,
276        "virtualization": "",
277        "cache": {
278          "Cacheline bytes:": "64",
279          "Features:": "ADX,AESNI,AVX,AVX2,AVXSLOW,BMI1,BMI2,CLMUL,CLZERO,CMOV,CMPXCHG8,CX16,F16C,FMA3,FXSR,FXSROPT,HTT,HYPERVISOR,LAHF,LZCNT,MMX,MMXEXT,MOVBE,NX,OSXSAVE,POPCNT,RDRAND,RDSEED,RDTSCP,SCE,SHA,SSE,SSE2,SSE3,SSE4,SSE42,SSE4A,SSSE3,X87,XGETBV1,XSAVE,XSAVEC,XSAVEOPT",
280          "L1d": "32768",
281          "L1i": "32768",
282          "L2": "524288",
283          "L3": "8388608",
284          "SIMD 2:": "Streaming SIMD 2 Extensions"
285        }
286      }
287    ],
288    "release": {
289      "codename": "linux",
290      "id": "ubuntu",
291      "name": "debian",
292      "version_id": "20.04",
293      "version": "5.15.0-1031-aws"
294    },
295    "tags": null,
296    "agent_accessible_dirs": "/etc/nginx:/usr/local/etc/nginx:/usr/share/nginx/modules:/etc/nms"
297  },
298  "dataplane_software_details": null
299}

/nginxes

curl -s http://10.1.1.5:54790/nginxes/ | jq .
実行結果サンプル
  1[
  2  {
  3    "nginx_id": "b636d4376dea15405589692d3c5d3869ff3a9b26b0e7bb4bb1aa7e658ace1437",
  4    "version": "1.23.2",
  5    "conf_path": "/etc/nginx/nginx.conf",
  6    "process_id": "898",
  7    "process_path": "/usr/sbin/nginx",
  8    "start_time": 1677841975000,
  9    "built_from_source": false,
 10    "loadable_modules": [
 11      "ngx_http_app_protect_dos_module-debug",
 12      "ngx_http_app_protect_dos_module",
 13      "ngx_http_app_protect_module-debug",
 14      "ngx_http_app_protect_module",
 15      "ngx_http_js_module-debug",
 16      "ngx_http_js_module",
 17      "ngx_stream_js_module-debug",
 18      "ngx_stream_js_module"
 19    ],
 20    "runtime_modules": [
 21      "http_addition_module",
 22      "http_auth_request_module",
 23      "http_dav_module",
 24      "http_flv_module",
 25      "http_gunzip_module",
 26      "http_gzip_static_module",
 27      "http_mp4_module",
 28      "http_random_index_module",
 29      "http_realip_module",
 30      "http_secure_link_module",
 31      "http_slice_module",
 32      "http_ssl_module",
 33      "http_stub_status_module",
 34      "http_sub_module",
 35      "http_v2_module",
 36      "mail_ssl_module",
 37      "stream_realip_module",
 38      "stream_ssl_module",
 39      "stream_ssl_preread_module",
 40      "http_auth_jwt_module",
 41      "http_f4f_module",
 42      "http_hls_module",
 43      "http_session_log_module",
 44      "http_proxy_protocol_vendor_module",
 45      "stream_proxy_protocol_vendor_module"
 46    ],
 47    "plus": {
 48      "enabled": true,
 49      "release": "nginx-plus-r28"
 50    },
 51    "ssl": {
 52      "ssl_type": 0,
 53      "details": [
 54        "OpenSSL",
 55        "1.1.1f",
 56        "31 Mar 2020"
 57      ]
 58    },
 59    "status_url": "http://localhost:8080/api",
 60    "configure_args": [
 61      "",
 62      "prefix=/etc/nginx",
 63      "sbin-path=/usr/sbin/nginx",
 64      "modules-path=/usr/lib/nginx/modules",
 65      "conf-path=/etc/nginx/nginx.conf",
 66      "error-log-path=/var/log/nginx/error.log",
 67      "http-log-path=/var/log/nginx/access.log",
 68      "pid-path=/var/run/nginx.pid",
 69      "lock-path=/var/run/nginx.lock",
 70      "http-client-body-temp-path=/var/cache/nginx/client_temp",
 71      "http-proxy-temp-path=/var/cache/nginx/proxy_temp",
 72      "http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp",
 73      "http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp",
 74      "http-scgi-temp-path=/var/cache/nginx/scgi_temp",
 75      "user=nginx",
 76      "group=nginx",
 77      "with-compat",
 78      "with-file-aio",
 79      "with-threads",
 80      "with-http_addition_module",
 81      "with-http_auth_request_module",
 82      "with-http_dav_module",
 83      "with-http_flv_module",
 84      "with-http_gunzip_module",
 85      "with-http_gzip_static_module",
 86      "with-http_mp4_module",
 87      "with-http_random_index_module",
 88      "with-http_realip_module",
 89      "with-http_secure_link_module",
 90      "with-http_slice_module",
 91      "with-http_ssl_module",
 92      "with-http_stub_status_module",
 93      "with-http_sub_module",
 94      "with-http_v2_module",
 95      "with-mail",
 96      "with-mail_ssl_module",
 97      "with-stream",
 98      "with-stream_realip_module",
 99      "with-stream_ssl_module",
100      "with-stream_ssl_preread_module",
101      "build=nginx-plus-r28",
102      "with-http_auth_jwt_module",
103      "with-http_f4f_module",
104      "with-http_hls_module",
105      "with-http_session_log_module",
106      "with-http_proxy_protocol_vendor_module",
107      "with-stream_proxy_protocol_vendor_module",
108      "with-cc-opt='-g -O2 -fdebug-prefix-map=/data/builder/debuild/nginx-plus-1.23.2/debian/debuild-base/nginx-plus-1.23.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC'",
109      "with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'"
110    ]
111  }
112]

/configs

curl -s http://10.1.1.5:54790/configs/ | jq .
実行結果サンプル
  1{
  2  "action": 4,
  3  "config_data": {
  4    "system_id": "b437d630-5171-3284-b7b6-0c8087f7ee5e",
  5    "nginx_id": "b636d4376dea15405589692d3c5d3869ff3a9b26b0e7bb4bb1aa7e658ace1437",
  6    "checksum": ""
  7  },
  8  "zconfig": {
  9    "contents": "H4sIAAAAAAAA/+yaX2/juBHA71mfYpAE2PYK2Y7jZLcx9mFx1wLtQxGgV/ShaA2aHMm0xT9LUraSQ757Qf2xZZuKdNtgtwtkgKxtaX6c4ZAcDqUdo6NjmXJZVP+OqJLJD68rk8lkcjeblZ+TyeT0c3pze9d8r65f31zfTX+AySv7EZTcOmJ+mPzPtk47953IJSTKwN8+PcA/P/05yhRhC6FYniFUH3Ys02Kxck4viNYLbZRD6mqdkVXz6NDCz+rvw1tgygZa+WtPC+sjqEvVOoNEnCjnFg1AOcnn0U6ZDRrvDEVr0QKQ3Kl5FKExyiwylQKMt8SMM5XWy6O8M/J3pHKc4jzSnEEtpa7JZb2INGfzKIpwi9JZ+DXyKrVJqqRE6riSFuB6Mp3No+coinzvakUuaZYzbFo+LFDBBY7co0Y7LxUZJiTP3MJfAiBaZ5wS3/JYUYcursIwj0rlTKWLRBlBHIAgXAK8uzIolMMFYcxADM3PMlD/unJc4CJTlGT/hosrg59ztO4C3kUQlHdX1hGXW7haKva4WD46tAuL0sHFVTl0BhM0aF5ooVb09hckRekuGrbwru+IYcj8t4t3dacI9cMXHK7qVjleZX9rwqJkCc+a6IKSVSwvHdULqXRuV/vr5Y0NoiYZ3+LCB0TlDuDutr53mT5x3dJtRq41Zj6djtj4xzKvVkN9Cb/89D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4yWXKyxmk0509bkIkHanDOsxyhQ9JzUbEG7NkgCprOtNxtoCaguEBxKrG2DZuIBlv478bxwJjWlugutZ3OQfwmiqVJphjMS41WgjsrOMsGmSXA/5dGZ0I57CpLAxFhS7M0+RBbatmvSzWy3XSIORRuU6Sa12aLTi4fysdQepiOV2pDRKpmguULpRaohecVrXHIoFducOUhu0KF11cALF9GDSaoOE2RWiK212RChA+t3p0E/FuvqpURYiqw6tNlZJwikGHRfZ0c+O9ys9orULrN1+R1pxENmo/PwyB4rMfpEDPrnUL/K4TEU2au58mRtM0Q436jKEdqL+5jm6I1b0WvVK52gRv38qqxiD1mJHCn0fWNW+9qGKvGyTNhvqMdneZWIWLCrWxLB9+RCg1zLTcfs12zEts8AyK2JBNmgxeynxmjywMxWxxnCabYnOQAcjrHmmegpEbShotgzRhpi+ATKhjbiIDbIVcbEmdENSjAWRJMXjatiEPbbYM7AAFkmQXCm62ZEtxklG6jedp+QuOKzW5UnCX4yT5YFEVsSO9la0XsVtQnBxO/ljTElM0XTZZmhAowBqguYLzaV1JHvBiUIHCoDCn2j7yvHicOw9Yq1Oeit5r3SOli+U++SJ60B12H7p34kuuQQsEFgW8HtQCwwDC2EYKQL78iCSWwX8i2lhOQirQdjmP0OQnHE1FpzxTuikCc6gVN/sF3PVxPAHB0LftEmVDj4mqjRtk0UsZr0JoLY5I8ekQZKV3/tIQ+pQbTlDNb5J9dATXql6k9YZvsKFnvafwStx9hicDeRA6Nkx+RtGBlMQzSOdCv+cc7pxXHSfsw642rbJHS77t/tKvGobLeIk2w5Dk2x7TIrZQFLMTsmhx2gh0xPSxsQOORATWwCxyRm9E0Oc3olTj235bYDdLZ9/V69j3+RN3uRNvpr8NwAA//9V18DiAC4AAA==",
 10    "checksum": "48201fa519edcbbaf44a644b67c90bf88962cb37946171dbe7dfbad13563529a",
 11    "root_directory": "/etc/nginx"
 12  },
 13  "zaux": null,
 14  "access_logs": {
 15    "access_log": [
 16      {
 17        "name": "/var/log/nginx/access.log",
 18        "format": "$remote_addr - $remote_user [$time_local] \"$request\" $status $body_bytes_sent \"$http_referer\" \"$http_user_agent\" \"$http_x_forwarded_for\"",
 19        "permissions": "0640",
 20        "readable": true
 21      },
 22      {
 23        "name": "/var/log/nginx/mng_access.log",
 24        "format": "",
 25        "permissions": "0640",
 26        "readable": true
 27      }
 28    ]
 29  },
 30  "error_logs": {
 31    "error_log": [
 32      {
 33        "name": "/var/log/nginx/error.log",
 34        "log_level": "notice",
 35        "permissions": "0640",
 36        "readable": true
 37      }
 38    ]
 39  },
 40  "ssl": {},
 41  "directory_map": {
 42    "directories": [
 43      {
 44        "name": "/etc/nginx",
 45        "mtime": {
 46          "seconds": 1677831484,
 47          "nanos": 812853396
 48        },
 49        "permissions": "0755",
 50        "size": 4096,
 51        "files": [
 52          {
 53            "name": "nginx.conf",
 54            "lines": 0,
 55            "mtime": {
 56              "seconds": 1676950740,
 57              "nanos": 207957694
 58            },
 59            "permissions": "0644",
 60            "size": 1262,
 61            "contents": null
 62          },
 63          {
 64            "name": "mime.types",
 65            "lines": 0,
 66            "mtime": {
 67              "seconds": 1654588800
 68            },
 69            "permissions": "0644",
 70            "size": 5349,
 71            "contents": null
 72          }
 73        ]
 74      },
 75      {
 76        "name": "/etc/nginx/conf.d",
 77        "mtime": {
 78          "seconds": 1677842773,
 79          "nanos": 234144884
 80        },
 81        "permissions": "0755",
 82        "size": 4096,
 83        "files": [
 84          {
 85            "name": "api.conf",
 86            "lines": 0,
 87            "mtime": {
 88              "seconds": 1677842773,
 89              "nanos": 230144860
 90            },
 91            "permissions": "0644",
 92            "size": 342,
 93            "contents": null
 94          },
 95          {
 96            "name": "default.conf",
 97            "lines": 0,
 98            "mtime": {
 99              "seconds": 1677563029,
100              "nanos": 80501179
101            },
102            "permissions": "0644",
103            "size": 519,
104            "contents": null
105          }
106        ]
107      }
108    ]
109  }
110}

/configs/chunked

curl -s http://10.1.1.5:54790/configs/chunked/ | jq .
実行結果サンプル
 1[
 2  {
 3    "Chunk": {
 4      "header": {
 5        "meta": {
 6          "timestamp": {
 7            "seconds": 1677844095,
 8            "nanos": 887579726
 9          },
10          "client_id": "b437d630-5171-3284-b7b6-0c8087f7ee5e",
11          "message_id": "844d5473-cd9e-4418-9753-a9afe9e44c68",
12          "cloud_account_id": "6198b300-ace9-4c4c-83b2-9f64f113b51d"
13        },
14        "chunks": 2,
15        "checksum": "��}�1o|,�\u0001{\u007f�\rl�;B����z�u\u0017\\�CoM\u0012",
16        "chunk_size": 4096
17      }
18    }
19  },
20  {
21    "Chunk": {
22      "data": {
23        "meta": {
24          "timestamp": {
25            "seconds": 1677844095,
26            "nanos": 887579726
27          },
28          "client_id": "b437d630-5171-3284-b7b6-0c8087f7ee5e",
29          "message_id": "844d5473-cd9e-4418-9753-a9afe9e44c68",
30          "cloud_account_id": "6198b300-ace9-4c4c-83b2-9f64f113b51d"
31        },
32        "chunk_id": 0,
33        "data": "eyJhY3Rpb24iOjQsImNvbmZpZ19kYXRhIjp7InN5c3RlbV9pZCI6ImI0MzdkNjMwLTUxNzEtMzI4NC1iN2I2LTBjODA4N2Y3ZWU1ZSIsIm5naW54X2lkIjoiYjYzNmQ0Mzc2ZGVhMTU0MDU1ODk2OTJkM2M1ZDM4NjlmZjNhOWIyNmIwZTdiYjRiYjFhYTdlNjU4YWNlMTQzNyIsImNoZWNrc3VtIjoiIn0sInpjb25maWciOnsiY29udGVudHMiOiJINHNJQUFBQUFBQUEvK3lhWDIvanVCSEE3MW1mWXBBRTJQWUsyWTdqWkxjeDltRngxd0x0UXhHZ1YvU2hhQTJhSE1tMHhUOUxVcmFTUTc1N1FmMnhaWnVLZE50Z3R3dGtnS3h0YVg2YzRaQWNEcVVkbzZOam1YSlpWUCtPcUpMSkQ2OHJrOGxrY2plYmxaK1R5ZVQwYzNwemU5ZDhyNjVmMzF6ZlRYK0F5U3Y3RVpUY09tSittUHpQdGs0Nzk1M0lKU1RLd044K1BjQS9QLzA1eWhSaEM2RlluaUZVSDNZczAyS3hjazR2a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NlY29uZHMiOjE2Nzc4MzE0ODQsIm5hbm9zIjo4MTI4NTMzOTZ9LCJwZXJtaXNzaW9ucyI6IjA3NTUiLCJzaXplIjo0MDk2LCJmaWxlcyI6W3sibmFtZSI6Im5naW54LmNvbmYiLCJsaW5lcyI6MCwibXRpbWUiOnsic2Vjb25kcyI6MTY3Njk1MDc0MCwibmFub3MiOjIwNzk1NzY5NH0sInBlcm1pc3Npb25zIjoiMDY0NCIsInNpemUiOjEyNjIsImNvbnRlbnRzIjpudWxsfSx7Im5hbWUiOiJtaW1lLnR5cGVzIiwibGluZXMiOjAsIm10aW1lIjp7InNlY29uZHMiOjE2NTQ1ODg4MDB9LCJwZXJtaXNzaW9ucyI6IjA2NDQiLCJzaXplIjo1MzQ5LCJjb250ZW50cyI6bnVsbH1dfSx7Im5hbWUiOiIvZXRjL25naW54L2NvbmYuZCIsIm10aW1lIjp7InNlY29uZHMiOjE2Nzc4NDI3NzMsIm5hbm9zIjoyMzQxNDQ4ODR9LCJwZXJtaXNzaW9ucyI6IjA3NTUiLCJzaXplIjo0MDk2LCJmaWxlcyI6W3sibmFtZSI6ImFwaS5jb25mIiwibGluZXMiOjAsIm10aW1lIjp7InNlY29uZA=="
34      }
35    }
36  },
37  {
38    "Chunk": {
39      "data": {
40        "meta": {
41          "timestamp": {
42            "seconds": 1677844095,
43            "nanos": 887579726
44          },
45          "client_id": "b437d630-5171-3284-b7b6-0c8087f7ee5e",
46          "message_id": "844d5473-cd9e-4418-9753-a9afe9e44c68",
47          "cloud_account_id": "6198b300-ace9-4c4c-83b2-9f64f113b51d"
48        },
49        "chunk_id": 1,
50        "data": "cyI6MTY3Nzg0Mjc3MywibmFub3MiOjIzMDE0NDg2MH0sInBlcm1pc3Npb25zIjoiMDY0NCIsInNpemUiOjM0MiwiY29udGVudHMiOm51bGx9LHsibmFtZSI6ImRlZmF1bHQuY29uZiIsImxpbmVzIjowLCJtdGltZSI6eyJzZWNvbmRzIjoxNjc3NTYzMDI5LCJuYW5vcyI6ODA1MDExNzl9LCJwZXJtaXNzaW9ucyI6IjA2NDQiLCJzaXplIjo1MTksImNvbnRlbnRzIjpudWxsfV19XX19"
51      }
52    }
53  }
54]

/configs/raw

curl -s http://10.1.1.5:54790/configs/raw/ | jq .
実行結果サンプル
1{
2  "/etc/nginx/conf.d/api.conf": "server {\n    listen 8080;\n    access_log /var/log/nginx/mng_access.log;\n\n    location /api {\n        api write=on;\n        # directives limiting access to the API\n    }\n\n#    location = / {\n#        rewrite ^(.*)$ https://$host/dashboard.html permanent;\n#    }\n\n    location = /dashboard.html {\n        root   /usr/share/nginx/html;\n    }\n\n}\n",
3  "/etc/nginx/conf.d/default.conf": "upstream server_group {\n    zone backend 64k;\n    server security-backend1:80;\n}\n# waf\nserver {\n    listen 80;\n    app_protect_enable on;\n    app_protect_security_log_enable on;\n    app_protect_security_log \"/etc/nginx/conf.d/custom_log_format.json\" syslog:server=elasticsearch:5144;\n\n    location / {\n        app_protect_policy_file \"/etc/nginx/conf.d/custom_policy.json\";\n        proxy_pass http://server_group;\n    }\n}\n# no waf\nserver {\n    listen 81;\n    location / {\n        proxy_pass http://server_group;\n    }\n}",
4  "/etc/nginx/mime.types": "\ntypes {\n    text/html                                        html htm shtml;\n    text/css                                         css;\n    text/xml                                         xml;\n    image/gif                                        gif;\n    image/jpeg                                       jpeg jpg;\n    application/javascript                           js;\n    application/atom+xml                             atom;\n    application/rss+xml                              rss;\n\n    text/mathml                                      mml;\n    text/plain                                       txt;\n    text/vnd.sun.j2me.app-descriptor                 jad;\n    text/vnd.wap.wml                                 wml;\n    text/x-component                                 htc;\n\n    image/avif                                       avif;\n    image/png                                        png;\n    image/svg+xml                                    svg svgz;\n    image/tiff                                       tif tiff;\n    image/vnd.wap.wbmp                               wbmp;\n    image/webp                                       webp;\n    image/x-icon                                     ico;\n    image/x-jng                                      jng;\n    image/x-ms-bmp                                   bmp;\n\n    font/woff                                        woff;\n    font/woff2                                       woff2;\n\n    application/java-archive                         jar war ear;\n    application/json                                 json;\n    application/mac-binhex40                         hqx;\n    application/msword                               doc;\n    application/pdf                                  pdf;\n    application/postscript                           ps eps ai;\n    application/rtf                                  rtf;\n    application/vnd.apple.mpegurl                    m3u8;\n    application/vnd.google-earth.kml+xml             kml;\n    application/vnd.google-earth.kmz                 kmz;\n    application/vnd.ms-excel                         xls;\n    application/vnd.ms-fontobject                    eot;\n    application/vnd.ms-powerpoint                    ppt;\n    application/vnd.oasis.opendocument.graphics      odg;\n    application/vnd.oasis.opendocument.presentation  odp;\n    application/vnd.oasis.opendocument.spreadsheet   ods;\n    application/vnd.oasis.opendocument.text          odt;\n    application/vnd.openxmlformats-officedocument.presentationml.presentation\n                                                     pptx;\n    application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n                                                     xlsx;\n    application/vnd.openxmlformats-officedocument.wordprocessingml.document\n                                                     docx;\n    application/vnd.wap.wmlc                         wmlc;\n    application/wasm                                 wasm;\n    application/x-7z-compressed                      7z;\n    application/x-cocoa                              cco;\n    application/x-java-archive-diff                  jardiff;\n    application/x-java-jnlp-file                     jnlp;\n    application/x-makeself                           run;\n    application/x-perl                               pl pm;\n    application/x-pilot                              prc pdb;\n    application/x-rar-compressed                     rar;\n    application/x-redhat-package-manager             rpm;\n    application/x-sea                                sea;\n    application/x-shockwave-flash                    swf;\n    application/x-stuffit                            sit;\n    application/x-tcl                                tcl tk;\n    application/x-x509-ca-cert                       der pem crt;\n    application/x-xpinstall                          xpi;\n    application/xhtml+xml                            xhtml;\n    application/xspf+xml                             xspf;\n    application/zip                                  zip;\n\n    application/octet-stream                         bin exe dll;\n    application/octet-stream                         deb;\n    application/octet-stream                         dmg;\n    application/octet-stream                         iso img;\n    application/octet-stream                         msi msp msm;\n\n    audio/midi                                       mid midi kar;\n    audio/mpeg                                       mp3;\n    audio/ogg                                        ogg;\n    audio/x-m4a                                      m4a;\n    audio/x-realaudio                                ra;\n\n    video/3gpp                                       3gpp 3gp;\n    video/mp2t                                       ts;\n    video/mp4                                        mp4;\n    video/mpeg                                       mpeg mpg;\n    video/quicktime                                  mov;\n    video/webm                                       webm;\n    video/x-flv                                      flv;\n    video/x-m4v                                      m4v;\n    video/x-mng                                      mng;\n    video/x-ms-asf                                   asx asf;\n    video/x-ms-wmv                                   wmv;\n    video/x-msvideo                                  avi;\n}\n",
5  "/etc/nginx/nginx.conf": "# for NAP WAF\nload_module modules/ngx_http_app_protect_module.so;\n# for NAP DoS\nload_module modules/ngx_http_app_protect_dos_module.so;\n# for NJS\nload_module modules/ngx_http_js_module.so;\nload_module modules/ngx_stream_js_module.so;\nuser  nginx;\nworker_processes  auto;\n\nerror_log  /var/log/nginx/error.log notice;\npid        /var/run/nginx.pid;\n\n\nevents {\n    worker_connections  1024;\n}\n\n\nhttp {\n    include       /etc/nginx/mime.types;\n    default_type  application/octet-stream;\n\n    log_format  main  '$remote_addr - $remote_user [$time_local] \"$request\" '\n                      '$status $body_bytes_sent \"$http_referer\" '\n                      '\"$http_user_agent\" \"$http_x_forwarded_for\"';\n\n    access_log  /var/log/nginx/access.log  main;\n\n    sendfile        on;\n    #tcp_nopush     on;\n\n    keepalive_timeout  65;\n\n    #gzip  on;\n\n    include /etc/nginx/conf.d/*.conf;\n}\n\n\n# TCP/UDP proxy and load balancing block\n#\n#stream {\n    # Example configuration for TCP load balancing\n\n    #upstream stream_backend {\n    #    zone tcp_servers 64k;\n    #    server backend1.example.com:12345;\n    #    server backend2.example.com:12345;\n    #}\n\n    #server {\n    #    listen 12345;\n    #    status_zone tcp_server;\n    #    proxy_pass stream_backend;\n    #}\n#}\n"
6}

/metrics

curl -s http://10.1.1.5:54790/metrics/ | jq .
実行結果サンプル
 1[
 2  {
 3    "meta": {
 4      "timestamp": null,
 5      "client_id": "",
 6      "message_id": "",
 7      "cloud_account_id": ""
 8    },
 9    "type": 0,
10    "data": [
11      {
12        "timestamp": {
13          "seconds": 1677842843,
14          "nanos": 517566302
15        },
16        "dimensions": [
17          {
18            "name": "system_id",
19            "value": "b437d630-5171-3284-b7b6-0c8087f7ee5e"
20          },
21          {
22            "name": "hostname",
23            "value": "ip-10-1-1-7"
24          },
25          {
26            "name": "system.tags",
27            "value": ""
28          },
29          {
30            "name": "instance_group",
31            "value": ""
32          },
33          {
34            "name": "display_name",
35            "value": "ip-10-1-1-7"
36          },
37          {
38            "name": "nginx_id",
39            "value": ""
40          }
41        ],
42        ** 省略 **