Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: format codeblocks #18996

Merged
merged 17 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3500,26 +3500,26 @@ Metrics can also be enriched with extended cloud metadata (including custom reso

In this example, we exclude process metrics using executable files and names:

```
exclude_matching_metrics: # You can combine attributes from different metrics
process.name:
- regex "^java" # Exclude all processes starting with "java"
process.executable:
- "/usr/bin/python2" # Exclude the Python 2.x executable
- regex "\\System32\\svchost" # Exclude all svchost executables
```yml
exclude_matching_metrics: # You can combine attributes from different metrics
process.name:
- regex "^java" # Exclude all processes starting with "java"
process.executable:
- "/usr/bin/python2" # Exclude the Python 2.x executable
- regex "\\System32\\svchost" # Exclude all svchost executables
```

To configure `exclude_matching_metrics` as an environment variable for the [Kubernetes integration](/docs/kubernetes-pixie/kubernetes-integration/get-started/introduction-kubernetes-integration/), add it in the manifest inside the `env:` object:

```yml
env:
- name: NRIA_EXCLUDE_MATCHING_METRICS
value: |
process.name:
- regex "^java"
process.executable:
- "/usr/bin/python2"
- regex "\\System32\\svchost"
- name: NRIA_EXCLUDE_MATCHING_METRICS
value: |
process.name:
- regex "^java"
process.executable:
- "/usr/bin/python2"
- regex "\\System32\\svchost"
```

Default
Expand Down Expand Up @@ -5940,83 +5940,83 @@ If you are having problems with proxy configuration, see [Proxy troubleshooting]

```bash
curl http://localhost:8003/v1/status
{
"checks": {
"endpoints": [
{
"url": "https://infrastructure-command-api.newrelic.com/agent_commands/v1/commands",
"reachable": true
},
{
"url": "https://infra-api.newrelic.com/infra/v2/metrics",
"reachable": true
},
{
"url": "https://identity-api.newrelic.com/identity/v1",
"reachable": true
},
{
"url": "https://infra-api.newrelic.com/inventory",
"reachable": true
}
]
},
"config": {
"reachability_timeout": "10s"
}
}
[output] {
[output] "checks": {
[output] "endpoints": [
[output] {
[output] "url": "https://infrastructure-command-api.newrelic.com/agent_commands/v1/commands",
[output] "reachable": true
[output] },
[output] {
[output] "url": "https://infra-api.newrelic.com/infra/v2/metrics",
[output] "reachable": true
[output] },
[output] {
[output] "url": "https://identity-api.newrelic.com/identity/v1",
[output] "reachable": true
[output] },
[output] {
[output] "url": "https://infra-api.newrelic.com/inventory",
[output] "reachable": true
[output] }
[output] ]
[output] },
[output] "config": {
[output] "reachability_timeout": "10s"
[output] }
[output] }
```

Main status endpoint (with errors):

```bash
curl http://localhost:8003/v1/status
{
"checks": {
"endpoints": [
{
"url": "https://staging-infra-api.newrelic.com/infra/v2/metrics",
"reachable": false,
"error": "endpoint check timeout exceeded"
},
{
"url": "https://infra-api.newrelic.com/infra/v2/metrics",
"reachable": true
},
{
"url": "https://identity-api.newrelic.com/identity/v1",
"reachable": true
},
{
"url": "https://infra-api.newrelic.com/inventory",
"reachable": true
}
]
},
"config": {
"reachability_timeout": "10s"
}
}
[output] {
[output] "checks": {
[output] "endpoints": [
[output] {
[output] "url": "https://staging-infra-api.newrelic.com/infra/v2/metrics",
[output] "reachable": false,
[output] "error": "endpoint check timeout exceeded"
[output] },
[output] {
[output] "url": "https://infra-api.newrelic.com/infra/v2/metrics",
[output] "reachable": true
[output] },
[output] {
[output] "url": "https://identity-api.newrelic.com/identity/v1",
[output] "reachable": true
[output] },
[output] {
[output] "url": "https://infra-api.newrelic.com/inventory",
[output] "reachable": true
[output] }
[output] ]
[output] },
[output] "config": {
[output] "reachability_timeout": "10s"
[output] }
[output] }
```

Errors endpoint example:

```bash
curl http://localhost:18003/v1/status/errors
{
"checks": {
"endpoints": [
{
"url": "https://staging-infra-api.newrelic.com/infra/v2/metrics",
"reachable": false,
"error": "endpoint check timeout exceeded"
}
]
},
"config": {
"reachability_timeout": "10s"
}
}
[output] {
[output] "checks": {
[output] "endpoints": [
[output] {
[output] "url": "https://staging-infra-api.newrelic.com/infra/v2/metrics",
[output] "reachable": false,
[output] "error": "endpoint check timeout exceeded"
[output] }
[output] ]
[output] },
[output] "config": {
[output] "reachability_timeout": "10s"
[output] }
[output] }
```

This is similar to the main status endpoint but filtering those with errors only.
Expand All @@ -6025,10 +6025,10 @@ If you are having problems with proxy configuration, see [Proxy troubleshooting]

```bash
curl http://localhost:8003/v1/status/entity
{
"guid":"MMMMNjI0NjR8SU5GUkF8TkF8ODIwMDg3MDc0ODE0MTUwNTMy",
"key":"your-host-name"
}
[output] {
[output] "guid":"MMMMNjI0NjR8SU5GUkF8TkF8ODIwMDg3MDc0ODE0MTUwNTMy",
[output] "key":"your-host-name"
[output] }
```

Returns information about the agent/host entity. A response status code _204_ ("No Content") will be returned when the agent still has no information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,41 +34,41 @@ To install the infrastructure agent, follow the step-by-step instructions:
You can check your Homebrew installation with:

```bash
which brew
which brew
```

If it's not installed, you can install it with this command (or check [Homebrew](https://brew.sh/) up-to-date instructions):

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

3. Then, open the terminal and run the following command::

```bash
brew install newrelic-infra-agent -q
brew install newrelic-infra-agent -q
```

4. Start the infrastructure agent service:

```bash
brew services start newrelic-infra-agent
brew services start newrelic-infra-agent
```

5. Create the configuration file and add your <InlinePopover type="licenseKey"/>:

Intel x86:

```bash
sudo mkdir -p /usr/local/etc/newrelic-infra/
echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /usr/local/etc/newrelic-infra/newrelic-infra.yml
sudo mkdir -p /usr/local/etc/newrelic-infra/
echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /usr/local/etc/newrelic-infra/newrelic-infra.yml
```

Apple Silicon:

```bash
sudo mkdir -p /opt/homebrew/etc/newrelic-infra/
echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /opt/homebrew/etc/newrelic-infra/newrelic-infra.yml
sudo mkdir -p /opt/homebrew/etc/newrelic-infra/
echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /opt/homebrew/etc/newrelic-infra/newrelic-infra.yml
```

Wait a few minutes, then [view your server in the infrastructure UI](/docs/infrastructure/infrastructure-ui-pages/infra-ui-overview). If no data appears after waiting a few minutes, follow the [troubleshooting steps](/docs/infrastructure/new-relic-infrastructure/troubleshooting/no-data-appears-infrastructure).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If you used the default install procedure for your infrastructure agent for Linu
>
Execute the following command as root:

```
```sh
sudo apt-get remove newrelic-infra
```
</Collapser>
Expand All @@ -45,7 +45,7 @@ If you used the default install procedure for your infrastructure agent for Linu
>
Execute the following command as root:

```
```sh
sudo yum remove newrelic-infra
```
</Collapser>
Expand All @@ -56,7 +56,7 @@ If you used the default install procedure for your infrastructure agent for Linu
>
Execute the following command as root:

```
```sh
sudo zypper -n remove newrelic-infra
```
</Collapser>
Expand Down Expand Up @@ -84,13 +84,13 @@ If you followed an [assisted](/docs/infrastructure/install-configure-infrastruct
If you used the default install procedure for the infrastructure agent for macOS environments, to uninstall:

1. [Stop the infrastructure agent](/docs/infrastructure/new-relic-infrastructure/configuration/start-stop-restart-check-infrastructure-agent-status#macOS):
```
brew services stop newrelic-infra-agent
```sh
brew services stop newrelic-infra-agent
```

2. From the terminal, run the uninstall command:
```
brew uninstall newrelic-infra-agent
```sh
brew uninstall newrelic-infra-agent
```

## Uninstall using config management tools [#uninstall-other]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,25 +140,25 @@ Here are some examples:

You can check the available contexts with:

```
```sh
kubectl config get-contexts
```

And switch to the desired context using:

```
```sh
kubectl config use-context CONTEXT_NAME
```

If you used Helm to install the Kubernetes integration, just uninstall it using Helm:

```
```sh
helm uninstall --namespace NAMESPACE_USED_DURING_INSTALLATION RELEASE_NAME
```

If you installed Kubernetes integration using a manifest, use the same manifest to uninstall it:

```
```sh
kubectl delete -f newrelic-infrastructure.yaml
```
</Collapser>
Expand Down Expand Up @@ -406,7 +406,7 @@ If you remove the integrations package and want to continue using the related on
</td>

<td>
```
```sh
sudo zypper -n remove newrelic-infra-integrations --clean-deps
```
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To view the current infrastructure agent version for a host in the New Relic UI,
* Single hosts: See the `agentVersion` tag on any [host entity](/docs/new-relic-solutions/new-relic-one/core-concepts/what-entity-new-relic/#find), or look for its `Agent version` in the <DNT>**Infrastructure**</DNT> UI.
* Multiple hosts: Go to <DNT>**Infrastructure > Navigator**</DNT> and group reporting entities by `agentVersion` to see a list of active hosts per version.
* Query: Use the `agentVersion` attribute on any standard agent metric to generate a report. For example, the following NRQL query shows number of unique active hosts group by agent version:
```
```sql
FROM SystemSample SELECT uniqueCount(hostname)
FACET agentVersion
LIMIT MAX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To install the agent:

1. Download the [packaged agent file](https://download.newrelic.com/infrastructure_agent/binaries/windows/) or use the following command that automatically fetches a specific version of the agent, its checksum and verifies it after download. Replace `$arch=amd64` with desired architecture (amd64, 386) and `$v=1.27.4` with [latest or specific version](https://github.com/newrelic/infrastructure-agent/releases/latest).

```
```sh
$v="1.27.4"; $arch="amd64"; $url="https://download.newrelic.com/infrastructure_agent/binaries/windows/$arch/newrelic-infra-$arch.$v.zip";@("$url", "$url.sum") | ForEach-Object { Invoke-WebRequest -Uri $_ -OutFile $_.Split('/')[-1] }; write-host 'Checksum:' $(If (Select-String -Path "$url.sum".Split('/')[-1] -Pattern (Get-FileHash $url.Split('/')[-1]).Hash -Quiet) {"Ok"} Else {"Fail"})
```
2. Unpack the file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To install the agent:

1. Download the [packaged agent file](https://download.newrelic.com/infrastructure_agent/binaries/windows/) or use the following command that automatically fetches a specific version of the agent, its checksum and verifies it after download. Replace `$arch=amd64` with desired architecture (amd64, 386) and `$v=1.27.4` with [latest or specific version](https://github.com/newrelic/infrastructure-agent/releases/latest).

```
```sh
$v="1.27.4"; $arch="amd64"; $url="https://download.newrelic.com/infrastructure_agent/binaries/windows/$arch/newrelic-infra-$arch.$v.zip";@("$url", "$url.sum") | ForEach-Object { Invoke-WebRequest -Uri $_ -OutFile $_.Split('/')[-1] }; write-host 'Checksum:' $(If (Select-String -Path "$url.sum".Split('/')[-1] -Pattern (Get-FileHash $url.Split('/')[-1]).Hash -Quiet) {"Ok"} Else {"Fail"})
```
2. Unpack the file.
Expand Down
Loading