Commit graph

24 commits

Author SHA1 Message Date
Kieren Evans
ea4a929fa9
fix: allow 10 seconds to shutdown, fixing shutdown error (#204)
* Allow 15 seconds to shut down

v2.0.0 and above crashes with message "Error during shutdowncontext deadline exceeded" and exit code 1
upon SIGINT being received.

v1.2.1 seems to be unaffected.

* Add bats test

* Reduce to 10 seconds, define directly

Co-Authored-By: andytson-inviqa <andytson-inviqa@users.noreply.github.com>

* style: gofmt -s

* chore: bump golang to 1.17 and fix golangci

Co-authored-by: andytson-inviqa <andytson-inviqa@users.noreply.github.com>
Co-authored-by: Enrico Stahn <enrico.stahn@gmail.com>
2022-02-09 09:45:36 +11:00
Enrico Stahn
1181deb197
chore: golang 1.15 / golangci-lint action (#127) 2020-11-22 11:38:25 +11:00
Stan Xing
271748ee09
fix: support capturing SIGTERM signal to shutdown gracefully (#82) 2020-03-21 22:05:07 +11:00
Enrico Stahn
4a9fe13966
gometalinter replacement (#73)
* chore: replace gometalinter with golangci
  gometalinter is deprecated and replaced by golangci.
* chore: update go dependencies
* chore: fix lint errcheck reports
   golangci-lint reported multiple errcheck issues, e.g.

   ```
   Error return value of `p.Update` is not checked (errcheck)
   ```

* chore: GitHub actions replaces CircleCI
2020-03-04 16:34:23 +11:00
Enrico Stahn
b95fe70b9c
refactor: Go 1.11 and other refactorings (#36)
* ci: Use docker multi-stage builds
* refactor: Migrate from dep to go mod
* ci: Add Makefile to simplify builds
* ci: Upgrade to golang 1.11
* refactor: Run goimports for formatting
2018-12-10 21:32:28 +11:00
Enrico Stahn
a00bd5b50d
* Fix evaluation when to recalculate metrics
* Rename "CalculateProcessScoreboard" to "CountProcessState"
2018-02-28 22:22:35 +11:00
Enrico Stahn
742e7149dd
Add comment for version variable 2018-02-27 19:29:26 +11:00
Enrico Stahn
4596f8c89b
Refactor environment mapping into separate function 2018-02-25 22:14:40 +11:00
Enrico Stahn
3ffe5787c8
More error checks thanks to errcheck 2018-02-25 21:45:46 +11:00
Enrico Stahn
daec91ff2c
Code-cleanup with goimports 2018-02-25 10:08:12 +11:00
Enrico Stahn
62276d310f
* Add ability to calculate correct idle/active/total processes #6
* Expose PHP-FPM Pool metrics #4
2018-02-25 00:36:13 +11:00
Enrico Stahn
f3d7296080
* Shutdown server gracefully
* Remove unused customLabel variables
* Rename title/body text from apache exporter
2018-02-24 22:13:18 +11:00
Enrico Stahn
c8e7b5c5b5
Remove "phpfpm.label-name" and "phpfpm.label-value" since it's not needed due to prometheus relabelling 2018-02-24 21:42:13 +11:00
Enrico Stahn
4f0d801b64
Set log level from environment variable PHP_FPM_LOG_LEVEL 2018-02-20 13:43:52 +11:00
Enrico Stahn
252d8b9da1
Retrieve config information from environment variables 2018-02-20 12:33:36 +11:00
Enrico Stahn
11b8bfd57c
Remove dev gunk 2018-02-20 10:07:08 +11:00
Enrico Stahn
445e0aeac9
Set default log level to info 2018-02-20 09:50:00 +11:00
Enrico Stahn
058139cea2
Add version information 2018-02-19 19:49:25 +11:00
Enrico Stahn
f56543e484
Add package documentation 2018-02-19 12:12:34 +11:00
Enrico Stahn
f9df1401cd
Fix golint issues 2018-02-19 11:45:35 +11:00
Enrico Stahn
0bf1933886
:goberserk: go fmt all the things 2018-02-19 10:53:19 +11:00
Enrico Stahn
55531314ed
Update package path 2018-02-18 20:51:02 +11:00
Enrico Stahn
dc0bdca466
Use local path to import local packages 2018-02-18 12:06:48 +11:00
Enrico Stahn
10db3f27ba Initial version 2018-02-17 23:42:58 +11:00