Skip to content

Commit

Permalink
fix MDX issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyzanchi committed Apr 29, 2024
1 parent 82fd8b7 commit 8f12f6d
Show file tree
Hide file tree
Showing 10 changed files with 433 additions and 440 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,9 @@ Para estruturas ou bibliotecas não suportadas, você mesmo precisará instrumen
id="messages"
title="Fila de mensagens"
>
[A instrumentação da fila de mensagens](/docs/agents/nodejs-agent/troubleshooting/troubleshoot-message-consumers) está disponível apenas com o [agente New Relic Node.js v2 ou superior](/docs/release-notes/agent-release-notes/nodejs-release-notes). Instrumentação de fila de mensagens atualmente suportada:<table>
[A instrumentação da fila de mensagens](/docs/agents/nodejs-agent/troubleshooting/troubleshoot-message-consumers) está disponível apenas com o [agente New Relic Node.js v2 ou superior](/docs/release-notes/agent-release-notes/nodejs-release-notes). Instrumentação de fila de mensagens atualmente suportada:

<table>
<thead>
<tr>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ jobs:

### Todos os campos de entrada

> _Além de `NEW_RELIC_API_KEY`, este exemplo mostra como destinar vários itens armazenando vários segredos como "`NEW_RELIC_DEPLOYMENT_ENTITY_GUID_<ID>`", onde `<ID>` é o identificador exclusivo do item de destino._
> *Além de `NEW_RELIC_API_KEY`, este exemplo mostra como destinar vários itens armazenando vários segredos como "`NEW_RELIC_DEPLOYMENT_ENTITY_GUID_<ID>`", onde `<ID>` é o identificador exclusivo do item de destino.*
```
NEW_RELIC_DEPLOYMENT_ENTITY_GUID_App123
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ Esta é uma visão geral das etapas que você executará:
2. Selecione <DoNotTranslate>**Subscribers**</DoNotTranslate> e selecione <DoNotTranslate>**Create Subscriber**</DoNotTranslate>.
3. Dê um nome ao assinante e selecione uma região.
4. Selecione quais fontes log e eventos você deseja enviar para o New Relic.
5. Preencha os detalhes restantes conforme descrito abaixo:<table>
5. Preencha os detalhes restantes conforme descrito abaixo:

<table>
<thead>
<tr>
<th style={{ width: "200px" }}>
Expand All @@ -53,9 +55,6 @@ Esta é uma visão geral das etapas que você executará:

<th>
Valor



</th>
</tr>
</thead>
Expand All @@ -68,25 +67,17 @@ Esta é uma visão geral das etapas que você executará:

<td>
S3



</td>
</tr>

<tr>
<td>
`Account ID`



</td>

<td>
Insira o AWS

`account ID`

onde você planeja instalar o aplicativo Serverless fornecido pela New Relic.
</td>
</tr>
Expand All @@ -98,11 +89,8 @@ Esta é uma visão geral das etapas que você executará:

<td>
Insira sua New Relic

`AccountID`

. Para obter mais informações, consulte

[ID externo](https://docs.aws.amazon.com/security-lake/latest/userguide/subscriber-data-access.html#subscriber-external-id)
</td>
</tr>
Expand All @@ -114,9 +102,6 @@ Esta é uma visão geral das etapas que você executará:

<td>
Fila SQS



</td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ Conclua as etapas a seguir para instalar a integração:

Seu arquivo `nri-flex-nextcloud.yml` deverá ficar assim:

```yml
integrations:
- name: nri-flex
config:
name: nextcloudFlex
global:
base_url: http://<YOUR_HOST_IP>/ocs/v2.php/apps/serverinfo/api/v1/
user: <nextcloud_username>
pass: <nextcloud_password>
apis:
- event_type: EVENT_TYPE
url: info?format=json
```
```yml
integrations:
- name: nri-flex
config:
name: nextcloudFlex
global:
base_url: http://<YOUR_HOST_IP>/ocs/v2.php/apps/serverinfo/api/v1/
user: <nextcloud_username>
pass: <nextcloud_password>
apis:
- event_type: EVENT_TYPE
url: info?format=json
```

Métricas para Nextcloud estão disponíveis no seguinte URL: `http://<YOUR_HOST_IP>/ocs/v2.php/apps/serverinfo/api/v1/info?format=json`

Expand All @@ -69,13 +69,13 @@ Conclua as etapas a seguir para instalar a integração:

2. Após criar o arquivo de log, adicione o seguinte script ao arquivo `logging.yml` :

```yml
logs:
- name: nextcloud.log
file: /var/www/nextcloud/data/nextcloud.log
attributes:
logtype: nextcloud_log
```
```yml
logs:
- name: nextcloud.log
file: /var/www/nextcloud/data/nextcloud.log
attributes:
logtype: nextcloud_log
```
</Step>

<Step>
Expand All @@ -85,11 +85,9 @@ Conclua as etapas a seguir para instalar a integração:

O seguinte comando deve funcionar para a maioria dos sistemas:

````shell
sudo systemctl restart newrelic-infra.service
```
````
```shell
sudo systemctl restart newrelic-infra.service
```
</Step>

<Step>
Expand Down Expand Up @@ -117,15 +115,15 @@ Conclua as etapas a seguir para instalar a integração:

Aqui está um exemplo de consulta NRQL verificando o número de usuários ativos nos últimos 5 minutos:

```sql
FROM NextcloudFlexMetrics SELECT latest(ocs.data.activeUsers.last5minutes)
```
```sql
FROM NextcloudFlexMetrics SELECT latest(ocs.data.activeUsers.last5minutes)
```

Aqui está um exemplo de consulta NRQL verificando o número de usuários ativos nas últimas 24 horas:

```sql
FROM NextcloudFlexMetrics SELECT latest(ocs.data.activeUsers.last24hours)
```
```sql
FROM NextcloudFlexMetrics SELECT latest(ocs.data.activeUsers.last24hours)
```
</Step>
</Steps>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,77 +57,77 @@ Ao instalar, você obterá um dashboard pré-construído contendo métricas cruc

1. Crie um arquivo chamado `nvidia-smi-gpu-monitoring.yml` neste caminho:

```shell
sudo touch /etc/newrelic-infra/integrations.d/nvidia-smi-gpu-monitoring.yml
```
```shell
sudo touch /etc/newrelic-infra/integrations.d/nvidia-smi-gpu-monitoring.yml
```

Você também pode fazer download do [repositório git](https://github.com/newrelic/nri-flex/blob/master/examples/nvidia-smi-gpu-monitoring.yml).

2. Atualize o arquivo `nvidia-smi-gpu-monitoring.yml` com a configuração de integração:

```yml
---
integrations:
- name: nri-flex
# interval: 30s
config:
name: NvidiaSMI
variable_store:
metrics:
"name,driver_version,count,serial,pci.bus_id,pci.domain,pci.bus,\
pci.device_id,pci.sub_device_id,pcie.link.gen.current,pcie.link.gen.max,\
pcie.link.width.current,pcie.link.width.max,index,display_mode,display_active,\
persistence_mode,accounting.mode,accounting.buffer_size,driver_model.current,\
driver_model.pending,vbios_version,inforom.img,inforom.oem,inforom.ecc,inforom.pwr,\
gom.current,gom.pending,fan.speed,pstate,clocks_throttle_reasons.supported,\
clocks_throttle_reasons.gpu_idle,clocks_throttle_reasons.applications_clocks_setting,\
clocks_throttle_reasons.sw_power_cap,clocks_throttle_reasons.hw_slowdown,clocks_throttle_reasons.hw_thermal_slowdown,\
clocks_throttle_reasons.hw_power_brake_slowdown,clocks_throttle_reasons.sw_thermal_slowdown,\
clocks_throttle_reasons.sync_boost,memory.total,memory.used,memory.free,compute_mode,\
utilization.gpu,utilization.memory,encoder.stats.sessionCount,encoder.stats.averageFps,\
encoder.stats.averageLatency,ecc.mode.current,ecc.mode.pending,ecc.errors.corrected.volatile.device_memory,\
ecc.errors.corrected.volatile.dram,ecc.errors.corrected.volatile.register_file,ecc.errors.corrected.volatile.l1_cache,\
ecc.errors.corrected.volatile.l2_cache,ecc.errors.corrected.volatile.texture_memory,ecc.errors.corrected.volatile.cbu,\
ecc.errors.corrected.volatile.sram,ecc.errors.corrected.volatile.total,ecc.errors.corrected.aggregate.device_memory,\
ecc.errors.corrected.aggregate.dram,ecc.errors.corrected.aggregate.register_file,ecc.errors.corrected.aggregate.l1_cache,\
ecc.errors.corrected.aggregate.l2_cache,ecc.errors.corrected.aggregate.texture_memory,ecc.errors.corrected.aggregate.cbu,\
ecc.errors.corrected.aggregate.sram,ecc.errors.corrected.aggregate.total,ecc.errors.uncorrected.volatile.device_memory,\
ecc.errors.uncorrected.volatile.dram,ecc.errors.uncorrected.volatile.register_file,ecc.errors.uncorrected.volatile.l1_cache,\
ecc.errors.uncorrected.volatile.l2_cache,ecc.errors.uncorrected.volatile.texture_memory,ecc.errors.uncorrected.volatile.cbu,\
ecc.errors.uncorrected.volatile.sram,ecc.errors.uncorrected.volatile.total,ecc.errors.uncorrected.aggregate.device_memory,\
ecc.errors.uncorrected.aggregate.dram,ecc.errors.uncorrected.aggregate.register_file,ecc.errors.uncorrected.aggregate.l1_cache,\
ecc.errors.uncorrected.aggregate.l2_cache,ecc.errors.uncorrected.aggregate.texture_memory,ecc.errors.uncorrected.aggregate.cbu,\
ecc.errors.uncorrected.aggregate.sram,ecc.errors.uncorrected.aggregate.total,retired_pages.single_bit_ecc.count,\
retired_pages.double_bit.count,retired_pages.pending,temperature.gpu,temperature.memory,power.management,power.draw,\
power.limit,enforced.power.limit,power.default_limit,power.min_limit,power.max_limit,clocks.current.graphics,clocks.current.sm,\
clocks.current.memory,clocks.current.video,clocks.applications.graphics,clocks.applications.memory,\
clocks.default_applications.graphics,clocks.default_applications.memory,clocks.max.graphics,clocks.max.sm,clocks.max.memory,\
mig.mode.current,mig.mode.pending"
apis:
- name: NvidiaGpu
commands:
- run: nvidia-smi --query-gpu=${var:metrics} --format=csv # update this if you have an alternate path
output: csv
rename_keys:
" ": ""
"\\[MiB\\]": ".MiB"
"\\[%\\]": ".percent"
"\\[W\\]": ".watts"
"\\[MHz\\]": ".MHz"
value_parser:
"clocks|power|fan|memory|temp|util|ecc|stats|gom|mig|count|pcie": '\d*\.?\d+'
'.': '\[N\/A\]|N\/A|Not Active|Disabled|Enabled|Default'
```
```yml
---
integrations:
- name: nri-flex
# interval: 30s
config:
name: NvidiaSMI
variable_store:
metrics:
"name,driver_version,count,serial,pci.bus_id,pci.domain,pci.bus,\
pci.device_id,pci.sub_device_id,pcie.link.gen.current,pcie.link.gen.max,\
pcie.link.width.current,pcie.link.width.max,index,display_mode,display_active,\
persistence_mode,accounting.mode,accounting.buffer_size,driver_model.current,\
driver_model.pending,vbios_version,inforom.img,inforom.oem,inforom.ecc,inforom.pwr,\
gom.current,gom.pending,fan.speed,pstate,clocks_throttle_reasons.supported,\
clocks_throttle_reasons.gpu_idle,clocks_throttle_reasons.applications_clocks_setting,\
clocks_throttle_reasons.sw_power_cap,clocks_throttle_reasons.hw_slowdown,clocks_throttle_reasons.hw_thermal_slowdown,\
clocks_throttle_reasons.hw_power_brake_slowdown,clocks_throttle_reasons.sw_thermal_slowdown,\
clocks_throttle_reasons.sync_boost,memory.total,memory.used,memory.free,compute_mode,\
utilization.gpu,utilization.memory,encoder.stats.sessionCount,encoder.stats.averageFps,\
encoder.stats.averageLatency,ecc.mode.current,ecc.mode.pending,ecc.errors.corrected.volatile.device_memory,\
ecc.errors.corrected.volatile.dram,ecc.errors.corrected.volatile.register_file,ecc.errors.corrected.volatile.l1_cache,\
ecc.errors.corrected.volatile.l2_cache,ecc.errors.corrected.volatile.texture_memory,ecc.errors.corrected.volatile.cbu,\
ecc.errors.corrected.volatile.sram,ecc.errors.corrected.volatile.total,ecc.errors.corrected.aggregate.device_memory,\
ecc.errors.corrected.aggregate.dram,ecc.errors.corrected.aggregate.register_file,ecc.errors.corrected.aggregate.l1_cache,\
ecc.errors.corrected.aggregate.l2_cache,ecc.errors.corrected.aggregate.texture_memory,ecc.errors.corrected.aggregate.cbu,\
ecc.errors.corrected.aggregate.sram,ecc.errors.corrected.aggregate.total,ecc.errors.uncorrected.volatile.device_memory,\
ecc.errors.uncorrected.volatile.dram,ecc.errors.uncorrected.volatile.register_file,ecc.errors.uncorrected.volatile.l1_cache,\
ecc.errors.uncorrected.volatile.l2_cache,ecc.errors.uncorrected.volatile.texture_memory,ecc.errors.uncorrected.volatile.cbu,\
ecc.errors.uncorrected.volatile.sram,ecc.errors.uncorrected.volatile.total,ecc.errors.uncorrected.aggregate.device_memory,\
ecc.errors.uncorrected.aggregate.dram,ecc.errors.uncorrected.aggregate.register_file,ecc.errors.uncorrected.aggregate.l1_cache,\
ecc.errors.uncorrected.aggregate.l2_cache,ecc.errors.uncorrected.aggregate.texture_memory,ecc.errors.uncorrected.aggregate.cbu,\
ecc.errors.uncorrected.aggregate.sram,ecc.errors.uncorrected.aggregate.total,retired_pages.single_bit_ecc.count,\
retired_pages.double_bit.count,retired_pages.pending,temperature.gpu,temperature.memory,power.management,power.draw,\
power.limit,enforced.power.limit,power.default_limit,power.min_limit,power.max_limit,clocks.current.graphics,clocks.current.sm,\
clocks.current.memory,clocks.current.video,clocks.applications.graphics,clocks.applications.memory,\
clocks.default_applications.graphics,clocks.default_applications.memory,clocks.max.graphics,clocks.max.sm,clocks.max.memory,\
mig.mode.current,mig.mode.pending"
apis:
- name: NvidiaGpu
commands:
- run: nvidia-smi --query-gpu=${var:metrics} --format=csv # update this if you have an alternate path
output: csv
rename_keys:
" ": ""
"\\[MiB\\]": ".MiB"
"\\[%\\]": ".percent"
"\\[W\\]": ".watts"
"\\[MHz\\]": ".MHz"
value_parser:
"clocks|power|fan|memory|temp|util|ecc|stats|gom|mig|count|pcie": '\d*\.?\d+'
'.': '\[N\/A\]|N\/A|Not Active|Disabled|Enabled|Default'
```
</Step>

<Step>
## Confirme se as métricas da GPU estão sendo ingeridas

A configuração do Flex será detectada e executada automaticamente pelo agente de infraestrutura, não sendo necessário reiniciar o agente. Você pode confirmar que as métricas estão sendo ingeridas executando esta consulta NRQL:

```sql
SELECT * FROM NvidiaGpuSample
```
```sql
SELECT * FROM NvidiaGpuSample
```
</Step>

<Step>
Expand Down Expand Up @@ -165,9 +165,9 @@ Ao instalar, você obterá um dashboard pré-construído contendo métricas cruc

Aqui está uma consulta NRQL para visualizar toda a telemetria disponível:

```sql
SELECT * FROM NvidiaGpuSample
```
```sql
SELECT * FROM NvidiaGpuSample
```
</Step>
</Steps>

Expand Down

0 comments on commit 8f12f6d

Please sign in to comment.