-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathnginx-config.yml.sample
45 lines (41 loc) · 1.92 KB
/
nginx-config.yml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
integrations:
- name: nri-nginx
env:
METRICS: "true"
# If you're using ngx_http_api_module be certain to use the full path up to and including the version number
STATUS_URL: http://127.0.0.1/status
# Name of Nginx status module OHI is to query against. discover | ngx_http_stub_status_module | ngx_http_status_module | ngx_http_api_module
STATUS_MODULE: discover
# New users should leave this property as `true`, to identify the
# monitored entities as `remote`. Setting this property to `false` (the
# default value) is deprecated and will be removed soon, disallowing
# entities that are identified as `local`.
# Please check the documentation to get more information about local
# versus remote entities:
# https://github.com/newrelic/infra-integrations-sdk/blob/master/docs/entity-definition.md
REMOTE_MONITORING: true
# validate_certs is true by default, to avoid certificate validation connecting to a HTTPS status URL set it to false
# VALIDATE_CERTS: true
interval: 30s
labels:
env: production
role: load_balancer
- name: nri-nginx
env:
INVENTORY: "true"
CONFIG_PATH: /etc/nginx/nginx.conf
# New users should leave this property as `true`, to identify the
# monitored entities as `remote`. Setting this property to `false` (the
# default value) is deprecated and will be removed soon, disallowing
# entities that are identified as `local`.
# Please check the documentation to get more information about local
# versus remote entities:
# https://github.com/newrelic/infra-integrations-sdk/blob/master/docs/entity-definition.md
REMOTE_MONITORING: true #new users should leave remote_monitoring = true
# status_url is used to identify the monitored entity to which the inventory will be attached.
STATUS_URL: http://127.0.0.1/status
interval: 60s
labels:
env: production
role: load_balancer
inventory_source: config/nginx