Skip to content

Commit

Permalink
Add pgmonitor-extension by CrunchyData (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuslikDaRete authored Nov 1, 2024
1 parent cb6bf0d commit 3dd41b1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/pgmonitor/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set PostgreSQL version
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}

# Clone repository
RUN git clone https://github.com/CrunchyData/pgmonitor-extension.git

# Set project version
ARG EXTENSION_VERSION

# Build extension
RUN cd pgmonitor-extension && \
git fetch origin v${EXTENSION_VERSION} && \
git checkout v${EXTENSION_VERSION} && \
make
16 changes: 16 additions & 0 deletions contrib/pgmonitor/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[extension]
name = "pgmonitor"
version = "2.0.0"
repository = "https://github.com/CrunchyData/pgmonitor-extension.git"
license = "Apache-2.0"
description = "PostgreSQL extension that provides a means to collect metrics that can be used by an external collection source."
documentation = "https://github.com/CrunchyData/pgmonitor-extension.git"
categories = ["metrics"]

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd pgmonitor-extension && make install
"""

0 comments on commit 3dd41b1

Please sign in to comment.