Skip to content

Commit 8de16f8

Browse files
committed
Correct file names, links, sidebars
1 parent be109b3 commit 8de16f8

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
id: changelog
3+
title: Changelog
4+
description: Changelog for PostgreSQL source template for OpenTelemetry.
5+
---
6+
7+
<head>
8+
<meta name="robots" content="noindex" />
9+
</head>
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: postgresql
2+
slug: /send-data/opentelemetry-collector/remote-management/source-templates/postgresql
33
title: PostgreSQL Source Template
44
sidebar_label: PostgreSQL
55
description: Learn about the Sumo Logic PostgreSQL source template for OpenTelemetry.
@@ -9,7 +9,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
99
import Tabs from '@theme/Tabs';
1010
import TabItem from '@theme/TabItem';
1111

12-
<head>
12+
<head>
1313
<meta name="robots" content="noindex" />
1414
</head>
1515

@@ -32,12 +32,12 @@ If not already present, the following [Fields](/docs/manage/fields/) are created
3232

3333
### For metrics collection
3434

35-
The PostgreSQL metrics [receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/postgresqlreceiver) collects metrics by querying the PostgreSQL [statistics collector](https://www.postgresql.org/docs/13/monitoring-stats.html).
35+
The PostgreSQL metrics [receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/postgresqlreceiver) collects metrics by querying the PostgreSQL [statistics collector](https://www.postgresql.org/docs/13/monitoring-stats.html).
3636

3737
The monitoring user which is used in the source template must be granted permission to SELECT permission for [pg_stat_database](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-DATABASE-VIEW).
3838

3939
:::note
40-
For SumoLogic OpenTelemetry collector version below 0.116 metric collection will work only for PostgreSQL version 16 and below. With Sumo Logic OpenTelemetry collector version 0.116 and above metric collection will work for Postgresql version 17 as well.
40+
For SumoLogic OpenTelemetry collector version below 0.116 metric collection will work only for PostgreSQL version 16 and below. With Sumo Logic OpenTelemetry collector version 0.116 and above metric collection will work for PostgreSQL version 17 as well.
4141
:::
4242

4343
### For logs collection
@@ -72,15 +72,15 @@ Ensure that the otelcol has adequate permissions to access all log file paths. E
7272
sudo setfacl -R -m d:u:otelcol-sumo:r-x,u:otelcol-sumo:r-x,g:otelcol-sumo:r-x <PATH_TO_LOG_FILE>
7373
```
7474

75-
import LogsCollectionPrereqisites from '../../../../reuse/apps/logs-collection-prereqisites.md';
75+
import LogsCollectionPrereqisites from '../../../../../reuse/apps/logs-collection-prereqisites.md';
7676

7777
## Source template configuration
7878

7979
You can follow the below steps to set a remotely managed OpenTelemetry collector and push the source template to it.
8080

8181
### Step 1: Set up remotely managed OpenTelemetry collector
8282

83-
import CollectorInstallation from '../../../../reuse/apps/opentelemetry/collector-installation.md';
83+
import CollectorInstallation from '../../../../../reuse/apps/opentelemetry/collector-installation.md';
8484

8585
<CollectorInstallation/>
8686

@@ -89,21 +89,21 @@ import CollectorInstallation from '../../../../reuse/apps/opentelemetry/collecto
8989
In this step, you will configure the yaml required for PostgreSQL collection. Below are the inputs required for configuration:
9090

9191
- **Name**. Name of the source template.
92-
- **Description**. Description for the source template.
92+
- **Description**. Description for the source template.
9393
- **Error Log Path**. Enter the path of the error log file for your PostgreSQL instance.
9494
- **Endpoint**. Enter the url of the server which needs to be monitored. Default endpoint is `localhost:5432`.
9595
- **UserName**. Enter the PostgreSQL username.
9696
- **Password Environment Variable Name**. Enter the PostgreSQL password environment variable name.
9797
- **Fields/Metadata**. You can provide any customer fields to be tagged with the data collected. By default, Sumo Logic tags `_sourceCategory` with the value otel/postgresql user needs to provide the value for `db.cluster.name`.
9898

99-
import OtelLogAdvanceOption from '../../../../reuse/apps/opentelemetry/logs-advance-option-otel.md';
99+
import OtelLogAdvanceOption from '../../../../../reuse/apps/opentelemetry/logs-advance-option-otel.md';
100100

101101
<OtelLogAdvanceOption/>
102102

103-
**Processing Rules**. You can add **processing rules** for logs/metrics collected. To learn more, refer to [Processing Rules](../processing-rules/index.md).
103+
**Processing Rules**. You can add **processing rules** for logs/metrics collected. To learn more, refer to [Processing Rules](../../processing-rules/index.md).
104104

105105
### Step 3: Push the source template to the desired remotely managed collectors
106106

107-
import DataConfiguration from '../../../../reuse/apps/opentelemetry/data-configuration.md';
107+
import DataConfiguration from '../../../../../reuse/apps/opentelemetry/data-configuration.md';
108108

109-
<DataConfiguration/>
109+
<DataConfiguration/>

sidebars.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ module.exports = {
203203
'send-data/opentelemetry-collector/remote-management/source-templates/nginx/changelog',
204204
]
205205
},
206+
{
207+
type: 'category',
208+
label: 'PostgreSQL',
209+
collapsible: true,
210+
collapsed: true,
211+
link: {type: 'doc', id: 'send-data/opentelemetry-collector/remote-management/source-templates/postgresql/index'},
212+
items:[
213+
//'send-data/opentelemetry-collector/remote-management/source-templates/postgresql/changelog',
214+
]
215+
},
206216
{
207217
type: 'category',
208218
label: 'RabbitMQ',

0 commit comments

Comments
 (0)