From ef5851b80fae0a286d15dfbfc1dd26dd75f1b795 Mon Sep 17 00:00:00 2001
From: Ben Kochie <superq@gmail.com>
Date: Mon, 12 Apr 2021 09:25:15 +0200
Subject: [PATCH] Add GitHub issue templates

Add templates to point users towards the community support channels.

Signed-off-by: Ben Kochie <superq@gmail.com>
---
 .github/ISSUE_TEMPLATE/bug_report.md      | 47 +++++++++++++++++++++++
 .github/ISSUE_TEMPLATE/config.yml         |  5 +++
 .github/ISSUE_TEMPLATE/feature_request.md | 21 ++++++++++
 3 files changed, 73 insertions(+)
 create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md
 create mode 100644 .github/ISSUE_TEMPLATE/config.yml
 create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md

diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..f75e9b5a
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,47 @@
+---
+name: Bug report
+about: Create a report to help us improve.
+title: ''
+assignees: ''
+---
+
+<!--
+
+    Please do *NOT* ask usage questions in Github issues.
+
+    If your issue is not a feature request or bug report use our community support.
+
+    https://prometheus.io/community/
+
+-->
+
+**What did you do?**
+
+**What did you expect to see?**
+
+**What did you see instead? Under which circumstances?**
+
+**Environment**
+
+* System information:
+
+	insert output of `uname -srm` here
+
+* postgres_exporter version:
+
+	insert output of `postgres_exporter --version` here
+
+* postgres_exporter flags:
+
+```
+insert list of flags used here
+```
+
+* PostgresSQL version:
+
+	insert PostgreSQL version here
+
+* Logs:
+```
+insert logs relevant to the issue here
+```
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 00000000..d70ee551
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
+blank_issues_enabled: false
+contact_links:
+  - name: Prometheus community support
+    url: https://prometheus.io/community/
+    about: List of communication channels for the Prometheus community.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..ee6d97a8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,21 @@
+---
+name: Feature request
+about: Suggest an idea for this project.
+title: ''
+labels: ''
+assignees: ''
+---
+
+<!--
+
+    Please do *NOT* ask usage questions in Github issues.
+
+    If your issue is not a feature request or bug report use our community support.
+
+    https://prometheus.io/community/
+
+-->
+## Proposal
+**Use case. Why is this important?**
+
+*“Nice to have” is not a good use case. :)*