[Bug 258916] [NEW PORT] net-mgmt/php-fpm_exporter: export PHP-FPM metrics for Prometheus

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 04 Oct 2021 11:22:46 UTC

            Bug ID: 258916
           Summary: [NEW PORT] net-mgmt/php-fpm_exporter: export PHP-FPM
                    metrics for Prometheus
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd.org@neant.ro

Created attachment 228429
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228429&action=edit
new port, exposes php-fpm/staus metrics for Prometheus

Exports php-fpm /status page into a format that Prometheus understands on port
9253. A build of https://github.com/hipages/php-fpm_exporter.

My first port. Copy&pasted and googled my way into something that seems to work
as intended. Tested only on FreeBSD 12.2 on AMD64, but the releases page on
GitHub has binaries for ARM64 too, so I assume that also works.

I'm not sure about PLIST_FILES, shouldn't it also list the rc.d script that it

I am not a Go developer, I don't actually fully understand what I did. It
builds and it works-on-my-machines, that's all I know.

'make test' output:

===>  Testing ./...
?       github.com/hipages/php-fpm_exporter     [no test files]
?       github.com/hipages/php-fpm_exporter/cmd [no test files]
=== RUN   TestCountProcessState
--- PASS: TestCountProcessState (0.00s)
=== RUN   TestCannotUnmarshalNumberIssue10
--- PASS: TestCannotUnmarshalNumberIssue10 (0.00s)
=== RUN   TestInvalidCharacterIssue24
--- PASS: TestInvalidCharacterIssue24 (0.00s)
=== RUN   TestJsonResponseFixer
--- PASS: TestJsonResponseFixer (0.00s)
=== RUN   TestParseURL
--- PASS: TestParseURL (0.00s)
ok      github.com/hipages/php-fpm_exporter/phpfpm      0.009s

You are receiving this mail because:
You are the assignee for the bug.