Commit graph

25 commits

Author SHA1 Message Date
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
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
3ada457d13
Rename CalculateProcessScoreboard to CountProcessState 2018-02-27 19:35:45 +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
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
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