<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1be430a279dd8821f995f3491e4c37fb2ed6da0e">https://github.com/macports/macports-ports/commit/1be430a279dd8821f995f3491e4c37fb2ed6da0e</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 1be430a prometheus: new port for Prometheus 2.10.0
</span>1be430a is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1be430a279dd8821f995f3491e4c37fb2ed6da0e
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Tue May 28 22:18:07 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> prometheus: new port for Prometheus 2.10.0
</span>---
net/prometheus/Portfile | 136 +++++++++++++++++++++
net/prometheus/files/example-prometheus-config.yml | 29 +++++
net/prometheus/files/org.macports.prometheus.plist | 36 ++++++
3 files changed, 201 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/prometheus/Portfile b/net/prometheus/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..818b815
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/prometheus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,136 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup prometheus prometheus 2.10.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description The Prometheus monitoring system and time series database
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Prometheus is an open-source systems monitoring and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ alerting toolkit originally built at SoundCloud. Since \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ its inception in 2012, many companies and organizations \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ have adopted Prometheus, and the project has a very \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ active developer and user community.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://prometheus.io/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license apache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:herbygillot @herbygillot} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:curl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:go
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env GOPATH=${workpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PATH=$env(PATH):${workpath}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+installs_libs no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 e066bbfce9ba96641f041adfa649a7a429a34856 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 0362f4aa2fb44cc2c572df140da742bdf99fe9f338157a83f6634694fd693000 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 11752395
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_user ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_conf_dir ${prefix}/etc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_conf_file ${prom_conf_dir}/prometheus.yml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_data_dir ${prefix}/var/db/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_doc_dir ${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_share_dir ${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_log_dir ${prefix}/var/log/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_log_file ${prom_log_dir}/${name}.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_users ${prom_user} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ group=${prom_user} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ realname=Prometheus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${filespath}/org.macports.prometheus.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@NAME@|${name}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@USER@|${prom_user}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@GROUP@|${prom_user}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@CONF_FILE@|${prom_conf_file}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@DATA_DIR@|${prom_data_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@LOGFILE@|${prom_log_file}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/promtool ${destroot}${prefix}/bin/promtool
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d 755 ${destroot}${prom_conf_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d 755 ${destroot}${prom_doc_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d 755 ${destroot}${prom_share_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o ${prom_user} -g ${prom_user} -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prom_data_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o ${prom_user} -g ${prom_user} -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prom_log_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ touch ${destroot}${prom_conf_dir}/.keep
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ touch ${destroot}${prom_log_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${prom_log_file} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -owner ${prom_user} -group ${prom_user}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${filespath}/example-prometheus-config.yml \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prom_share_dir}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${prom_doc_dir}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -o root -W ${workpath} org.macports.${name}.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 ${destroot}/Library/LaunchDaemons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/etc/LaunchDaemons/org.macports.${name}/org.macports.${name}.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}/Library/LaunchDaemons/org.macports.${name}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.keepdirs-append ${destroot}${prom_data_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${prom_conf_file}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${prom_share_dir}/example-prometheus-config.yml ${prom_conf_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To change Prometheus configuration, you can make edits to:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prom_conf_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To enable the Prometheus service, use `port load`, as follows:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\$ sudo port load ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Once enabled, the service will log to:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prom_log_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/prometheus/files/example-prometheus-config.yml b/net/prometheus/files/example-prometheus-config.yml
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..af33d87
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/prometheus/files/example-prometheus-config.yml
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# my global config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+global:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # scrape_timeout is set to the global default (10s).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Alertmanager configuration
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+alerting:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ alertmanagers:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - static_configs:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - targets:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # - alertmanager:9093
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+rule_files:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # - "first_rules.yml"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # - "second_rules.yml"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# A scrape configuration containing exactly one endpoint to scrape:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Here it's Prometheus itself.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+scrape_configs:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - job_name: 'prometheus'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # metrics_path defaults to '/metrics'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # scheme defaults to 'http'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static_configs:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - targets: ['localhost:9090']
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/prometheus/files/org.macports.prometheus.plist b/net/prometheus/files/org.macports.prometheus.plist
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7c01eaa
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/prometheus/files/org.macports.prometheus.plist
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<?xml version="1.0" encoding="UTF-8"?>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<plist version="1.0">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Label</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>org.macports.@NAME@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ProcessType</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>Interactive</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Disabled</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <false/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>RunAtLoad</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>KeepAlive</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>SessionCreate</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>LaunchOnlyOnce</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <false/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>UserName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@USER@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>GroupName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@GROUP@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ExitTimeOut</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>600</integer>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ProgramArguments</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/bin/prometheus</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--storage.tsdb.path=@DATA_DIR@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>--config.file=@CONF_FILE@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>StandardErrorPath</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@LOGFILE@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>StandardOutPath</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@LOGFILE@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</plist>
</span></pre><pre style='margin:0'>
</pre>