38 lines
832 B
YAML
38 lines
832 B
YAML
# nfpm.yaml
|
|
|
|
name: postgres_exporter
|
|
version: ${PACKAGE_VERSION}
|
|
release: ${PACKAGE_RELEASE}
|
|
arch: amd64
|
|
platform: linux
|
|
section: default
|
|
priority: extra
|
|
description: "A PostgreSQL metric exporter for Prometheus"
|
|
maintainer: Prometheus
|
|
homepage: https://github.com/prometheus-community/postgres_exporter
|
|
license: Apache-2.0 license
|
|
|
|
disable_globbing: false
|
|
|
|
replaces:
|
|
- postgres_exporter
|
|
|
|
provides:
|
|
- postgres_exporter
|
|
|
|
# Files to include in the package
|
|
contents:
|
|
- src: /app/postgres_exporter
|
|
dst: /usr/bin/postgres_exporter
|
|
file_info:
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
# Scripts to run during installation/removal (optional)
|
|
# scripts:
|
|
# preinstall: ./scripts/preinstall.sh
|
|
# postinstall: ./scripts/postinstall.sh
|
|
# preremove: ./scripts/preremove.sh
|
|
# postremove: ./scripts/postremove.sh
|