The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/docs/sources/datasources/postgres/_index.md

74 lines
2.9 KiB

---
aliases:
- ../data-sources/postgres/
- ../features/datasources/postgres/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
description: Introduction to the PostgreSQL data source in Grafana.
keywords:
- grafana
- postgresql
- guide
Explicitly set all front matter labels in the source files (#71548) * Set every page to have defaults of 'Enterprise' and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/enterprise-licensing pages to have 'Enterprise' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/recorded-queries pages to have labels cloud,enterprise * Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set administration/stats-and-license pages to have labels cloud,enterprise * Set alerting pages to have labels cloud,enterprise,oss * Set breaking-changes pages to have labels cloud,enterprise,oss * Set dashboards pages to have labels cloud,enterprise,oss * Set datasources pages to have labels cloud,enterprise,oss * Set explore pages to have labels cloud,enterprise,oss * Set fundamentals pages to have labels cloud,enterprise,oss * Set introduction/grafana-cloud pages to have labels cloud Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix introduction pages products Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set panels-visualizations pages to have labels cloud,enterprise,oss * Set release-notes pages to have labels cloud,enterprise,oss * Set search pages to have labels cloud,enterprise,oss * Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss * Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise * Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise * Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise * Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Set troubleshooting pages to have labels cloud,enterprise,oss * Set whatsnew pages to have labels cloud,enterprise,oss * Apply updated labels from review Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2 years ago
labels:
products:
- cloud
- enterprise
- oss
Docs: Refactor data sources content (#57573) * Docs: Revise data source index * Docs: Consolidate data source administration docs * Docs: Revise panels docs related to data sources * Docs: Revise Alertmanager data source * Docs: Reorganize AWS CloudWatch data source docs * Docs: Reorganize Azure Monitor data source docs * Docs: Move azuremonitor to azure-monitor * Docs: Revise Elasticsearch docs * Docs: Move Elasticsearch index into bundle * Docs: Revise GCM docs * Docs: Revise Graphite docs * Docs: Move Graphite index into bundle * Docs: Revise InfluxDB docs * Docs: Revise Jaeger docs * Docs: Move Jaeger index into bundle * Docs: Revise Loki docs * Docs: Move Loki index into bundle * Docs: Revise MS SQL docs * Docs: Move MS SQL index into bundle * Docs: Revise Prometheus docs * Docs: Move Prometheus index into bundle * Docs: Revise Tempo docs * Docs: Move Tempo index into bundle * Docs: Revise TestData DB docs * Docs: Move TestData DB index into bundle * Docs: Revise Zipkin docs * Docs: Move Zipkin index into bundle * Docs: Move other data sources' index pages into bundles * Docs: Revise frontmatter * Fixing hugo markdown errors * Docs: Add query editor and template var sections to overview doc * Docs: Remove CTAs across data source docs * Docs: Remove CTA * Docs: Remove CTA * Docs: Fix links, images, typos, and usage consistency. * Docs: Fix typos * Docs: Fix CI issues * Update docs/sources/datasources/_index.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * Update docs/sources/datasources/_index.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * Docs: Fix query editor links * Update docs/sources/panels-visualizations/_index.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * Update docs/sources/panels-visualizations/_index.md Co-authored-by: Torkel Ödegaard <torkel@grafana.com> * Docs: Rebundle child pages per writers' toolkit * Docs: Fix prettier for CI * Docs: Fix relrefs from outside data sources docs * Docs: Fix broken relrefs within datasources * Docs: Fix relrefs to data sources docs * Fixed some more refs Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
3 years ago
menuTitle: PostgreSQL
title: PostgreSQL data source
weight: 1200
refs:
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
annotate-visualizations:
- pattern: /docs/grafana/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/annotate-visualizations/
- pattern: /docs/grafana-cloud/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/annotate-visualizations/
configure-postgres-data-source:
- pattern: /docs/grafana/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/configure/
- pattern: /docs/grafana-cloud/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/configure/
postgres-query-editor:
- pattern: /docs/grafana/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/query-editor/
- pattern: /docs/grafana-cloud/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/query-editor/
alerting:
- pattern: /docs/grafana/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/alerting/
- pattern: /docs/grafana-cloud/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana-cloud/alerting-and-irm/alerting/
transformations:
- pattern: /docs/grafana/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/query-transform-data/transform-data/
- pattern: /docs/grafana-cloud/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana-cloud/visualizations/panels-visualizations/query-transform-data/transform-data/
visualizations:
- pattern: /docs/grafana/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/visualizations/
- pattern: /docs/grafana-cloud/
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/
---
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
# PostgreSQL data source
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
Grafana includes a built-in PostgreSQL data source plugin, enabling you to query and visualize data from any PostgreSQL-compatible database. You don't need to install a plugin to add the PostgreSQL data source to your Grafana instance.
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
Grafana offers several configuration options for this data source as well as a visual and code-based query editor.
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
## Get started with the PostgreSQL data source
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
The following documents will help you get started with the PostgreSQL data source in Grafana:
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
- [Configure the PostgreSQL data source](ref:configure-postgres-data-source)
- [PostgreSQL query editor](ref:postgres-query-editor)
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
After you have configured the data source you can:
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
- Create a variety of [visualizations](ref:visualizations)
- Add [annotations](ref:annotate-visualizations)
- Set up [alerting](ref:alerting)
- Add [transformations](ref:transformations)
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
View a PostgreSQL overview on Grafana Play:
Postgres Data Source (#9475) * add postgresql datasource * add rest of files for postgres datasource * fix timeseries query, remove unused code * consistent naming, refactoring * s/mysql/postgres/ * s/mysql/postgres/ * couple more tests * tests for more datatypes * fix macros for postgres * add __timeSec macro * add frontend for postgres datasource * adjust documentation * fix formatting * add proper plugin description * merge editor changes from mysql * port changes from mysql datasource * set proper defaultQuery for postgres * add time_sec to timeseries query accept int for value for timeseries query * revert allowing time_sec and handle int or float values as unix timestamp for "time" column * fix tslint error * handle decimal values in timeseries query * allow setting sslmode for postgres datasource * use type switch for handling data types * fix value for timeseries query * refactor timeseries queries to make them more flexible * remove debug statement from inner loop in type conversion * use plain for loop in getTypedRowData * fix timeseries queries * adjust postgres datasource to tsdb refactoring * adjust postgres datasource to frontend changes * update lib/pq to latest version * move type conversion to getTypedRowData * handle address types cidr, inet and macaddr * adjust response parser and docs for annotations * convert unknown types to string * add documentation for postgres datasource * add another example query with metric column * set more helpful default query * update help text in query editor * handle NULL in value column of timeseries query * add __timeGroup macro * add test for __timeGroup macro * document __timeGroup and set proper default query for annotations * fix typos in docs * add postgres to list of datasources * add postgres to builtInPlugins * mysql: refactoring as prep for merging postgres Refactors out the initialization of the xorm engine and the query logic for an sql data source. * mysql: rename refactoring + test update * postgres:refactor to use SqlEngine(same as mysql) Refactored to use a common base class with the MySql data source. Other changes from the original PR: - Changed time column to be time_sec to allow other time units in the future and to be the same as MySQL - Changed integration test to test the main Query method rather than the private transformToTable method - Changed the __timeSec macro name to __timeEpoch - Renamed PostgresExecutor to PostgresQueryEndpoint Fixes #9209 (the original PR) * postgres: encrypt password on config page With some other cosmetic changes to the config page: - placeholder texts - reset button for the password after it has been encrypted. - default value for the sslmode field. * postgres: change back col name to time from time_sec * postgres mysql: remove annotation title Title has been removed from annotations * postgres: fix images for docs page * postgres mysql: fix specs
8 years ago
Docs: Overhaul of PostgreSQL data source documenation (#99908) * created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4 months ago
{{< docs/play title="PostgreSQL Overview" url="https://play.grafana.org/d/ddvpgdhiwjvuod/postgresql-overview" >}}