Skip to content

Commit a12d163

Browse files
committed
Fix links from edb_otel to pg_exporter
The paths are valid for `upm-metrics-pg-exporter`, but not for `pg_exporter`. Since the former is not public-facing, it probably shouldn't be in public docs anyway, so remove it and fix the paths into `pg_exporter` appropriately, which is to remove the `/collector/` component and `0410-pg_activity.yml` instead of `410-pg_activity.yml`. Also, it looks like the repository was moved from Vonng to pgsty permanently.
1 parent 11da705 commit a12d163

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

advocacy_docs/pg_extensions/otel/using.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ This custom query adds a count of client backends to the schedule:
9191

9292
## `edb_otel.pg_exporter_base_definitions`
9393

94-
This view contains the meter (queries and their metrics) definitions that pg_exporter brings by default. You can refresh them from the [upm-metrics-pg-exporter](https://github.com/EnterpriseDB/upm-metrics-pg-exporter/tree/main/config/collector) or the [pg_exporter collector](https://github.com/Vonng/pg_exporter/tree/main/config/collector) by running `yq` on the directory:
94+
This view contains the meter (queries and their metrics) definitions that pg_exporter brings by default. You can refresh them from the [pg_exporter collector](https://github.com/pgsty/pg_exporter/tree/main/config) by running `yq` on the directory:
9595

9696
```yq
97-
yq eval-all -o=json '. as $item ireduce ({}; . * $item)' [...]/config/collector/*.yml
97+
yq eval-all -o=json '. as $item ireduce ({}; . * $item)' [...]/config/*.yml
9898
```
9999

100100
## Job scheduling
@@ -104,7 +104,7 @@ You can use pg_cron to schedule jobs for the pg_exporter. edb_otel has auxiliary
104104
- The meter name. This is the top key in the YAML files.
105105
- A scheduling definition. This is a schedule that pg_cron will accept,
106106

107-
For example, the [410-pg_activity.yml](https://github.com/Vonng/pg_exporter/blob/main/config/collector/410-pg_activity.yml) query pulls output from pg_stat_activity. To run this every minute, use the cron syntax: '* * * * *'. To create the job in pg_cron:
107+
For example, the [0410-pg_activity.yml](https://github.com/pgsty/pg_exporter/blob/main/config/0410-pg_activity.yml) query pulls output from pg_stat_activity. To run this every minute, use the cron syntax: '* * * * *'. To create the job in pg_cron:
108108

109109
```sql
110110
SELECT edb_otel.schedule_from_pg_exporter_definition(meters->'pg_activity', '* * * * *')

0 commit comments

Comments
 (0)