You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn about the Sumo Logic PostgreSQL source template for OpenTelemetry.
@@ -9,7 +9,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
9
9
import Tabs from '@theme/Tabs';
10
10
import TabItem from '@theme/TabItem';
11
11
12
-
<head>
12
+
<head>
13
13
<metaname="robots"content="noindex" />
14
14
</head>
15
15
@@ -32,12 +32,12 @@ If not already present, the following [Fields](/docs/manage/fields/) are created
32
32
33
33
### For metrics collection
34
34
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).
36
36
37
37
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).
38
38
39
39
:::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.
41
41
:::
42
42
43
43
### For logs collection
@@ -72,15 +72,15 @@ Ensure that the otelcol has adequate permissions to access all log file paths. E
import LogsCollectionPrereqisites from '../../../../reuse/apps/logs-collection-prereqisites.md';
75
+
import LogsCollectionPrereqisites from '../../../../../reuse/apps/logs-collection-prereqisites.md';
76
76
77
77
## Source template configuration
78
78
79
79
You can follow the below steps to set a remotely managed OpenTelemetry collector and push the source template to it.
80
80
81
81
### Step 1: Set up remotely managed OpenTelemetry collector
82
82
83
-
import CollectorInstallation from '../../../../reuse/apps/opentelemetry/collector-installation.md';
83
+
import CollectorInstallation from '../../../../../reuse/apps/opentelemetry/collector-installation.md';
84
84
85
85
<CollectorInstallation/>
86
86
@@ -89,21 +89,21 @@ import CollectorInstallation from '../../../../reuse/apps/opentelemetry/collecto
89
89
In this step, you will configure the yaml required for PostgreSQL collection. Below are the inputs required for configuration:
90
90
91
91
-**Name**. Name of the source template.
92
-
-**Description**. Description for the source template.
92
+
-**Description**. Description for the source template.
93
93
-**Error Log Path**. Enter the path of the error log file for your PostgreSQL instance.
94
94
-**Endpoint**. Enter the url of the server which needs to be monitored. Default endpoint is `localhost:5432`.
95
95
-**UserName**. Enter the PostgreSQL username.
96
96
-**Password Environment Variable Name**. Enter the PostgreSQL password environment variable name.
97
97
-**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`.
98
98
99
-
import OtelLogAdvanceOption from '../../../../reuse/apps/opentelemetry/logs-advance-option-otel.md';
99
+
import OtelLogAdvanceOption from '../../../../../reuse/apps/opentelemetry/logs-advance-option-otel.md';
100
100
101
101
<OtelLogAdvanceOption/>
102
102
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).
104
104
105
105
### Step 3: Push the source template to the desired remotely managed collectors
106
106
107
-
import DataConfiguration from '../../../../reuse/apps/opentelemetry/data-configuration.md';
107
+
import DataConfiguration from '../../../../../reuse/apps/opentelemetry/data-configuration.md';
0 commit comments