Commit graph

18 commits

Author SHA1 Message Date
Enrico Stahn
1181deb197
chore: golang 1.15 / golangci-lint action (#127) 2020-11-22 11:38:25 +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
8b64a58900
fix: Invalid PHP-FPMs request uri encoding (#37)
* fix: hashids multiple-value context (#32)
* feat: Add method to fix invalid JSON content
* chore: Add test for issue #24
* chore: Use golang modules
* fix: Set alias to satisfy gofmt
2018-12-29 20:15:27 +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
Stanislav Antic
03d87088d7 fix: json: cannot unmarshal number (#28)
* fixes hipages/php-fpm_exporter#26
* better comments & fix tests
2018-06-27 09:23:50 +10:00
Enrico Stahn
8a0c89d182
Implement unix socket support and make status path configurable (#23)
* Implement unix socket support and make status path configurable (Thx @herb123456 for the initial implementation) #19 #22
* Follow linting guidelines
* Follow linting guidelines
* Move `env` to where it's being used
2018-03-18 12:23:38 +11:00
Enrico Stahn
6de4433881
Emulate PHP-FPMs metrics calculations for --phpfpm.fix-process-count 2018-02-28 12:12:10 +11:00
Enrico Stahn
3ada457d13
Rename CalculateProcessScoreboard to CountProcessState 2018-02-27 19:35:45 +11:00
Enrico Stahn
1066444ca1
Refactor CalculateProcessScoreboard and states 2018-02-27 19:32:52 +11:00
Enrico Stahn
fa24ebae1a
#9 Fix Unknown states and Inconsistent processes error message 2018-02-27 15:45:53 +11:00
Enrico Stahn
daec91ff2c
Code-cleanup with goimports 2018-02-25 10:08:12 +11:00
Enrico Stahn
49a24fd68f
Add comments to constants 2018-02-25 00:41:46 +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
8303048f5e
Add metrics "phpfpm_up" and "phpfpm_scrape_failures" to report on scraping issues (#2) 2018-02-22 15:41:27 +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
10db3f27ba Initial version 2018-02-17 23:42:58 +11:00