Skip to content

Commit

Permalink
Merge pull request #18664 from sjyothi54/NR312791
Browse files Browse the repository at this point in the history
fix: Updated nextcloud documentation
  • Loading branch information
jeff-colucci authored Sep 14, 2024
2 parents 38df1b9 + edd6519 commit ab9678f
Showing 1 changed file with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ Complete the following steps to install the integration:

1. Create a file named `nri-flex-nextcloud.yml` in `/etc/newrelic-infra/integrations.d`

2. Use our [configuration template](https://github.com/newrelic/nri-flex/blob/master/examples/json-read-cmd-example.yml) to update the fields `EVENT_TYPE` and `YOUR_DOMAIN` in the file named `nri-flex-nextcloud.yml`. The value on the `event_type` is used to store metrics on the NRDB. For example, you can update `EVENT_TYPE` to `NextcloudFlexMetrics`
2. Use our [configuration template](https://github.com/newrelic/nri-flex/blob/master/examples/json-read-cmd-example.yml) to update the fields `YOUR_EVENT_TYPE` and `YOUR_HOST_IP` in the file named `nri-flex-nextcloud.yml`. The value on the `event_type` is used to store metrics in the NRDB. For example, you can update `EVENT_TYPE` to `NextcloudFlexMetrics`

Your `nri-flex-nextcloud.yml` file should look like this:

```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: YOUR_EVENT_TYPE
url: info?format=json
```
Metrics for Nextcloud are available at the following URL: `http://YOUR_HOST_IP/ocs/v2.php/apps/serverinfo/api/v1/info?format=json`

Expand All @@ -62,15 +62,15 @@ Complete the following steps to install the integration:
You can use [log forwarding](/docs/logs/forward-logs/forward-your-logs-using-infrastructure-agent/) to forward Nextcloud logs to New Relic:

1. Create a log file named `logging.yml` in `/etc/newrelic-infra/logging.d/`
2. After creating the log file, add the following script to the `logging.yml` file:

```yml
logs:
- name: nextcloud.log
file: /var/www/nextcloud/data/nextcloud.log
attributes:
logtype: nextcloud_log
```
2. Add the following script to the `logging.yml` file:

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

<Step>
Expand Down

0 comments on commit ab9678f

Please sign in to comment.