Commit graph

37 commits

Author SHA1 Message Date
Lapo Luchini
877a9ffa0a
fix: align proposed parameter with actual name. (#208) 2022-02-18 10:17:34 +11:00
Enrico Stahn
8930163e8d
style: File is not gofmt-ed with -s 2022-02-08 22:59:38 +01:00
Andrei Kirillov
26cc9ada66
fix: generate gauge metrics for all states (#173) 2021-09-02 11:32:57 +10:00
Simon Stücher
cf49da4466
fix: Typo FPM_REQUEST_INFO (#134)
* Typo FPM_REQUEST_INFO

See `[FPM_REQUEST_INFO]            = "Getting request information",` in 07fa13088e/sapi/fpm/fpm/fpm_request.c (L27)

* Fallback for PHP<7.4
2021-05-10 21:11:30 +10:00
Enrico Stahn
1181deb197
chore: golang 1.15 / golangci-lint action (#127) 2020-11-22 11:38:25 +11:00
itcsoft54
0d25732143
fix: high cardinality of pid_hash (#124)
fixes #110 #76

BREAKING CHANGE: `pid_hash` is being removed in favour of `child` to
avoid high cardinality explosion. In turn this means processes and their
state changes can't be identified anymore. If you're using this behaviour
please open an issue.
2020-11-22 11:34:20 +11:00
Alexander
505fe34b2c
feat: add scrape_url as prometheus label for each metric (#72)
Co-authored-by: Alexander Korelskiy <korelskiy@uteka.ru>
Co-authored-by: Enrico Stahn <enrico.stahn@gmail.com>
2020-03-10 23:58:27 +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
Smoked Cheese
b1f016d250
Update exporter.go 2018-03-05 17:18:27 +03:00
Smoked Cheese
25dd7b3bc2
Fix exporter metrics 2018-03-05 17:16:54 +03:00
Enrico Stahn
fd58e84d40
Add missing metrics to Exporter.Describe() 2018-03-01 11:07:51 +11:00
Enrico Stahn
a0270607e8
Export new metric phpfpm_process_request_duration and update README.md 2018-03-01 10:54:12 +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
7e6f6c32c5
Rename label for phpfpm_processes_* from pid to pid_hash 2018-02-28 15:53:04 +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
afbeb201b1
#10 Add TestCannotUnmarshalNumberIssue10 2018-02-28 12:10:03 +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
a25479edf3
Remove float64 conversion; Export phpfpm_process_state metric 2018-02-27 19:31:31 +11:00
Enrico Stahn
317e65f893
#9 Update metrics documentation 2018-02-27 15:57:50 +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
c0b2ce6bd8
Fix go vet error 2018-02-25 00:39:06 +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
510d087da9
Fix: Label pool.Name on metric was missing 2018-02-22 16:05:49 +11:00
Enrico Stahn
a23e9f0c27
Remove unused package "fmt" 2018-02-22 15:44:28 +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
21868b09cc
©️ Add copyright section 2018-02-19 12:11:23 +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