Skip to content

Commit

Permalink
fix(discovery): fix docs related to discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
paologallinaharbur committed Oct 21, 2024
1 parent cf53c26 commit 329a668
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Here's a detailed example of doing the above procedure for NGINX:
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
REMOTE_MONITORING: true
METRICS: 1
```
Expand All @@ -311,7 +311,7 @@ Here's a detailed example of doing the above procedure for NGINX:
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
REMOTE_MONITORING: true
METRICS: 1
path: /etc/newrelic-infra/integrations.d/nginx-config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ These examples (for Docker-only environments and for Kubernetes) show how to con
integrations:
- name: nri-nginx
env:
# use discovery.private.ip if container doesn't have attached public ip address
# use discovery.private.ip if container doesn't have attached public ip address
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
STATUS_MODULE: discover
REMOTE_MONITORING: true
METRICS: 1
labels:
env: ${discovery.label.env}
role: ${discovery.label.role}
Expand Down Expand Up @@ -93,6 +93,7 @@ These examples (for Docker-only environments and for Kubernetes) show how to con
env:
# Use the discovered IP as the host address
STATUS_URL: http://${discovery.ip}/server-status?auto
REMOTE_MONITORING: true
METRICS: 1
```
</Collapser>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ A continuación se muestra un ejemplo detallado de cómo realizar el procedimien
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
```
Expand Down Expand Up @@ -370,7 +370,7 @@ A continuación se muestra un ejemplo detallado de cómo realizar el procedimien
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
path: /etc/newrelic-infra/integrations.d/nginx-config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Para solucionar y resolver el problema:
</DNT>

```
nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
[{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1,
\"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1,
\"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Estos ejemplos (para entornos solo docker y para Kubernetes) muestran cómo conf
image: /nginx/
label.env: production
integrations:
- name: nri-nginx
- name: nginx-server-metrics
command: metrics
env:
# use discovery.private.ip if container doesn't have attached public ip address
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ ECSで動作しているサービスのモニタリングを有効にする方
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
```
Expand Down Expand Up @@ -370,7 +370,7 @@ ECSで動作しているサービスのモニタリングを有効にする方
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
path: /etc/newrelic-infra/integrations.d/nginx-config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ translationType: machine
</DNT>

```
nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
[{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1,
\"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1,
\"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ translationType: machine
image: /nginx/
label.env: production
integrations:
- name: nri-nginx
- name: nginx-server-metrics
command: metrics
env:
# use discovery.private.ip if container doesn't have attached public ip address
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ NGINX에 대해 위의 절차를 수행하는 자세한 예는 다음과 같습
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
```
Expand Down Expand Up @@ -364,7 +364,7 @@ NGINX에 대해 위의 절차를 수행하는 자세한 예는 다음과 같습
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
path: /etc/newrelic-infra/integrations.d/nginx-config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ translationType: machine
</DNT>

```
nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
[{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1,
\"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1,
\"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ translationType: machine
image: /nginx/
label.env: production
integrations:
- name: nri-nginx
- name: nginx-server-metrics
command: metrics
env:
# use discovery.private.ip if container doesn't have attached public ip address
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Aqui está um exemplo detalhado de como executar o procedimento acima para NGINX
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
```
Expand Down Expand Up @@ -370,7 +370,7 @@ Aqui está um exemplo detalhado de como executar o procedimento acima para NGINX
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${discovery.ip}:/status
STATUS_URL: http://${'${discovery.ip}'}:/status
REMOTE_MONITORING: true
METRICS: 1
path: /etc/newrelic-infra/integrations.d/nginx-config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Para solucionar e resolver o problema:
</DNT>

```
nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
[{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1,
\"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1,
\"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Estes exemplos (para ambientes Docker-only e para Kubernetes) mostram como confi
image: /nginx/
label.env: production
integrations:
- name: nri-nginx
- name: nginx-server-metrics
command: metrics
env:
# use discovery.private.ip if container doesn't have attached public ip address
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
Expand Down

0 comments on commit 329a668

Please sign in to comment.