├── .circleci └── config.yml ├── .gitignore ├── .golangci.yml ├── .promu.yml ├── Dockerfile ├── LICENSE ├── Makefile ├── Makefile.common ├── README.md ├── VERSION ├── contrib ├── php-fpm-multi-pool.json ├── php-fpm.json ├── php-fpm_exporter.service └── php_opcache_exporter.php ├── go.mod ├── go.sum ├── phpfpm_exporter.go └── test └── not_found.metrics /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2.1 2 | orbs: 3 | prometheus: prometheus/prometheus@0.11.0 4 | jobs: 5 | test: 6 | # Whenever the Go version is updated here, .promu.yml 7 | # should also be updated. 8 | docker: 9 | - image: circleci/golang:1.16 10 | steps: 11 | - prometheus/setup_environment 12 | - setup_remote_docker 13 | - run: make 14 | - prometheus/store_artifact: 15 | file: phpfpm_exporter 16 | 17 | workflows: 18 | version: 2 19 | phpfpm_exporter: 20 | jobs: 21 | - test: 22 | filters: 23 | tags: 24 | only: /.*/ 25 | - prometheus/build: 26 | name: build 27 | filters: 28 | tags: 29 | only: /.*/ 30 | - prometheus/publish_master: 31 | context: org-global 32 | docker_hub_organization: lusotycoon 33 | quay_io_organization: lusitaniae 34 | requires: 35 | - test 36 | - build 37 | filters: 38 | branches: 39 | only: master 40 | - prometheus/publish_release: 41 | context: org-global 42 | docker_hub_organization: lusotycoon 43 | quay_io_organization: lusitaniae 44 | requires: 45 | - test 46 | - build 47 | filters: 48 | tags: 49 | only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/ 50 | branches: 51 | ignore: /.*/ -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | phpfpm_exporter 2 | .idea 3 | -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- 1 | # Run only staticcheck for now. Additional linters will be enabled one-by-one. 2 | linters: 3 | enable: 4 | - staticcheck 5 | disable-all: true -------------------------------------------------------------------------------- /.promu.yml: -------------------------------------------------------------------------------- 1 | go: 2 | # Whenever the Go version is updated here, 3 | # .circle/config.yml should also be updated. 4 | version: 1.16 5 | # cgo: false 6 | repository: 7 | path: github.com/Lusitaniae/phpfpm_exporter 8 | build: 9 | flags: -a -tags netgo 10 | ldflags: | 11 | -X github.com/prometheus/common/version.Version={{.Version}} 12 | -X github.com/prometheus/common/version.Revision={{.Revision}} 13 | -X github.com/prometheus/common/version.Branch={{.Branch}} 14 | -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}} 15 | -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} 16 | tarball: 17 | files: 18 | - LICENSE 19 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | ARG ARCH="amd64" 2 | ARG OS="linux" 3 | FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest 4 | LABEL maintainer="https://github.com/Lusitaniae" 5 | 6 | ARG ARCH="amd64" 7 | ARG OS="linux" 8 | COPY .build/${OS}-${ARCH}/phpfpm_exporter /bin/phpfpm_exporter 9 | 10 | EXPOSE 9117 11 | USER nobody 12 | ENTRYPOINT [ "/bin/phpfpm_exporter" ] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Copyright 2015 The Prometheus Authors 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | # Needs to be defined before including Makefile.common to auto-generate targets 15 | DOCKER_ARCHS ?= amd64 armv7 arm64 ppc64le s390x 16 | DOCKER_IMAGE_NAME ?= phpfpm-exporter 17 | 18 | all:: vet checkmetrics common-all 19 | 20 | include Makefile.common 21 | 22 | PROMTOOL_DOCKER_IMAGE ?= $(shell docker pull -q quay.io/prometheus/prometheus:latest || echo quay.io/prometheus/prometheus:latest) 23 | PROMTOOL ?= docker run -i --rm -w "$(PWD)" -v "$(PWD):$(PWD)" --entrypoint promtool $(PROMTOOL_DOCKER_IMAGE) 24 | 25 | .PHONY: checkmetrics 26 | checkmetrics: 27 | @echo ">> checking metrics for correctness" 28 | for file in test/*.metrics; do $(PROMTOOL) check metrics < $$file || exit 1; done -------------------------------------------------------------------------------- /Makefile.common: -------------------------------------------------------------------------------- 1 | # Copyright 2018 The Prometheus Authors 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | 15 | # A common Makefile that includes rules to be reused in different prometheus projects. 16 | # !!! Open PRs only against the prometheus/prometheus/Makefile.common repository! 17 | 18 | # Example usage : 19 | # Create the main Makefile in the root project directory. 20 | # include Makefile.common 21 | # customTarget: 22 | # @echo ">> Running customTarget" 23 | # 24 | 25 | # Ensure GOBIN is not set during build so that promu is installed to the correct path 26 | unexport GOBIN 27 | 28 | GO ?= go 29 | GOFMT ?= $(GO)fmt 30 | FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) 31 | GOOPTS ?= 32 | GOHOSTOS ?= $(shell $(GO) env GOHOSTOS) 33 | GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH) 34 | 35 | GO_VERSION ?= $(shell $(GO) version) 36 | GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) 37 | PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') 38 | 39 | GOVENDOR := 40 | GO111MODULE := 41 | ifeq (, $(PRE_GO_111)) 42 | ifneq (,$(wildcard go.mod)) 43 | # Enforce Go modules support just in case the directory is inside GOPATH (and for Travis CI). 44 | GO111MODULE := on 45 | 46 | ifneq (,$(wildcard vendor)) 47 | # Always use the local vendor/ directory to satisfy the dependencies. 48 | GOOPTS := $(GOOPTS) -mod=vendor 49 | endif 50 | endif 51 | else 52 | ifneq (,$(wildcard go.mod)) 53 | ifneq (,$(wildcard vendor)) 54 | $(warning This repository requires Go >= 1.11 because of Go modules) 55 | $(warning Some recipes may not work as expected as the current Go runtime is '$(GO_VERSION_NUMBER)') 56 | endif 57 | else 58 | # This repository isn't using Go modules (yet). 59 | GOVENDOR := $(FIRST_GOPATH)/bin/govendor 60 | endif 61 | endif 62 | PROMU := $(FIRST_GOPATH)/bin/promu 63 | pkgs = ./... 64 | 65 | ifeq (arm, $(GOHOSTARCH)) 66 | GOHOSTARM ?= $(shell GOARM= $(GO) env GOARM) 67 | GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)v$(GOHOSTARM) 68 | else 69 | GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH) 70 | endif 71 | 72 | GOTEST := $(GO) test 73 | GOTEST_DIR := 74 | ifneq ($(CIRCLE_JOB),) 75 | ifneq ($(shell which gotestsum),) 76 | GOTEST_DIR := test-results 77 | GOTEST := gotestsum --junitfile $(GOTEST_DIR)/unit-tests.xml -- 78 | endif 79 | endif 80 | 81 | PROMU_VERSION ?= 0.12.0 82 | PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz 83 | 84 | GOLANGCI_LINT := 85 | GOLANGCI_LINT_OPTS ?= 86 | GOLANGCI_LINT_VERSION ?= v1.39.0 87 | # golangci-lint only supports linux, darwin and windows platforms on i386/amd64. 88 | # windows isn't included here because of the path separator being different. 89 | ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin)) 90 | ifeq ($(GOHOSTARCH),$(filter $(GOHOSTARCH),amd64 i386)) 91 | GOLANGCI_LINT := $(FIRST_GOPATH)/bin/golangci-lint 92 | endif 93 | endif 94 | 95 | PREFIX ?= $(shell pwd) 96 | BIN_DIR ?= $(shell pwd) 97 | DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) 98 | DOCKERFILE_PATH ?= ./Dockerfile 99 | DOCKERBUILD_CONTEXT ?= ./ 100 | DOCKER_REPO ?= prom 101 | 102 | DOCKER_ARCHS ?= amd64 103 | 104 | BUILD_DOCKER_ARCHS = $(addprefix common-docker-,$(DOCKER_ARCHS)) 105 | PUBLISH_DOCKER_ARCHS = $(addprefix common-docker-publish-,$(DOCKER_ARCHS)) 106 | TAG_DOCKER_ARCHS = $(addprefix common-docker-tag-latest-,$(DOCKER_ARCHS)) 107 | 108 | ifeq ($(GOHOSTARCH),amd64) 109 | ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux freebsd darwin windows)) 110 | # Only supported on amd64 111 | test-flags := -race 112 | endif 113 | endif 114 | 115 | # This rule is used to forward a target like "build" to "common-build". This 116 | # allows a new "build" target to be defined in a Makefile which includes this 117 | # one and override "common-build" without override warnings. 118 | %: common-% ; 119 | 120 | .PHONY: common-all 121 | common-all: precheck style check_license lint unused build test 122 | 123 | .PHONY: common-style 124 | common-style: 125 | @echo ">> checking code style" 126 | @fmtRes=$$($(GOFMT) -d $$(find . -path ./vendor -prune -o -name '*.go' -print)); \ 127 | if [ -n "$${fmtRes}" ]; then \ 128 | echo "gofmt checking failed!"; echo "$${fmtRes}"; echo; \ 129 | echo "Please ensure you are using $$($(GO) version) for formatting code."; \ 130 | exit 1; \ 131 | fi 132 | 133 | .PHONY: common-check_license 134 | common-check_license: 135 | @echo ">> checking license header" 136 | @licRes=$$(for file in $$(find . -type f -iname '*.go' ! -path './vendor/*') ; do \ 137 | awk 'NR<=3' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \ 138 | done); \ 139 | if [ -n "$${licRes}" ]; then \ 140 | echo "license header checking failed:"; echo "$${licRes}"; \ 141 | exit 1; \ 142 | fi 143 | 144 | .PHONY: common-deps 145 | common-deps: 146 | @echo ">> getting dependencies" 147 | ifdef GO111MODULE 148 | GO111MODULE=$(GO111MODULE) $(GO) mod download 149 | else 150 | $(GO) get $(GOOPTS) -t ./... 151 | endif 152 | 153 | .PHONY: update-go-deps 154 | update-go-deps: 155 | @echo ">> updating Go dependencies" 156 | @for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \ 157 | $(GO) get $$m; \ 158 | done 159 | GO111MODULE=$(GO111MODULE) $(GO) mod tidy 160 | ifneq (,$(wildcard vendor)) 161 | GO111MODULE=$(GO111MODULE) $(GO) mod vendor 162 | endif 163 | 164 | .PHONY: common-test-short 165 | common-test-short: $(GOTEST_DIR) 166 | @echo ">> running short tests" 167 | GO111MODULE=$(GO111MODULE) $(GOTEST) -short $(GOOPTS) $(pkgs) 168 | 169 | .PHONY: common-test 170 | common-test: $(GOTEST_DIR) 171 | @echo ">> running all tests" 172 | GO111MODULE=$(GO111MODULE) $(GOTEST) $(test-flags) $(GOOPTS) $(pkgs) 173 | 174 | $(GOTEST_DIR): 175 | @mkdir -p $@ 176 | 177 | .PHONY: common-format 178 | common-format: 179 | @echo ">> formatting code" 180 | GO111MODULE=$(GO111MODULE) $(GO) fmt $(pkgs) 181 | 182 | .PHONY: common-vet 183 | common-vet: 184 | @echo ">> vetting code" 185 | GO111MODULE=$(GO111MODULE) $(GO) vet $(GOOPTS) $(pkgs) 186 | 187 | .PHONY: common-lint 188 | common-lint: $(GOLANGCI_LINT) 189 | ifdef GOLANGCI_LINT 190 | @echo ">> running golangci-lint" 191 | ifdef GO111MODULE 192 | # 'go list' needs to be executed before staticcheck to prepopulate the modules cache. 193 | # Otherwise staticcheck might fail randomly for some reason not yet explained. 194 | GO111MODULE=$(GO111MODULE) $(GO) list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null 195 | GO111MODULE=$(GO111MODULE) $(GOLANGCI_LINT) run $(GOLANGCI_LINT_OPTS) $(pkgs) 196 | else 197 | $(GOLANGCI_LINT) run $(pkgs) 198 | endif 199 | endif 200 | 201 | # For backward-compatibility. 202 | .PHONY: common-staticcheck 203 | common-staticcheck: lint 204 | 205 | .PHONY: common-unused 206 | common-unused: $(GOVENDOR) 207 | ifdef GOVENDOR 208 | @echo ">> running check for unused packages" 209 | @$(GOVENDOR) list +unused | grep . && exit 1 || echo 'No unused packages' 210 | else 211 | ifdef GO111MODULE 212 | @echo ">> running check for unused/missing packages in go.mod" 213 | GO111MODULE=$(GO111MODULE) $(GO) mod tidy 214 | ifeq (,$(wildcard vendor)) 215 | @git diff --exit-code -- go.sum go.mod 216 | else 217 | @echo ">> running check for unused packages in vendor/" 218 | GO111MODULE=$(GO111MODULE) $(GO) mod vendor 219 | @git diff --exit-code -- go.sum go.mod vendor/ 220 | endif 221 | endif 222 | endif 223 | 224 | .PHONY: common-build 225 | common-build: promu 226 | @echo ">> building binaries" 227 | GO111MODULE=$(GO111MODULE) $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES) 228 | 229 | .PHONY: common-tarball 230 | common-tarball: promu 231 | @echo ">> building release tarball" 232 | $(PROMU) tarball --prefix $(PREFIX) $(BIN_DIR) 233 | 234 | .PHONY: common-docker $(BUILD_DOCKER_ARCHS) 235 | common-docker: $(BUILD_DOCKER_ARCHS) 236 | $(BUILD_DOCKER_ARCHS): common-docker-%: 237 | docker build -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" \ 238 | -f $(DOCKERFILE_PATH) \ 239 | --build-arg ARCH="$*" \ 240 | --build-arg OS="linux" \ 241 | $(DOCKERBUILD_CONTEXT) 242 | 243 | .PHONY: common-docker-publish $(PUBLISH_DOCKER_ARCHS) 244 | common-docker-publish: $(PUBLISH_DOCKER_ARCHS) 245 | $(PUBLISH_DOCKER_ARCHS): common-docker-publish-%: 246 | docker push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" 247 | 248 | DOCKER_MAJOR_VERSION_TAG = $(firstword $(subst ., ,$(shell cat VERSION))) 249 | .PHONY: common-docker-tag-latest $(TAG_DOCKER_ARCHS) 250 | common-docker-tag-latest: $(TAG_DOCKER_ARCHS) 251 | $(TAG_DOCKER_ARCHS): common-docker-tag-latest-%: 252 | docker tag "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:latest" 253 | docker tag "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:v$(DOCKER_MAJOR_VERSION_TAG)" 254 | 255 | .PHONY: common-docker-manifest 256 | common-docker-manifest: 257 | DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create -a "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" $(foreach ARCH,$(DOCKER_ARCHS),$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$(ARCH):$(DOCKER_IMAGE_TAG)) 258 | DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" 259 | 260 | .PHONY: promu 261 | promu: $(PROMU) 262 | 263 | $(PROMU): 264 | $(eval PROMU_TMP := $(shell mktemp -d)) 265 | curl -s -L $(PROMU_URL) | tar -xvzf - -C $(PROMU_TMP) 266 | mkdir -p $(FIRST_GOPATH)/bin 267 | cp $(PROMU_TMP)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM)/promu $(FIRST_GOPATH)/bin/promu 268 | rm -r $(PROMU_TMP) 269 | 270 | .PHONY: proto 271 | proto: 272 | @echo ">> generating code from proto files" 273 | @./scripts/genproto.sh 274 | 275 | ifdef GOLANGCI_LINT 276 | $(GOLANGCI_LINT): 277 | mkdir -p $(FIRST_GOPATH)/bin 278 | curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/$(GOLANGCI_LINT_VERSION)/install.sh \ 279 | | sed -e '/install -d/d' \ 280 | | sh -s -- -b $(FIRST_GOPATH)/bin $(GOLANGCI_LINT_VERSION) 281 | endif 282 | 283 | ifdef GOVENDOR 284 | .PHONY: $(GOVENDOR) 285 | $(GOVENDOR): 286 | GOOS= GOARCH= $(GO) get -u github.com/kardianos/govendor 287 | endif 288 | 289 | .PHONY: precheck 290 | precheck:: 291 | 292 | define PRECHECK_COMMAND_template = 293 | precheck:: $(1)_precheck 294 | 295 | PRECHECK_COMMAND_$(1) ?= $(1) $$(strip $$(PRECHECK_OPTIONS_$(1))) 296 | .PHONY: $(1)_precheck 297 | $(1)_precheck: 298 | @if ! $$(PRECHECK_COMMAND_$(1)) 1>/dev/null 2>&1; then \ 299 | echo "Execution of '$$(PRECHECK_COMMAND_$(1))' command failed. Is $(1) installed?"; \ 300 | exit 1; \ 301 | fi 302 | endef -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PHP-FPM Exporter for Prometheus [![Build Status][buildstatus]][circleci] 2 | 3 | [![GitHub release](https://img.shields.io/github/release/Lusitaniae/phpfpm_exporter.svg)][release] 4 | ![GitHub Downloads](https://img.shields.io/github/downloads/Lusitaniae/phpfpm_exporter/total.svg) 5 | [![Docker Repository on Quay](https://quay.io/repository/Lusitaniae/phpfpm-exporter/status)][quay] 6 | [![Docker Pulls](https://img.shields.io/docker/pulls/lusotycoon/phpfpm-exporter.svg?maxAge=604800)][hub] 7 | 8 | Prometheus Exporter for the PHP-FPM status page. 9 | 10 | Metrics are scrapped via unix socket and made available on port 9253. 11 | 12 | This exporter also provides a way for embedding the output of arbitrary 13 | PHP scripts into its metrics page, analogous to the node exporter's 14 | `textfile` collector. Scripts that are specified with the 15 | `--phpfpm.script-collector-paths` flag will be run through PHP-FPM. Any 16 | metrics printed by the PHP script will be merged into the metrics 17 | provided by this exported. An example use case includes printing metrics 18 | for PHP's `opcache`. 19 | 20 | # Usage: 21 | 22 | Run the exporter 23 | ``` 24 | ./phpfpm_exporter --phpfpm.socket-paths /var/run/phpfpm.sock 25 | ``` 26 | 27 | Include additional metrics from a PHP script 28 | 29 | E.g. export OPcache metrics (using `contrib/php_opcache_exporter.php`) 30 | 31 | Bear in mind these metrics are global, all FPM pools share the same cache. 32 | ``` 33 | ./phpfpm_exporter --phpfpm.socket-paths /var/run/phpfpm.sock \ 34 | --phpfpm.script-collector-paths /usr/local/bin/php_exporter/phpfpm_opcache_exporter.php 35 | 36 | ``` 37 | 38 | Run with Docker 39 | ``` 40 | SOCK="/run/php/php7.2-fpm.sock"; \ 41 | docker run -d -p 9253:9253 -v $SOCK:$SOCK \ 42 | lusotycoon/phpfpm-exporter \ 43 | --phpfpm.socket-paths=$SOCK 44 | ``` 45 | 46 | Help on flags 47 | 48 | ./phpfpm_exporter -h 49 | usage: phpfpm_exporter [] 50 | 51 | Flags: 52 | -h, --help Show context-sensitive help (also try --help-long and --help-man). 53 | --web.listen-address=":9253" 54 | Address to listen on for web interface and telemetry. 55 | --web.telemetry-path="/metrics" 56 | Path under which to expose metrics. 57 | --phpfpm.socket-paths=PHPFPM.SOCKET-PATHS ... 58 | Path(s) of the PHP-FPM sockets. 59 | --phpfpm.socket-directories=PHPFPM.SOCKET-DIRECTORIES ... 60 | Path(s) of the directory where PHP-FPM sockets are located. 61 | --phpfpm.status-path="/status" 62 | Path which has been configured in PHP-FPM to show status page. 63 | --version Print version information. 64 | --phpfpm.script-collector-paths=PHPFPM.SCRIPT-COLLECTOR-PATHS ... 65 | Paths of the PHP file whose output needs to be collected. 66 | 67 | When using `--phpfpm.socket-directories` make sure to use dedicated directories for PHP-FPM sockets to avoid timeouts. 68 | 69 | # Metrics emitted by PHP-FPM: 70 | 71 | ``` 72 | php_fpm_accepted_connections_total{socket_path="/var/run/phpfpm.sock"} 300940 73 | php_fpm_active_processes{socket_path="/var/run/phpfpm.sock"} 1 74 | php_fpm_idle_processes{socket_path="/var/run/phpfpm.sock"} 5 75 | php_fpm_listen_queue{socket_path="/var/run/phpfpm.sock"} 0 76 | php_fpm_listen_queue_length{socket_path="/var/run/phpfpm.sock"} 0 77 | php_fpm_max_active_processes{socket_path="/var/run/phpfpm.sock"} 10 78 | php_fpm_max_children_reached{socket_path="/var/run/phpfpm.sock"} 3 79 | php_fpm_max_listen_queue{socket_path="/var/run/phpfpm.sock"} 0 80 | php_fpm_slow_requests{socket_path="/var/run/phpfpm.sock"} 0 81 | php_fpm_start_time_seconds{socket_path="/var/run/phpfpm.sock"} 1.49277445e+09 82 | php_fpm_total_processes{socket_path="/var/run/phpfpm.sock"} 3 83 | php_fpm_up{socket_path="/var/run/phpfpm.sock"} 1 84 | ``` 85 | # Requirements 86 | 87 | The FPM status page must be enabled in every pool you'd like to monitor by defining `pm.status_path = /status`. 88 | 89 | # Grafana Dashboards 90 | There's multiple grafana dashboards available for this exporter, find them at the urls below or in ```contrib/```. 91 | 92 | [Basic:](https://grafana.com/dashboards/5579) for analyzing a single fpm pool in detail. 93 | 94 | [Multi Pool:](https://grafana.com/dashboards/5714) for analyzing a cluster of fpm pools. 95 | 96 | Basic: 97 | ![basic](https://grafana.com/api/dashboards/5579/images/3536/image) 98 | 99 | Multi Pool: 100 | ![multi pool](https://grafana.com/api/dashboards/5714/images/3608/image) 101 | 102 | [buildstatus]: https://circleci.com/gh/Lusitaniae/phpfpm_exporter/tree/master.svg?style=shield 103 | [circleci]: https://circleci.com/gh/Lusitaniae/phpfpm_exporter 104 | [quay]: https://quay.io/repository/Lusitaniae/phpfpm-exporter 105 | [hub]: https://hub.docker.com/r/lusotycoon/phpfpm-exporter/ 106 | [release]: https://github.com/Lusitaniae/phpfpm_exporter/releases/latest 107 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.6.0 2 | -------------------------------------------------------------------------------- /contrib/php-fpm-multi-pool.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [], 3 | "__requires": [ 4 | { 5 | "type": "grafana", 6 | "id": "grafana", 7 | "name": "Grafana", 8 | "version": "5.0.4" 9 | }, 10 | { 11 | "type": "panel", 12 | "id": "graph", 13 | "name": "Graph", 14 | "version": "5.0.0" 15 | } 16 | ], 17 | "annotations": { 18 | "list": [ 19 | { 20 | "builtIn": 1, 21 | "datasource": "-- Grafana --", 22 | "enable": true, 23 | "hide": true, 24 | "iconColor": "rgba(0, 211, 255, 1)", 25 | "name": "Annotations & Alerts", 26 | "type": "dashboard" 27 | } 28 | ] 29 | }, 30 | "description": "PHP-FPM aggregated data for multiple pools.", 31 | "editable": true, 32 | "gnetId": 5714, 33 | "graphTooltip": 0, 34 | "id": null, 35 | "iteration": 1524262976099, 36 | "links": [], 37 | "panels": [ 38 | { 39 | "aliasColors": {}, 40 | "bars": false, 41 | "dashLength": 10, 42 | "dashes": false, 43 | "datasource": "$DS_PROMETHEUS", 44 | "editable": true, 45 | "error": false, 46 | "fill": 1, 47 | "grid": {}, 48 | "gridPos": { 49 | "h": 5, 50 | "w": 7, 51 | "x": 0, 52 | "y": 0 53 | }, 54 | "id": 23, 55 | "isNew": true, 56 | "legend": { 57 | "avg": false, 58 | "current": false, 59 | "max": false, 60 | "min": false, 61 | "show": true, 62 | "total": false, 63 | "values": false 64 | }, 65 | "lines": true, 66 | "linewidth": 2, 67 | "links": [], 68 | "nullPointMode": "connected", 69 | "percentage": false, 70 | "pointradius": 5, 71 | "points": false, 72 | "renderer": "flot", 73 | "seriesOverrides": [], 74 | "spaceLength": 10, 75 | "stack": false, 76 | "steppedLine": false, 77 | "targets": [ 78 | { 79 | "expr": "(php_fpm_up{instance=~\"^$Host$\", socket_path=~\"$Pool$\"})", 80 | "format": "time_series", 81 | "interval": "", 82 | "intervalFactor": 1, 83 | "legendFormat": "{{socket_path}}", 84 | "metric": "php_fpm_start_time_seconds", 85 | "refId": "A", 86 | "step": 1 87 | } 88 | ], 89 | "thresholds": [], 90 | "timeFrom": null, 91 | "timeShift": null, 92 | "title": "Status", 93 | "tooltip": { 94 | "msResolution": false, 95 | "shared": true, 96 | "sort": 0, 97 | "value_type": "cumulative" 98 | }, 99 | "transparent": false, 100 | "type": "graph", 101 | "xaxis": { 102 | "buckets": null, 103 | "mode": "time", 104 | "name": null, 105 | "show": true, 106 | "values": [] 107 | }, 108 | "yaxes": [ 109 | { 110 | "decimals": 0, 111 | "format": "none", 112 | "label": "", 113 | "logBase": 1, 114 | "max": "1", 115 | "min": 0, 116 | "show": true 117 | }, 118 | { 119 | "format": "short", 120 | "label": "", 121 | "logBase": 1, 122 | "max": null, 123 | "min": null, 124 | "show": true 125 | } 126 | ] 127 | }, 128 | { 129 | "aliasColors": {}, 130 | "bars": false, 131 | "dashLength": 10, 132 | "dashes": false, 133 | "datasource": "$DS_PROMETHEUS", 134 | "editable": true, 135 | "error": false, 136 | "fill": 1, 137 | "grid": {}, 138 | "gridPos": { 139 | "h": 5, 140 | "w": 7, 141 | "x": 7, 142 | "y": 0 143 | }, 144 | "id": 9, 145 | "isNew": true, 146 | "legend": { 147 | "avg": false, 148 | "current": false, 149 | "max": false, 150 | "min": false, 151 | "show": true, 152 | "total": false, 153 | "values": false 154 | }, 155 | "lines": true, 156 | "linewidth": 2, 157 | "links": [], 158 | "nullPointMode": "connected", 159 | "percentage": false, 160 | "pointradius": 5, 161 | "points": false, 162 | "renderer": "flot", 163 | "seriesOverrides": [], 164 | "spaceLength": 10, 165 | "stack": false, 166 | "steppedLine": false, 167 | "targets": [ 168 | { 169 | "expr": "time()-(php_fpm_start_time_seconds{instance=~\"^$Host$\", socket_path=~\"$Pool\"})", 170 | "format": "time_series", 171 | "interval": "", 172 | "intervalFactor": 1, 173 | "legendFormat": "{{socket_path}}", 174 | "metric": "php_fpm_start_time_seconds", 175 | "refId": "A", 176 | "step": 1 177 | } 178 | ], 179 | "thresholds": [], 180 | "timeFrom": null, 181 | "timeShift": null, 182 | "title": "Uptime", 183 | "tooltip": { 184 | "msResolution": false, 185 | "shared": true, 186 | "sort": 0, 187 | "value_type": "cumulative" 188 | }, 189 | "transparent": false, 190 | "type": "graph", 191 | "xaxis": { 192 | "buckets": null, 193 | "mode": "time", 194 | "name": null, 195 | "show": true, 196 | "values": [] 197 | }, 198 | "yaxes": [ 199 | { 200 | "format": "s", 201 | "label": "", 202 | "logBase": 1, 203 | "max": null, 204 | "min": 0, 205 | "show": true 206 | }, 207 | { 208 | "format": "short", 209 | "label": "", 210 | "logBase": 1, 211 | "max": null, 212 | "min": null, 213 | "show": true 214 | } 215 | ] 216 | }, 217 | { 218 | "aliasColors": {}, 219 | "bars": false, 220 | "dashLength": 10, 221 | "dashes": false, 222 | "datasource": "$DS_PROMETHEUS", 223 | "fill": 1, 224 | "gridPos": { 225 | "h": 5, 226 | "w": 10, 227 | "x": 14, 228 | "y": 0 229 | }, 230 | "id": 22, 231 | "legend": { 232 | "avg": false, 233 | "current": false, 234 | "max": false, 235 | "min": false, 236 | "show": true, 237 | "total": false, 238 | "values": false 239 | }, 240 | "lines": true, 241 | "linewidth": 1, 242 | "links": [], 243 | "nullPointMode": "null", 244 | "percentage": false, 245 | "pointradius": 5, 246 | "points": false, 247 | "renderer": "flot", 248 | "seriesOverrides": [], 249 | "spaceLength": 10, 250 | "stack": false, 251 | "steppedLine": false, 252 | "targets": [ 253 | { 254 | "expr": "sum by (socket_path) (php_fpm_active_processes{instance=~\"^$Host$\"}) / sum by (socket_path) ( php_fpm_max_active_processes{instance=~\"^$Host$\"})", 255 | "format": "time_series", 256 | "intervalFactor": 1, 257 | "legendFormat": "{{ socket_path }}", 258 | "refId": "A" 259 | } 260 | ], 261 | "thresholds": [], 262 | "timeFrom": null, 263 | "timeShift": null, 264 | "title": "Pool Usage", 265 | "tooltip": { 266 | "shared": true, 267 | "sort": 0, 268 | "value_type": "individual" 269 | }, 270 | "type": "graph", 271 | "xaxis": { 272 | "buckets": null, 273 | "mode": "time", 274 | "name": null, 275 | "show": true, 276 | "values": [] 277 | }, 278 | "yaxes": [ 279 | { 280 | "format": "percentunit", 281 | "label": null, 282 | "logBase": 1, 283 | "max": null, 284 | "min": null, 285 | "show": true 286 | }, 287 | { 288 | "format": "short", 289 | "label": null, 290 | "logBase": 1, 291 | "max": null, 292 | "min": null, 293 | "show": true 294 | } 295 | ] 296 | }, 297 | { 298 | "collapsed": false, 299 | "gridPos": { 300 | "h": 1, 301 | "w": 24, 302 | "x": 0, 303 | "y": 5 304 | }, 305 | "id": 14, 306 | "panels": [], 307 | "repeat": null, 308 | "title": "PHP FPM", 309 | "type": "row" 310 | }, 311 | { 312 | "aliasColors": {}, 313 | "bars": false, 314 | "dashLength": 10, 315 | "dashes": false, 316 | "datasource": "$DS_PROMETHEUS", 317 | "description": "Total number of accepted connections", 318 | "fill": 1, 319 | "grid": {}, 320 | "gridPos": { 321 | "h": 11, 322 | "w": 14, 323 | "x": 0, 324 | "y": 6 325 | }, 326 | "id": 1, 327 | "legend": { 328 | "avg": false, 329 | "current": false, 330 | "max": false, 331 | "min": false, 332 | "show": true, 333 | "total": false, 334 | "values": false 335 | }, 336 | "lines": true, 337 | "linewidth": 1, 338 | "links": [], 339 | "nullPointMode": "null", 340 | "percentage": false, 341 | "pointradius": 5, 342 | "points": false, 343 | "renderer": "flot", 344 | "seriesOverrides": [], 345 | "spaceLength": 10, 346 | "stack": false, 347 | "steppedLine": false, 348 | "targets": [ 349 | { 350 | "expr": "sum by (socket_path) (rate(php_fpm_accepted_connections_total{instance=~\"^$Host$\"} [$Interval]))", 351 | "format": "time_series", 352 | "interval": "", 353 | "intervalFactor": 2, 354 | "legendFormat": "{{socket_path}}", 355 | "refId": "A", 356 | "step": 2 357 | } 358 | ], 359 | "thresholds": [], 360 | "timeFrom": null, 361 | "timeShift": null, 362 | "title": "Accepted Connections Rate", 363 | "tooltip": { 364 | "msResolution": true, 365 | "shared": true, 366 | "sort": 0, 367 | "value_type": "individual" 368 | }, 369 | "type": "graph", 370 | "xaxis": { 371 | "buckets": null, 372 | "mode": "time", 373 | "name": null, 374 | "show": true, 375 | "values": [] 376 | }, 377 | "yaxes": [ 378 | { 379 | "format": "short", 380 | "label": null, 381 | "logBase": 1, 382 | "max": null, 383 | "min": null, 384 | "show": true 385 | }, 386 | { 387 | "format": "short", 388 | "label": null, 389 | "logBase": 1, 390 | "max": null, 391 | "min": null, 392 | "show": true 393 | } 394 | ] 395 | }, 396 | { 397 | "aliasColors": {}, 398 | "bars": false, 399 | "dashLength": 10, 400 | "dashes": false, 401 | "datasource": "$DS_PROMETHEUS", 402 | "description": "Number of requests that exceed request_slowlog_timeout", 403 | "fill": 1, 404 | "grid": {}, 405 | "gridPos": { 406 | "h": 11, 407 | "w": 10, 408 | "x": 14, 409 | "y": 6 410 | }, 411 | "id": 8, 412 | "legend": { 413 | "avg": false, 414 | "current": false, 415 | "max": false, 416 | "min": false, 417 | "show": true, 418 | "total": false, 419 | "values": false 420 | }, 421 | "lines": true, 422 | "linewidth": 1, 423 | "links": [], 424 | "nullPointMode": "null", 425 | "percentage": false, 426 | "pointradius": 5, 427 | "points": false, 428 | "renderer": "flot", 429 | "seriesOverrides": [], 430 | "spaceLength": 10, 431 | "stack": false, 432 | "steppedLine": false, 433 | "targets": [ 434 | { 435 | "expr": "sum by (socket_path) (rate(php_fpm_slow_requests{instance=~\"^$Host$\"} [$Interval]))", 436 | "format": "time_series", 437 | "instant": false, 438 | "interval": "", 439 | "intervalFactor": 2, 440 | "legendFormat": "{{ socket_path }} ", 441 | "refId": "A", 442 | "step": 2 443 | } 444 | ], 445 | "thresholds": [], 446 | "timeFrom": null, 447 | "timeShift": null, 448 | "title": "Slow Requests Rate", 449 | "tooltip": { 450 | "msResolution": false, 451 | "shared": true, 452 | "sort": 0, 453 | "value_type": "individual" 454 | }, 455 | "type": "graph", 456 | "xaxis": { 457 | "buckets": null, 458 | "mode": "time", 459 | "name": null, 460 | "show": true, 461 | "values": [] 462 | }, 463 | "yaxes": [ 464 | { 465 | "format": "short", 466 | "label": null, 467 | "logBase": 1, 468 | "max": null, 469 | "min": 0, 470 | "show": true 471 | }, 472 | { 473 | "format": "short", 474 | "label": null, 475 | "logBase": 1, 476 | "max": null, 477 | "min": null, 478 | "show": true 479 | } 480 | ] 481 | }, 482 | { 483 | "collapsed": false, 484 | "gridPos": { 485 | "h": 1, 486 | "w": 24, 487 | "x": 0, 488 | "y": 17 489 | }, 490 | "id": 15, 491 | "panels": [], 492 | "repeat": null, 493 | "title": "", 494 | "type": "row" 495 | }, 496 | { 497 | "aliasColors": {}, 498 | "bars": false, 499 | "dashLength": 10, 500 | "dashes": false, 501 | "datasource": "$DS_PROMETHEUS", 502 | "fill": 1, 503 | "grid": {}, 504 | "gridPos": { 505 | "h": 10, 506 | "w": 12, 507 | "x": 0, 508 | "y": 18 509 | }, 510 | "height": "", 511 | "id": 18, 512 | "legend": { 513 | "avg": false, 514 | "current": false, 515 | "max": false, 516 | "min": false, 517 | "show": true, 518 | "total": false, 519 | "values": false 520 | }, 521 | "lines": true, 522 | "linewidth": 1, 523 | "links": [], 524 | "nullPointMode": "null", 525 | "percentage": false, 526 | "pointradius": 5, 527 | "points": false, 528 | "renderer": "flot", 529 | "seriesOverrides": [], 530 | "spaceLength": 10, 531 | "stack": false, 532 | "steppedLine": false, 533 | "targets": [ 534 | { 535 | "expr": "sum(php_fpm_active_processes{instance=~\"^$Host$\"}) by (socket_path )", 536 | "format": "time_series", 537 | "instant": false, 538 | "interval": "", 539 | "intervalFactor": 2, 540 | "legendFormat": "{{ socket_path }} ", 541 | "metric": "php_fpm_active_processes", 542 | "refId": "B", 543 | "step": 2 544 | } 545 | ], 546 | "thresholds": [], 547 | "timeFrom": null, 548 | "timeShift": null, 549 | "title": "Active processes", 550 | "tooltip": { 551 | "msResolution": false, 552 | "shared": true, 553 | "sort": 0, 554 | "value_type": "individual" 555 | }, 556 | "type": "graph", 557 | "xaxis": { 558 | "buckets": null, 559 | "mode": "time", 560 | "name": null, 561 | "show": true, 562 | "values": [] 563 | }, 564 | "yaxes": [ 565 | { 566 | "decimals": 0, 567 | "format": "short", 568 | "label": null, 569 | "logBase": 1, 570 | "max": null, 571 | "min": "0", 572 | "show": true 573 | }, 574 | { 575 | "format": "short", 576 | "label": "", 577 | "logBase": 1, 578 | "max": null, 579 | "min": null, 580 | "show": true 581 | } 582 | ] 583 | }, 584 | { 585 | "aliasColors": {}, 586 | "bars": false, 587 | "dashLength": 10, 588 | "dashes": false, 589 | "datasource": "$DS_PROMETHEUS", 590 | "fill": 1, 591 | "grid": {}, 592 | "gridPos": { 593 | "h": 10, 594 | "w": 12, 595 | "x": 12, 596 | "y": 18 597 | }, 598 | "height": "", 599 | "id": 19, 600 | "legend": { 601 | "avg": false, 602 | "current": false, 603 | "max": false, 604 | "min": false, 605 | "show": true, 606 | "total": false, 607 | "values": false 608 | }, 609 | "lines": true, 610 | "linewidth": 1, 611 | "links": [], 612 | "nullPointMode": "null", 613 | "percentage": false, 614 | "pointradius": 5, 615 | "points": false, 616 | "renderer": "flot", 617 | "seriesOverrides": [], 618 | "spaceLength": 10, 619 | "stack": false, 620 | "steppedLine": false, 621 | "targets": [ 622 | { 623 | "expr": "sum by (socket_path) (php_fpm_idle_processes{instance=~\"^$Host$\"})", 624 | "format": "time_series", 625 | "interval": "", 626 | "intervalFactor": 2, 627 | "legendFormat": "{{ socket_path }} ", 628 | "metric": "php_fpm_idle_processes", 629 | "refId": "C", 630 | "step": 2 631 | } 632 | ], 633 | "thresholds": [], 634 | "timeFrom": null, 635 | "timeShift": null, 636 | "title": "Idle processes", 637 | "tooltip": { 638 | "msResolution": false, 639 | "shared": true, 640 | "sort": 0, 641 | "value_type": "individual" 642 | }, 643 | "type": "graph", 644 | "xaxis": { 645 | "buckets": null, 646 | "mode": "time", 647 | "name": null, 648 | "show": true, 649 | "values": [] 650 | }, 651 | "yaxes": [ 652 | { 653 | "decimals": 0, 654 | "format": "short", 655 | "label": "", 656 | "logBase": 1, 657 | "max": null, 658 | "min": "0", 659 | "show": true 660 | }, 661 | { 662 | "format": "short", 663 | "label": "", 664 | "logBase": 1, 665 | "max": null, 666 | "min": null, 667 | "show": true 668 | } 669 | ] 670 | }, 671 | { 672 | "aliasColors": {}, 673 | "bars": false, 674 | "dashLength": 10, 675 | "dashes": false, 676 | "datasource": "$DS_PROMETHEUS", 677 | "fill": 1, 678 | "grid": {}, 679 | "gridPos": { 680 | "h": 10, 681 | "w": 12, 682 | "x": 0, 683 | "y": 28 684 | }, 685 | "height": "", 686 | "id": 20, 687 | "legend": { 688 | "avg": false, 689 | "current": false, 690 | "max": false, 691 | "min": false, 692 | "show": true, 693 | "total": false, 694 | "values": false 695 | }, 696 | "lines": true, 697 | "linewidth": 1, 698 | "links": [], 699 | "nullPointMode": "null", 700 | "percentage": false, 701 | "pointradius": 5, 702 | "points": false, 703 | "renderer": "flot", 704 | "seriesOverrides": [], 705 | "spaceLength": 10, 706 | "stack": false, 707 | "steppedLine": false, 708 | "targets": [ 709 | { 710 | "expr": "sum by (socket_path) (php_fpm_max_children_reached{instance=~\"^$Host$\"} )", 711 | "format": "time_series", 712 | "hide": false, 713 | "intervalFactor": 2, 714 | "legendFormat": "{{ socket_path }} ", 715 | "metric": "php_fpm_max_children_reached", 716 | "refId": "D", 717 | "step": 2 718 | } 719 | ], 720 | "thresholds": [], 721 | "timeFrom": null, 722 | "timeShift": null, 723 | "title": "Max children reached", 724 | "tooltip": { 725 | "msResolution": false, 726 | "shared": true, 727 | "sort": 0, 728 | "value_type": "individual" 729 | }, 730 | "type": "graph", 731 | "xaxis": { 732 | "buckets": null, 733 | "mode": "time", 734 | "name": null, 735 | "show": true, 736 | "values": [] 737 | }, 738 | "yaxes": [ 739 | { 740 | "decimals": 0, 741 | "format": "short", 742 | "label": "", 743 | "logBase": 1, 744 | "max": null, 745 | "min": "0", 746 | "show": true 747 | }, 748 | { 749 | "format": "short", 750 | "label": "", 751 | "logBase": 1, 752 | "max": null, 753 | "min": null, 754 | "show": true 755 | } 756 | ] 757 | }, 758 | { 759 | "aliasColors": {}, 760 | "bars": false, 761 | "dashLength": 10, 762 | "dashes": false, 763 | "datasource": "$DS_PROMETHEUS", 764 | "fill": 1, 765 | "grid": {}, 766 | "gridPos": { 767 | "h": 10, 768 | "w": 12, 769 | "x": 12, 770 | "y": 28 771 | }, 772 | "height": "", 773 | "id": 2, 774 | "legend": { 775 | "avg": false, 776 | "current": false, 777 | "max": false, 778 | "min": false, 779 | "show": true, 780 | "total": false, 781 | "values": false 782 | }, 783 | "lines": true, 784 | "linewidth": 1, 785 | "links": [], 786 | "nullPointMode": "null", 787 | "percentage": false, 788 | "pointradius": 5, 789 | "points": false, 790 | "renderer": "flot", 791 | "seriesOverrides": [], 792 | "spaceLength": 10, 793 | "stack": false, 794 | "steppedLine": false, 795 | "targets": [ 796 | { 797 | "expr": "sum by (socket_path) (php_fpm_max_active_processes{instance=~\"^$Host$\"})", 798 | "format": "time_series", 799 | "hide": false, 800 | "interval": "", 801 | "intervalFactor": 2, 802 | "legendFormat": "{{ socket_path }} ", 803 | "refId": "A", 804 | "step": 2 805 | } 806 | ], 807 | "thresholds": [], 808 | "timeFrom": null, 809 | "timeShift": null, 810 | "title": "Max active processes", 811 | "tooltip": { 812 | "msResolution": false, 813 | "shared": true, 814 | "sort": 0, 815 | "value_type": "individual" 816 | }, 817 | "type": "graph", 818 | "xaxis": { 819 | "buckets": null, 820 | "mode": "time", 821 | "name": null, 822 | "show": true, 823 | "values": [] 824 | }, 825 | "yaxes": [ 826 | { 827 | "decimals": 0, 828 | "format": "short", 829 | "label": "", 830 | "logBase": 1, 831 | "max": null, 832 | "min": "0", 833 | "show": true 834 | }, 835 | { 836 | "format": "short", 837 | "label": "", 838 | "logBase": 1, 839 | "max": null, 840 | "min": null, 841 | "show": true 842 | } 843 | ] 844 | }, 845 | { 846 | "aliasColors": {}, 847 | "bars": false, 848 | "dashLength": 10, 849 | "dashes": false, 850 | "datasource": "$DS_PROMETHEUS", 851 | "fill": 1, 852 | "grid": {}, 853 | "gridPos": { 854 | "h": 8, 855 | "w": 12, 856 | "x": 0, 857 | "y": 38 858 | }, 859 | "id": 3, 860 | "legend": { 861 | "avg": false, 862 | "current": false, 863 | "max": false, 864 | "min": false, 865 | "show": true, 866 | "total": false, 867 | "values": false 868 | }, 869 | "lines": true, 870 | "linewidth": 1, 871 | "links": [], 872 | "nullPointMode": "null", 873 | "percentage": false, 874 | "pointradius": 5, 875 | "points": false, 876 | "renderer": "flot", 877 | "seriesOverrides": [], 878 | "spaceLength": 10, 879 | "stack": false, 880 | "steppedLine": false, 881 | "targets": [ 882 | { 883 | "expr": "sum by (socket_path) (rate(php_fpm_listen_queue{instance=~\"^$Host$\"} [$Interval]))", 884 | "format": "time_series", 885 | "interval": "", 886 | "intervalFactor": 2, 887 | "legendFormat": "{{socket_path }} ", 888 | "refId": "A", 889 | "step": 2 890 | } 891 | ], 892 | "thresholds": [], 893 | "timeFrom": null, 894 | "timeShift": null, 895 | "title": "Listen Queue", 896 | "tooltip": { 897 | "msResolution": false, 898 | "shared": true, 899 | "sort": 0, 900 | "value_type": "individual" 901 | }, 902 | "type": "graph", 903 | "xaxis": { 904 | "buckets": null, 905 | "mode": "time", 906 | "name": null, 907 | "show": true, 908 | "values": [] 909 | }, 910 | "yaxes": [ 911 | { 912 | "format": "short", 913 | "label": null, 914 | "logBase": 1, 915 | "max": null, 916 | "min": 0, 917 | "show": true 918 | }, 919 | { 920 | "format": "short", 921 | "label": null, 922 | "logBase": 1, 923 | "max": null, 924 | "min": null, 925 | "show": true 926 | } 927 | ] 928 | }, 929 | { 930 | "aliasColors": {}, 931 | "bars": false, 932 | "dashLength": 10, 933 | "dashes": false, 934 | "datasource": "$DS_PROMETHEUS", 935 | "fill": 1, 936 | "grid": {}, 937 | "gridPos": { 938 | "h": 8, 939 | "w": 12, 940 | "x": 12, 941 | "y": 38 942 | }, 943 | "id": 17, 944 | "legend": { 945 | "avg": false, 946 | "current": false, 947 | "max": false, 948 | "min": false, 949 | "show": true, 950 | "total": false, 951 | "values": false 952 | }, 953 | "lines": true, 954 | "linewidth": 1, 955 | "links": [], 956 | "nullPointMode": "null", 957 | "percentage": false, 958 | "pointradius": 5, 959 | "points": false, 960 | "renderer": "flot", 961 | "seriesOverrides": [], 962 | "spaceLength": 10, 963 | "stack": false, 964 | "steppedLine": false, 965 | "targets": [ 966 | { 967 | "expr": "sum by (socket_path) (rate(php_fpm_listen_queue_length{instance=~\"^$Host$\"} [$Interval]))", 968 | "format": "time_series", 969 | "interval": "", 970 | "intervalFactor": 2, 971 | "legendFormat": "{{socket_path }}", 972 | "refId": "A", 973 | "step": 2 974 | } 975 | ], 976 | "thresholds": [], 977 | "timeFrom": null, 978 | "timeShift": null, 979 | "title": "Listen Queue Lengtht", 980 | "tooltip": { 981 | "msResolution": false, 982 | "shared": true, 983 | "sort": 0, 984 | "value_type": "individual" 985 | }, 986 | "type": "graph", 987 | "xaxis": { 988 | "buckets": null, 989 | "mode": "time", 990 | "name": null, 991 | "show": true, 992 | "values": [] 993 | }, 994 | "yaxes": [ 995 | { 996 | "format": "short", 997 | "label": null, 998 | "logBase": 1, 999 | "max": null, 1000 | "min": 0, 1001 | "show": true 1002 | }, 1003 | { 1004 | "format": "short", 1005 | "label": null, 1006 | "logBase": 1, 1007 | "max": null, 1008 | "min": null, 1009 | "show": true 1010 | } 1011 | ] 1012 | } 1013 | ], 1014 | "refresh": "5s", 1015 | "schemaVersion": 16, 1016 | "style": "dark", 1017 | "tags": [ 1018 | "php-fpm" 1019 | ], 1020 | "templating": { 1021 | "list": [ 1022 | { 1023 | "allFormat": "glob", 1024 | "allValue": null, 1025 | "current": {}, 1026 | "datasource": "$DS_PROMETHEUS", 1027 | "hide": 0, 1028 | "includeAll": true, 1029 | "label": null, 1030 | "multi": false, 1031 | "name": "Host", 1032 | "options": [], 1033 | "query": "label_values(php_fpm_accepted_connections_total, instance)", 1034 | "refresh": 1, 1035 | "regex": "", 1036 | "sort": 1, 1037 | "tagValuesQuery": "", 1038 | "tags": [], 1039 | "tagsQuery": "", 1040 | "type": "query", 1041 | "useTags": false 1042 | }, 1043 | { 1044 | "current": { 1045 | "text": "Prometheus", 1046 | "value": "Prometheus" 1047 | }, 1048 | "datasource": null, 1049 | "hide": 2, 1050 | "includeAll": false, 1051 | "label": "", 1052 | "multi": false, 1053 | "name": "DS_PROMETHEUS", 1054 | "options": [], 1055 | "query": "prometheus", 1056 | "refresh": 1, 1057 | "regex": "", 1058 | "type": "datasource" 1059 | }, 1060 | { 1061 | "auto": false, 1062 | "auto_count": 5, 1063 | "auto_min": "30s", 1064 | "current": { 1065 | "text": "5m", 1066 | "value": "5m" 1067 | }, 1068 | "datasource": null, 1069 | "hide": 0, 1070 | "includeAll": false, 1071 | "label": "Time Interval", 1072 | "multi": false, 1073 | "name": "Interval", 1074 | "options": [ 1075 | { 1076 | "selected": false, 1077 | "text": "1m", 1078 | "value": "1m" 1079 | }, 1080 | { 1081 | "selected": true, 1082 | "text": "5m", 1083 | "value": "5m" 1084 | }, 1085 | { 1086 | "selected": false, 1087 | "text": "10m", 1088 | "value": "10m" 1089 | }, 1090 | { 1091 | "selected": false, 1092 | "text": "30m", 1093 | "value": "30m" 1094 | }, 1095 | { 1096 | "selected": false, 1097 | "text": "1h", 1098 | "value": "1h" 1099 | } 1100 | ], 1101 | "query": "1m,5m,10m,30m,1h", 1102 | "refresh": 2, 1103 | "type": "interval" 1104 | }, 1105 | { 1106 | "allValue": null, 1107 | "current": {}, 1108 | "datasource": "$DS_PROMETHEUS", 1109 | "hide": 0, 1110 | "includeAll": true, 1111 | "label": "Pool", 1112 | "multi": true, 1113 | "name": "Pool", 1114 | "options": [], 1115 | "query": "label_values(php_fpm_accepted_connections_total, socket_path)", 1116 | "refresh": 1, 1117 | "regex": "", 1118 | "sort": 0, 1119 | "tagValuesQuery": "", 1120 | "tags": [], 1121 | "tagsQuery": "", 1122 | "type": "query", 1123 | "useTags": false 1124 | } 1125 | ] 1126 | }, 1127 | "time": { 1128 | "from": "now-15m", 1129 | "to": "now" 1130 | }, 1131 | "timepicker": { 1132 | "refresh_intervals": [ 1133 | "5s", 1134 | "10s", 1135 | "30s", 1136 | "1m", 1137 | "5m", 1138 | "15m", 1139 | "30m", 1140 | "1h", 1141 | "2h", 1142 | "1d" 1143 | ], 1144 | "time_options": [ 1145 | "5m", 1146 | "15m", 1147 | "1h", 1148 | "6h", 1149 | "12h", 1150 | "24h", 1151 | "2d", 1152 | "7d", 1153 | "30d" 1154 | ] 1155 | }, 1156 | "timezone": "browser", 1157 | "title": "PHP-FPM Multi Pool", 1158 | "uid": "D6TvmAZik", 1159 | "version": 7 1160 | } -------------------------------------------------------------------------------- /contrib/php-fpm.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [], 3 | "__requires": [ 4 | { 5 | "type": "grafana", 6 | "id": "grafana", 7 | "name": "Grafana", 8 | "version": "5.0.4" 9 | }, 10 | { 11 | "type": "panel", 12 | "id": "graph", 13 | "name": "Graph", 14 | "version": "5.0.0" 15 | }, 16 | { 17 | "type": "panel", 18 | "id": "singlestat", 19 | "name": "Singlestat", 20 | "version": "5.0.0" 21 | } 22 | ], 23 | "annotations": { 24 | "list": [ 25 | { 26 | "builtIn": 1, 27 | "datasource": "-- Grafana --", 28 | "enable": true, 29 | "hide": true, 30 | "iconColor": "rgba(0, 211, 255, 1)", 31 | "name": "Annotations & Alerts", 32 | "type": "dashboard" 33 | } 34 | ] 35 | }, 36 | "description": "PHP-FPM detailed page for single FPM pool.", 37 | "editable": true, 38 | "gnetId": 5579, 39 | "graphTooltip": 0, 40 | "id": null, 41 | "iteration": 1523913213344, 42 | "links": [], 43 | "panels": [ 44 | { 45 | "collapsed": false, 46 | "gridPos": { 47 | "h": 1, 48 | "w": 24, 49 | "x": 0, 50 | "y": 0 51 | }, 52 | "id": 14, 53 | "panels": [], 54 | "repeat": null, 55 | "title": "PHP FPM", 56 | "type": "row" 57 | }, 58 | { 59 | "cacheTimeout": null, 60 | "colorBackground": true, 61 | "colorValue": false, 62 | "colors": [ 63 | "rgba(245, 54, 54, 0.9)", 64 | "rgba(237, 129, 40, 0.89)", 65 | "rgba(50, 172, 45, 0.97)" 66 | ], 67 | "datasource": "$DS_PROMETHEUS", 68 | "editable": true, 69 | "error": false, 70 | "format": "none", 71 | "gauge": { 72 | "maxValue": 100, 73 | "minValue": 0, 74 | "show": false, 75 | "thresholdLabels": false, 76 | "thresholdMarkers": true 77 | }, 78 | "gridPos": { 79 | "h": 5, 80 | "w": 4, 81 | "x": 0, 82 | "y": 1 83 | }, 84 | "id": 12, 85 | "interval": null, 86 | "isNew": true, 87 | "links": [], 88 | "mappingType": 1, 89 | "mappingTypes": [ 90 | { 91 | "name": "value to text", 92 | "value": 1 93 | }, 94 | { 95 | "name": "range to text", 96 | "value": 2 97 | } 98 | ], 99 | "maxDataPoints": 100, 100 | "nullPointMode": "connected", 101 | "nullText": null, 102 | "postfix": "", 103 | "postfixFontSize": "50%", 104 | "prefix": "", 105 | "prefixFontSize": "50%", 106 | "rangeMaps": [ 107 | { 108 | "from": "null", 109 | "text": "N/A", 110 | "to": "null" 111 | } 112 | ], 113 | "sparkline": { 114 | "fillColor": "rgba(31, 118, 189, 0.18)", 115 | "full": false, 116 | "lineColor": "rgb(31, 120, 193)", 117 | "show": false 118 | }, 119 | "tableColumn": "", 120 | "targets": [ 121 | { 122 | "expr": "php_fpm_up{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}", 123 | "format": "time_series", 124 | "intervalFactor": 2, 125 | "legendFormat": "", 126 | "metric": "php_fpm_up", 127 | "refId": "A", 128 | "step": 20 129 | } 130 | ], 131 | "thresholds": "0,1", 132 | "title": "PHP-FPM Status", 133 | "type": "singlestat", 134 | "valueFontSize": "80%", 135 | "valueMaps": [ 136 | { 137 | "op": "=", 138 | "text": "Online", 139 | "value": "1" 140 | }, 141 | { 142 | "op": "=", 143 | "text": "Offline", 144 | "value": "0" 145 | } 146 | ], 147 | "valueName": "current" 148 | }, 149 | { 150 | "aliasColors": {}, 151 | "bars": false, 152 | "dashLength": 10, 153 | "dashes": false, 154 | "datasource": "$DS_PROMETHEUS", 155 | "editable": true, 156 | "error": false, 157 | "fill": 1, 158 | "grid": {}, 159 | "gridPos": { 160 | "h": 5, 161 | "w": 10, 162 | "x": 4, 163 | "y": 1 164 | }, 165 | "id": 9, 166 | "isNew": true, 167 | "legend": { 168 | "avg": false, 169 | "current": false, 170 | "max": false, 171 | "min": false, 172 | "show": true, 173 | "total": false, 174 | "values": false 175 | }, 176 | "lines": true, 177 | "linewidth": 2, 178 | "links": [], 179 | "nullPointMode": "connected", 180 | "percentage": false, 181 | "pointradius": 5, 182 | "points": false, 183 | "renderer": "flot", 184 | "seriesOverrides": [], 185 | "spaceLength": 10, 186 | "stack": false, 187 | "steppedLine": false, 188 | "targets": [ 189 | { 190 | "expr": "time()-(php_fpm_start_time_seconds{instance=~\"^$Host$\", socket_path=~\"$Socket$\"})", 191 | "format": "time_series", 192 | "interval": "", 193 | "intervalFactor": 1, 194 | "legendFormat": "Uptime", 195 | "metric": "php_fpm_start_time_seconds", 196 | "refId": "A", 197 | "step": 1 198 | } 199 | ], 200 | "thresholds": [], 201 | "timeFrom": null, 202 | "timeShift": null, 203 | "title": "Uptime", 204 | "tooltip": { 205 | "msResolution": false, 206 | "shared": true, 207 | "sort": 0, 208 | "value_type": "cumulative" 209 | }, 210 | "transparent": false, 211 | "type": "graph", 212 | "xaxis": { 213 | "buckets": null, 214 | "mode": "time", 215 | "name": null, 216 | "show": true, 217 | "values": [] 218 | }, 219 | "yaxes": [ 220 | { 221 | "format": "s", 222 | "label": "", 223 | "logBase": 1, 224 | "max": null, 225 | "min": 0, 226 | "show": true 227 | }, 228 | { 229 | "format": "short", 230 | "label": "", 231 | "logBase": 1, 232 | "max": null, 233 | "min": null, 234 | "show": true 235 | } 236 | ] 237 | }, 238 | { 239 | "cacheTimeout": null, 240 | "colorBackground": false, 241 | "colorValue": true, 242 | "colors": [ 243 | "rgba(50, 172, 45, 0.97)", 244 | "rgba(237, 129, 40, 0.89)", 245 | "rgba(245, 54, 54, 0.9)" 246 | ], 247 | "datasource": "$DS_PROMETHEUS", 248 | "decimals": 2, 249 | "editable": true, 250 | "error": false, 251 | "format": "percentunit", 252 | "gauge": { 253 | "maxValue": 100, 254 | "minValue": 0, 255 | "show": false, 256 | "thresholdLabels": false, 257 | "thresholdMarkers": true 258 | }, 259 | "gridPos": { 260 | "h": 5, 261 | "w": 10, 262 | "x": 14, 263 | "y": 1 264 | }, 265 | "id": 13, 266 | "interval": null, 267 | "isNew": true, 268 | "links": [], 269 | "mappingType": 1, 270 | "mappingTypes": [ 271 | { 272 | "name": "value to text", 273 | "value": 1 274 | }, 275 | { 276 | "name": "range to text", 277 | "value": 2 278 | } 279 | ], 280 | "maxDataPoints": 100, 281 | "nullPointMode": "connected", 282 | "nullText": null, 283 | "postfix": "", 284 | "postfixFontSize": "50%", 285 | "prefix": "", 286 | "prefixFontSize": "50%", 287 | "rangeMaps": [ 288 | { 289 | "from": "null", 290 | "text": "N/A", 291 | "to": "null" 292 | } 293 | ], 294 | "sparkline": { 295 | "fillColor": "rgba(33, 116, 183, 0.37)", 296 | "full": true, 297 | "lineColor": "rgb(1, 89, 162)", 298 | "show": true 299 | }, 300 | "tableColumn": "", 301 | "targets": [ 302 | { 303 | "expr": "( php_fpm_active_processes{instance=~\"^$Host$\", socket_path=~\"$Socket$\"} / php_fpm_max_active_processes{instance=~\"^$Host$\", socket_path=~\"$Socket$\"} )", 304 | "format": "time_series", 305 | "interval": "", 306 | "intervalFactor": 2, 307 | "legendFormat": "", 308 | "metric": "php_fpm_max_active_processes", 309 | "refId": "A", 310 | "step": 20 311 | } 312 | ], 313 | "thresholds": "0.60,0.75", 314 | "timeFrom": null, 315 | "title": "Workers Usage", 316 | "type": "singlestat", 317 | "valueFontSize": "80%", 318 | "valueMaps": [ 319 | { 320 | "op": "=", 321 | "text": "N/A", 322 | "value": "null" 323 | } 324 | ], 325 | "valueName": "current" 326 | }, 327 | { 328 | "collapsed": false, 329 | "gridPos": { 330 | "h": 1, 331 | "w": 24, 332 | "x": 0, 333 | "y": 6 334 | }, 335 | "id": 15, 336 | "panels": [], 337 | "repeat": null, 338 | "title": "", 339 | "type": "row" 340 | }, 341 | { 342 | "aliasColors": {}, 343 | "bars": false, 344 | "dashLength": 10, 345 | "dashes": false, 346 | "datasource": "$DS_PROMETHEUS", 347 | "description": "Total number of accepted connections", 348 | "fill": 1, 349 | "grid": {}, 350 | "gridPos": { 351 | "h": 10, 352 | "w": 12, 353 | "x": 0, 354 | "y": 7 355 | }, 356 | "id": 1, 357 | "legend": { 358 | "avg": false, 359 | "current": false, 360 | "max": false, 361 | "min": false, 362 | "show": true, 363 | "total": false, 364 | "values": false 365 | }, 366 | "lines": true, 367 | "linewidth": 1, 368 | "links": [], 369 | "nullPointMode": "null", 370 | "percentage": false, 371 | "pointradius": 5, 372 | "points": false, 373 | "renderer": "flot", 374 | "seriesOverrides": [], 375 | "spaceLength": 10, 376 | "stack": false, 377 | "steppedLine": false, 378 | "targets": [ 379 | { 380 | "expr": "rate(php_fpm_accepted_connections_total{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}[$Interval])", 381 | "format": "time_series", 382 | "interval": "", 383 | "intervalFactor": 2, 384 | "legendFormat": "Accepted Connections Rate", 385 | "refId": "A", 386 | "step": 2 387 | } 388 | ], 389 | "thresholds": [], 390 | "timeFrom": null, 391 | "timeShift": null, 392 | "title": "Accepted Connections Rate", 393 | "tooltip": { 394 | "msResolution": true, 395 | "shared": true, 396 | "sort": 0, 397 | "value_type": "individual" 398 | }, 399 | "type": "graph", 400 | "xaxis": { 401 | "buckets": null, 402 | "mode": "time", 403 | "name": null, 404 | "show": true, 405 | "values": [] 406 | }, 407 | "yaxes": [ 408 | { 409 | "format": "short", 410 | "label": null, 411 | "logBase": 1, 412 | "max": null, 413 | "min": null, 414 | "show": true 415 | }, 416 | { 417 | "format": "short", 418 | "label": null, 419 | "logBase": 1, 420 | "max": null, 421 | "min": null, 422 | "show": true 423 | } 424 | ] 425 | }, 426 | { 427 | "aliasColors": {}, 428 | "bars": false, 429 | "dashLength": 10, 430 | "dashes": false, 431 | "datasource": "$DS_PROMETHEUS", 432 | "fill": 1, 433 | "grid": {}, 434 | "gridPos": { 435 | "h": 10, 436 | "w": 12, 437 | "x": 12, 438 | "y": 7 439 | }, 440 | "height": "", 441 | "id": 2, 442 | "legend": { 443 | "avg": false, 444 | "current": false, 445 | "max": false, 446 | "min": false, 447 | "show": true, 448 | "total": false, 449 | "values": false 450 | }, 451 | "lines": true, 452 | "linewidth": 1, 453 | "links": [], 454 | "nullPointMode": "null", 455 | "percentage": false, 456 | "pointradius": 5, 457 | "points": false, 458 | "renderer": "flot", 459 | "seriesOverrides": [], 460 | "spaceLength": 10, 461 | "stack": false, 462 | "steppedLine": false, 463 | "targets": [ 464 | { 465 | "expr": "php_fpm_max_active_processes{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}", 466 | "format": "time_series", 467 | "hide": false, 468 | "interval": "", 469 | "intervalFactor": 2, 470 | "legendFormat": "Max Active", 471 | "refId": "A", 472 | "step": 2 473 | }, 474 | { 475 | "expr": "php_fpm_active_processes{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}", 476 | "format": "time_series", 477 | "interval": "", 478 | "intervalFactor": 2, 479 | "legendFormat": "Active", 480 | "metric": "php_fpm_active_processes", 481 | "refId": "B", 482 | "step": 2 483 | }, 484 | { 485 | "expr": "php_fpm_idle_processes{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}", 486 | "format": "time_series", 487 | "interval": "", 488 | "intervalFactor": 2, 489 | "legendFormat": "Idle", 490 | "metric": "php_fpm_idle_processes", 491 | "refId": "C", 492 | "step": 2 493 | }, 494 | { 495 | "expr": "php_fpm_max_children_reached{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}", 496 | "format": "time_series", 497 | "hide": true, 498 | "intervalFactor": 2, 499 | "legendFormat": "Max Children", 500 | "metric": "php_fpm_max_children_reached", 501 | "refId": "D", 502 | "step": 2 503 | } 504 | ], 505 | "thresholds": [], 506 | "timeFrom": null, 507 | "timeShift": null, 508 | "title": "Processes", 509 | "tooltip": { 510 | "msResolution": false, 511 | "shared": true, 512 | "sort": 0, 513 | "value_type": "individual" 514 | }, 515 | "type": "graph", 516 | "xaxis": { 517 | "buckets": null, 518 | "mode": "time", 519 | "name": null, 520 | "show": true, 521 | "values": [] 522 | }, 523 | "yaxes": [ 524 | { 525 | "format": "short", 526 | "label": null, 527 | "logBase": 1, 528 | "max": null, 529 | "min": null, 530 | "show": true 531 | }, 532 | { 533 | "format": "short", 534 | "label": "", 535 | "logBase": 1, 536 | "max": null, 537 | "min": null, 538 | "show": true 539 | } 540 | ] 541 | }, 542 | { 543 | "collapsed": false, 544 | "gridPos": { 545 | "h": 1, 546 | "w": 24, 547 | "x": 0, 548 | "y": 17 549 | }, 550 | "id": 16, 551 | "panels": [], 552 | "repeat": null, 553 | "title": "Dashboard Row", 554 | "type": "row" 555 | }, 556 | { 557 | "aliasColors": {}, 558 | "bars": false, 559 | "dashLength": 10, 560 | "dashes": false, 561 | "datasource": "$DS_PROMETHEUS", 562 | "description": "Number of requests that exceed request_slowlog_timeout", 563 | "fill": 1, 564 | "grid": {}, 565 | "gridPos": { 566 | "h": 8, 567 | "w": 12, 568 | "x": 0, 569 | "y": 18 570 | }, 571 | "id": 8, 572 | "legend": { 573 | "avg": false, 574 | "current": false, 575 | "max": false, 576 | "min": false, 577 | "show": true, 578 | "total": false, 579 | "values": false 580 | }, 581 | "lines": true, 582 | "linewidth": 1, 583 | "links": [], 584 | "nullPointMode": "null", 585 | "percentage": false, 586 | "pointradius": 5, 587 | "points": false, 588 | "renderer": "flot", 589 | "seriesOverrides": [], 590 | "spaceLength": 10, 591 | "stack": false, 592 | "steppedLine": false, 593 | "targets": [ 594 | { 595 | "expr": "rate(php_fpm_slow_requests{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}[$Interval])", 596 | "format": "time_series", 597 | "instant": false, 598 | "interval": "", 599 | "intervalFactor": 2, 600 | "legendFormat": "Slow Requests Rate ", 601 | "refId": "A", 602 | "step": 2 603 | } 604 | ], 605 | "thresholds": [], 606 | "timeFrom": null, 607 | "timeShift": null, 608 | "title": "Slow Requests Rate", 609 | "tooltip": { 610 | "msResolution": false, 611 | "shared": true, 612 | "sort": 0, 613 | "value_type": "individual" 614 | }, 615 | "type": "graph", 616 | "xaxis": { 617 | "buckets": null, 618 | "mode": "time", 619 | "name": null, 620 | "show": true, 621 | "values": [] 622 | }, 623 | "yaxes": [ 624 | { 625 | "format": "short", 626 | "label": null, 627 | "logBase": 1, 628 | "max": null, 629 | "min": 0, 630 | "show": true 631 | }, 632 | { 633 | "format": "short", 634 | "label": null, 635 | "logBase": 1, 636 | "max": null, 637 | "min": null, 638 | "show": true 639 | } 640 | ] 641 | }, 642 | { 643 | "aliasColors": {}, 644 | "bars": false, 645 | "dashLength": 10, 646 | "dashes": false, 647 | "datasource": "$DS_PROMETHEUS", 648 | "fill": 1, 649 | "grid": {}, 650 | "gridPos": { 651 | "h": 8, 652 | "w": 12, 653 | "x": 12, 654 | "y": 18 655 | }, 656 | "id": 3, 657 | "legend": { 658 | "avg": false, 659 | "current": false, 660 | "max": false, 661 | "min": false, 662 | "show": true, 663 | "total": false, 664 | "values": false 665 | }, 666 | "lines": true, 667 | "linewidth": 1, 668 | "links": [], 669 | "nullPointMode": "null", 670 | "percentage": false, 671 | "pointradius": 5, 672 | "points": false, 673 | "renderer": "flot", 674 | "seriesOverrides": [], 675 | "spaceLength": 10, 676 | "stack": false, 677 | "steppedLine": false, 678 | "targets": [ 679 | { 680 | "expr": "php_fpm_listen_queue{instance=~\"^$Host$\"}", 681 | "format": "time_series", 682 | "interval": "", 683 | "intervalFactor": 2, 684 | "legendFormat": "Queue", 685 | "refId": "A", 686 | "step": 2 687 | }, 688 | { 689 | "expr": "php_fpm_listen_queue_length{instance=~\"^$Host$\", socket_path=~\"$Socket$\"}", 690 | "format": "time_series", 691 | "intervalFactor": 2, 692 | "legendFormat": "Queue Length", 693 | "metric": "php_fpm_listen_queue_length", 694 | "refId": "B", 695 | "step": 2 696 | } 697 | ], 698 | "thresholds": [], 699 | "timeFrom": null, 700 | "timeShift": null, 701 | "title": "Listen Queue Connections", 702 | "tooltip": { 703 | "msResolution": false, 704 | "shared": true, 705 | "sort": 0, 706 | "value_type": "individual" 707 | }, 708 | "type": "graph", 709 | "xaxis": { 710 | "buckets": null, 711 | "mode": "time", 712 | "name": null, 713 | "show": true, 714 | "values": [] 715 | }, 716 | "yaxes": [ 717 | { 718 | "format": "short", 719 | "label": null, 720 | "logBase": 1, 721 | "max": null, 722 | "min": 0, 723 | "show": true 724 | }, 725 | { 726 | "format": "short", 727 | "label": null, 728 | "logBase": 1, 729 | "max": null, 730 | "min": null, 731 | "show": true 732 | } 733 | ] 734 | } 735 | ], 736 | "refresh": "5s", 737 | "schemaVersion": 16, 738 | "style": "dark", 739 | "tags": [], 740 | "templating": { 741 | "list": [ 742 | { 743 | "allFormat": "glob", 744 | "allValue": null, 745 | "current": {}, 746 | "datasource": "$DS_PROMETHEUS", 747 | "hide": 0, 748 | "includeAll": true, 749 | "label": null, 750 | "multi": false, 751 | "name": "Host", 752 | "options": [], 753 | "query": "label_values(php_fpm_accepted_connections_total, instance)", 754 | "refresh": 1, 755 | "regex": "", 756 | "sort": 1, 757 | "tagValuesQuery": "", 758 | "tags": [], 759 | "tagsQuery": "", 760 | "type": "query", 761 | "useTags": false 762 | }, 763 | { 764 | "current": { 765 | "selected": true, 766 | "text": "Prometheus", 767 | "value": "Prometheus" 768 | }, 769 | "datasource": null, 770 | "hide": 2, 771 | "includeAll": false, 772 | "label": "", 773 | "multi": false, 774 | "name": "DS_PROMETHEUS", 775 | "options": [], 776 | "query": "prometheus", 777 | "refresh": 1, 778 | "regex": "", 779 | "type": "datasource" 780 | }, 781 | { 782 | "auto": false, 783 | "auto_count": 5, 784 | "auto_min": "30s", 785 | "current": { 786 | "text": "5m", 787 | "value": "5m" 788 | }, 789 | "datasource": null, 790 | "hide": 0, 791 | "includeAll": false, 792 | "label": "Time Interval", 793 | "multi": false, 794 | "name": "Interval", 795 | "options": [ 796 | { 797 | "selected": false, 798 | "text": "1m", 799 | "value": "1m" 800 | }, 801 | { 802 | "selected": true, 803 | "text": "5m", 804 | "value": "5m" 805 | }, 806 | { 807 | "selected": false, 808 | "text": "10m", 809 | "value": "10m" 810 | }, 811 | { 812 | "selected": false, 813 | "text": "30m", 814 | "value": "30m" 815 | }, 816 | { 817 | "selected": false, 818 | "text": "1h", 819 | "value": "1h" 820 | } 821 | ], 822 | "query": "1m,5m,10m,30m,1h", 823 | "refresh": 2, 824 | "type": "interval" 825 | }, 826 | { 827 | "allValue": null, 828 | "current": {}, 829 | "datasource": "$DS_PROMETHEUS", 830 | "hide": 0, 831 | "includeAll": false, 832 | "label": "Socket", 833 | "multi": false, 834 | "name": "Socket", 835 | "options": [], 836 | "query": "label_values(php_fpm_accepted_connections_total, socket_path)", 837 | "refresh": 1, 838 | "regex": "", 839 | "sort": 0, 840 | "tagValuesQuery": "", 841 | "tags": [], 842 | "tagsQuery": "", 843 | "type": "query", 844 | "useTags": false 845 | } 846 | ] 847 | }, 848 | "time": { 849 | "from": "now-5m", 850 | "to": "now" 851 | }, 852 | "timepicker": { 853 | "refresh_intervals": [ 854 | "5s", 855 | "10s", 856 | "30s", 857 | "1m", 858 | "5m", 859 | "15m", 860 | "30m", 861 | "1h", 862 | "2h", 863 | "1d" 864 | ], 865 | "time_options": [ 866 | "5m", 867 | "15m", 868 | "1h", 869 | "6h", 870 | "12h", 871 | "24h", 872 | "2d", 873 | "7d", 874 | "30d" 875 | ] 876 | }, 877 | "timezone": "browser", 878 | "title": "PHP-FPM", 879 | "uid": "000000003", 880 | "version": 18 881 | } -------------------------------------------------------------------------------- /contrib/php-fpm_exporter.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description = PHP-FPM Prometheus Exporter 3 | 4 | [Service] 5 | SyslogIdentifier = phpfpm_exporter 6 | ExecStart = /opt/phpfpm_exporter/phpfpm_exporter 7 | 8 | [Install] 9 | WantedBy = multi-user.target 10 | -------------------------------------------------------------------------------- /contrib/php_opcache_exporter.php: -------------------------------------------------------------------------------- 1 | $value) { 37 | dump_as_prometheus_metric($value, $prefix.'_'.str_replace('.', '_', $key)); 38 | } 39 | } else { 40 | var_dump($root); 41 | die('Encountered unsupported value type'); 42 | } 43 | } 44 | 45 | // Report status & statistics 46 | dump_as_prometheus_metric(opcache_get_status(false), 'opcache_status'); 47 | 48 | // Report configuration directives 49 | dump_as_prometheus_metric(opcache_get_configuration(), 'opcache_configuration'); 50 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/Lusitaniae/phpfpm_exporter 2 | 3 | go 1.16 4 | 5 | require ( 6 | github.com/prometheus/client_golang v1.10.0 7 | github.com/prometheus/client_model v0.2.0 8 | github.com/prometheus/common v0.27.0 9 | github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19 10 | gopkg.in/alecthomas/kingpin.v2 v2.2.6 11 | ) 12 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 9 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 10 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 11 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 12 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 13 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 14 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 15 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 16 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 17 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 18 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 19 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 20 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 21 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 22 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 23 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 24 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 25 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 26 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 27 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 28 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 29 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 30 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 31 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 32 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 33 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 34 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 35 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 36 | github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= 37 | github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= 38 | github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= 39 | github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= 40 | github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= 41 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 42 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= 43 | github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 44 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 45 | github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 46 | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E= 47 | github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= 48 | github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= 49 | github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= 50 | github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= 51 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= 52 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 53 | github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= 54 | github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= 55 | github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= 56 | github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= 57 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 58 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 59 | github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= 60 | github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= 61 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 62 | github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= 63 | github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= 64 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 65 | github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= 66 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 67 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 68 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 69 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 70 | github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= 71 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 72 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 73 | github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= 74 | github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= 75 | github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 76 | github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= 77 | github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= 78 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 79 | github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= 80 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 81 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 82 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 83 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 84 | github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= 85 | github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= 86 | github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= 87 | github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= 88 | github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= 89 | github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= 90 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 91 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 92 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 93 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 94 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 95 | github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= 96 | github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= 97 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 98 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 99 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 100 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 101 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 102 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 103 | github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 104 | github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= 105 | github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= 106 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 107 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 108 | github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= 109 | github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= 110 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 111 | github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= 112 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 113 | github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 114 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= 115 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 116 | github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 117 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 118 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 119 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 120 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 121 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 122 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 123 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 124 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 125 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 126 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 127 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 128 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 129 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 130 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 131 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 132 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 133 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 134 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 135 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 136 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 137 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 138 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 139 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 140 | github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= 141 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 142 | github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 143 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 144 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 145 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 146 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 147 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 148 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 149 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 150 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 151 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 152 | github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= 153 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 154 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 155 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 156 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 157 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 158 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 159 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 160 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 161 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 162 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 163 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 164 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 165 | github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 166 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 167 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 168 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 169 | github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= 170 | github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= 171 | github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= 172 | github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= 173 | github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= 174 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= 175 | github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= 176 | github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= 177 | github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= 178 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 179 | github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 180 | github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= 181 | github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= 182 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 183 | github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= 184 | github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= 185 | github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= 186 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 187 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 188 | github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= 189 | github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= 190 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 191 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 192 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= 193 | github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= 194 | github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= 195 | github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= 196 | github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= 197 | github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= 198 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 199 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 200 | github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= 201 | github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= 202 | github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= 203 | github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= 204 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 205 | github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 206 | github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 207 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 208 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 209 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 210 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 211 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 212 | github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= 213 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= 214 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 215 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 216 | github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 217 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 218 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 219 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 220 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 221 | github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= 222 | github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= 223 | github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= 224 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 225 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 226 | github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 227 | github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= 228 | github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= 229 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 230 | github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= 231 | github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= 232 | github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 233 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= 234 | github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= 235 | github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= 236 | github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 237 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 238 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 239 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 240 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 241 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 242 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 243 | github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 244 | github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= 245 | github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= 246 | github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= 247 | github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= 248 | github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= 249 | github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= 250 | github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= 251 | github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= 252 | github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= 253 | github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= 254 | github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 255 | github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 256 | github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= 257 | github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= 258 | github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= 259 | github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= 260 | github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= 261 | github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= 262 | github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= 263 | github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= 264 | github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= 265 | github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= 266 | github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= 267 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= 268 | github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= 269 | github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= 270 | github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= 271 | github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= 272 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 273 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 274 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 275 | github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= 276 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 277 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 278 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= 279 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 280 | github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= 281 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 282 | github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= 283 | github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= 284 | github.com/prometheus/client_golang v1.10.0 h1:/o0BDeWzLWXNZ+4q5gXltUvaMpJqckTa+jTNoB+z4cg= 285 | github.com/prometheus/client_golang v1.10.0/go.mod h1:WJM3cc3yu7XKBKa/I8WeZm+V3eltZnBwfENSU7mdogU= 286 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 287 | github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 288 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 289 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 290 | github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 291 | github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= 292 | github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 293 | github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 294 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 295 | github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= 296 | github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= 297 | github.com/prometheus/common v0.18.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= 298 | github.com/prometheus/common v0.27.0 h1:kJb5BtkTmonXrV2nfyRRlChGpgqhPCdj2ooGivZ8txo= 299 | github.com/prometheus/common v0.27.0/go.mod h1:LdLj/WiR+LL0ThCPrtSZbijrsxInIhizDTiPlJhPPq4= 300 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 301 | github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 302 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 303 | github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= 304 | github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= 305 | github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= 306 | github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= 307 | github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= 308 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= 309 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 310 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 311 | github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= 312 | github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= 313 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= 314 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 315 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 316 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= 317 | github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= 318 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 319 | github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= 320 | github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= 321 | github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= 322 | github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= 323 | github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 324 | github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= 325 | github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= 326 | github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= 327 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 328 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 329 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 330 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 331 | github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= 332 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 333 | github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= 334 | github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19 h1:ZCmSnT6CLGhfoQ2lPEhL4nsJstKDCw1F1RfN8/smTCU= 335 | github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19/go.mod h1:SXTY+QvI+KTTKXQdg0zZ7nx0u94QWh8ZAwBQYsW9cqk= 336 | github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= 337 | github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= 338 | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= 339 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 340 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 341 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 342 | go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= 343 | go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= 344 | go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= 345 | go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= 346 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 347 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 348 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 349 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 350 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 351 | go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= 352 | go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= 353 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= 354 | go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= 355 | go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= 356 | go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= 357 | go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= 358 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 359 | golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 360 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 361 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 362 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 363 | golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 364 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 365 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 366 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 367 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 368 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 369 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 370 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 371 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 372 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 373 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 374 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 375 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 376 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 377 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 378 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 379 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 380 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 381 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 382 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 383 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 384 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 385 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 386 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 387 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 388 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 389 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 390 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 391 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 392 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 393 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 394 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 395 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 396 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 397 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 398 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 399 | golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 400 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 401 | golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 402 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 403 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 404 | golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 405 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 406 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 407 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 408 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 409 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 410 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 411 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 412 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 413 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 414 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 415 | golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 416 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 417 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 418 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 419 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 420 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 421 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 422 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 423 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 424 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 425 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 426 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 427 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 428 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 429 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 430 | golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 431 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 432 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 433 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 434 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 435 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 436 | golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 437 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 438 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 439 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 440 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 441 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 442 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 443 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 444 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 445 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 446 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 447 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 448 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 449 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 450 | golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 451 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 452 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 453 | golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 454 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 455 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 456 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 457 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 458 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 459 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 460 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 461 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 462 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 463 | golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 464 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 465 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 466 | golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 467 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 468 | golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 469 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 470 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 471 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 472 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 473 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 474 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 475 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 476 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 477 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 478 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 479 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 480 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 481 | golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 482 | golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 483 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 484 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 485 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 486 | golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 487 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da h1:b3NXsE2LusjYGGjL5bxEVZZORm/YEFFrWFjR8eFrw/c= 488 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 489 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 490 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 491 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 492 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 493 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 494 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 495 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 496 | golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 497 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 498 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 499 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 500 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 501 | golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 502 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 503 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 504 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 505 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 506 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 507 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 508 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 509 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 510 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 511 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 512 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 513 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 514 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 515 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 516 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 517 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 518 | golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 519 | golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 520 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 521 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 522 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 523 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 524 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 525 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 526 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 527 | golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 528 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 529 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 530 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 531 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 532 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 533 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 534 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 535 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 536 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 537 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 538 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 539 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 540 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 541 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 542 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 543 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 544 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 545 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 546 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 547 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 548 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 549 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= 550 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 551 | google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= 552 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 553 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 554 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 555 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 556 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 557 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 558 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 559 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 560 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 561 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 562 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 563 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 564 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 565 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 566 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 567 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 568 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 569 | google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 570 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 571 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 572 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 573 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 574 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 575 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 576 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 577 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 578 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 579 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 580 | google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= 581 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 582 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 583 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 584 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 585 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 586 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 587 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 588 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 589 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 590 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 591 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 592 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 593 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 594 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 595 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 596 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 597 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 598 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 599 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 600 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 601 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 602 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 603 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 604 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 605 | google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= 606 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 607 | google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= 608 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 609 | google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 610 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 611 | google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 612 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 613 | google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 614 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 615 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 616 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 617 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 618 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 619 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 620 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 621 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 622 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 623 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 624 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 625 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 626 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 627 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 628 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 629 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 630 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 631 | google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= 632 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 633 | gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= 634 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 635 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 636 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 637 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 638 | gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= 639 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 640 | gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= 641 | gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= 642 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= 643 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= 644 | gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= 645 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= 646 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 647 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 648 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 649 | gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 650 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 651 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 652 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 653 | honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 654 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 655 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 656 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 657 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 658 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 659 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 660 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 661 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 662 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 663 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 664 | sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= 665 | sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= 666 | -------------------------------------------------------------------------------- /phpfpm_exporter.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Kumina, https://kumina.nl/ 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | package main 15 | 16 | import ( 17 | "bufio" 18 | "fmt" 19 | "io" 20 | "log" 21 | "net/http" 22 | "os" 23 | "path" 24 | "regexp" 25 | "strconv" 26 | "strings" 27 | "time" 28 | 29 | "path/filepath" 30 | 31 | "github.com/prometheus/client_golang/prometheus" 32 | "github.com/prometheus/client_golang/prometheus/promhttp" 33 | client_model "github.com/prometheus/client_model/go" 34 | "github.com/prometheus/common/expfmt" 35 | "github.com/prometheus/common/version" 36 | "github.com/tomasen/fcgi_client" 37 | "gopkg.in/alecthomas/kingpin.v2" 38 | ) 39 | 40 | var ( 41 | phpfpmSocketPathLabel = "socket_path" 42 | phpfpmScriptPathLabel = "script_path" 43 | 44 | phpfpmUpDesc = prometheus.NewDesc( 45 | prometheus.BuildFQName("php", "fpm", "up"), 46 | "Whether scraping PHP-FPM's metrics was successful.", 47 | []string{phpfpmSocketPathLabel}, nil) 48 | 49 | phpfpmAcceptedConnections = prometheus.NewDesc( 50 | prometheus.BuildFQName("php", "fpm", "accepted_connections_total"), 51 | "Number of request accepted by the pool.", 52 | []string{phpfpmSocketPathLabel}, nil) 53 | 54 | phpfpmStartTime = prometheus.NewDesc( 55 | prometheus.BuildFQName("php", "fpm", "start_time_seconds"), 56 | "Unix time when FPM has started or reloaded.", 57 | []string{phpfpmSocketPathLabel}, nil) 58 | 59 | phpfpmGauges = map[string]*prometheus.Desc{ 60 | "listen queue": prometheus.NewDesc( 61 | prometheus.BuildFQName("php", "fpm", "listen_queue"), 62 | "Number of request in the queue of pending connections.", 63 | []string{phpfpmSocketPathLabel}, nil), 64 | "max listen queue": prometheus.NewDesc( 65 | prometheus.BuildFQName("php", "fpm", "max_listen_queue"), 66 | "Maximum number of requests in the queue of pending connections since FPM has started.", 67 | []string{phpfpmSocketPathLabel}, nil), 68 | "listen queue len": prometheus.NewDesc( 69 | prometheus.BuildFQName("php", "fpm", "listen_queue_length"), 70 | "The size of the socket queue of pending connections.", 71 | []string{phpfpmSocketPathLabel}, nil), 72 | "idle processes": prometheus.NewDesc( 73 | prometheus.BuildFQName("php", "fpm", "idle_processes"), 74 | "Number of idle processes.", 75 | []string{phpfpmSocketPathLabel}, nil), 76 | "active processes": prometheus.NewDesc( 77 | prometheus.BuildFQName("php", "fpm", "active_processes"), 78 | "Number of active processes.", 79 | []string{phpfpmSocketPathLabel}, nil), 80 | "total processes": prometheus.NewDesc( 81 | prometheus.BuildFQName("php", "fpm", "total_processes"), 82 | "Number of total processes.", 83 | []string{phpfpmSocketPathLabel}, nil), 84 | "max active processes": prometheus.NewDesc( 85 | prometheus.BuildFQName("php", "fpm", "max_active_processes"), 86 | "Maximum number of active processes since FPM has started.", 87 | []string{phpfpmSocketPathLabel}, nil), 88 | "max children reached": prometheus.NewDesc( 89 | prometheus.BuildFQName("php", "fpm", "max_children_reached"), 90 | "Number of times, the process limit has been reached.", 91 | []string{phpfpmSocketPathLabel}, nil), 92 | "slow requests": prometheus.NewDesc( 93 | prometheus.BuildFQName("php", "fpm", "slow_requests"), 94 | "Enable php-fpm slow-log before you consider this. If this value is non-zero you may have slow php processes.", 95 | []string{phpfpmSocketPathLabel}, nil), 96 | } 97 | ) 98 | 99 | func CollectStatusFromReader(reader io.Reader, socketPath string, ch chan<- prometheus.Metric) error { 100 | scanner := bufio.NewScanner(reader) 101 | re := regexp.MustCompile("^(.*): +(.*)$") 102 | 103 | // Scrape the interesting values: 104 | for scanner.Scan() { 105 | fields := re.FindStringSubmatch(scanner.Text()) 106 | if fields == nil { 107 | return fmt.Errorf("Failed to parse %s", scanner.Text()) 108 | } 109 | 110 | if gauge, ok := phpfpmGauges[fields[1]]; ok { 111 | f, err := strconv.ParseFloat(fields[2], 64) 112 | if err != nil { 113 | return err 114 | } 115 | ch <- prometheus.MustNewConstMetric( 116 | gauge, 117 | prometheus.GaugeValue, 118 | f, 119 | socketPath) 120 | } else if fields[1] == "accepted conn" { 121 | f, err := strconv.ParseFloat(fields[2], 64) 122 | if err != nil { 123 | return err 124 | } 125 | ch <- prometheus.MustNewConstMetric( 126 | phpfpmAcceptedConnections, 127 | prometheus.CounterValue, 128 | f, 129 | socketPath) 130 | } else if fields[1] == "start time" { 131 | location, err := time.LoadLocation("Local") 132 | if err != nil { 133 | return err 134 | } 135 | since, err := time.ParseInLocation("02/Jan/2006:15:04:05 -0700", fields[2], location) 136 | if err != nil { 137 | return err 138 | } 139 | f := float64(since.Unix()) 140 | ch <- prometheus.MustNewConstMetric( 141 | phpfpmStartTime, 142 | prometheus.GaugeValue, 143 | f, 144 | socketPath) 145 | } 146 | } 147 | return nil 148 | } 149 | 150 | func CollectStatusFromSocket(path *SocketPath, statusPath string, ch chan<- prometheus.Metric) error { 151 | 152 | env := make(map[string]string) 153 | env["SCRIPT_FILENAME"] = statusPath 154 | env["SCRIPT_NAME"] = statusPath 155 | env["REQUEST_METHOD"] = "GET" 156 | 157 | fcgi, err := fcgiclient.Dial(path.Network, path.Address) 158 | if err != nil { 159 | return err 160 | } 161 | defer fcgi.Close() 162 | 163 | resp, err := fcgi.Get(env) 164 | if err != nil { 165 | return err 166 | } 167 | 168 | return CollectStatusFromReader(resp.Body, path.FormatStr(), ch) 169 | } 170 | 171 | func CollectMetricsFromScript(socketPaths []*SocketPath, scriptPaths []string) ([]*client_model.MetricFamily, error) { 172 | var result []*client_model.MetricFamily 173 | 174 | for _, socketPath := range socketPaths { 175 | for _, scriptPath := range scriptPaths { 176 | fcgi, err := fcgiclient.Dial(socketPath.Network, socketPath.Address) 177 | if err != nil { 178 | return result, err 179 | } 180 | defer fcgi.Close() 181 | 182 | env := make(map[string]string) 183 | env["DOCUMENT_ROOT"] = path.Dir(scriptPath) 184 | env["SCRIPT_FILENAME"] = scriptPath 185 | env["SCRIPT_NAME"] = path.Base(scriptPath) 186 | env["REQUEST_METHOD"] = "GET" 187 | 188 | resp, err := fcgi.Get(env) 189 | if err != nil { 190 | return result, err 191 | } 192 | 193 | var parser expfmt.TextParser 194 | metricFamilies, err := parser.TextToMetricFamilies(resp.Body) 195 | if err != nil { 196 | return result, err 197 | } 198 | 199 | for _, metricFamily := range metricFamilies { 200 | for _, metric := range metricFamily.Metric { 201 | socketPathCopy := socketPath.FormatStr() 202 | scriptPathCopy := scriptPath 203 | metric.Label = append( 204 | metric.Label, 205 | &client_model.LabelPair{ 206 | Name: &phpfpmSocketPathLabel, 207 | Value: &socketPathCopy, 208 | }, 209 | &client_model.LabelPair{ 210 | Name: &phpfpmScriptPathLabel, 211 | Value: &scriptPathCopy, 212 | }) 213 | } 214 | result = append(result, metricFamily) 215 | } 216 | } 217 | } 218 | return result, nil 219 | } 220 | 221 | type PhpfpmExporter struct { 222 | socketPaths []*SocketPath 223 | statusPath string 224 | } 225 | 226 | func NewPhpfpmExporter(socketPaths []*SocketPath, statusPath string) (*PhpfpmExporter, error) { 227 | return &PhpfpmExporter{ 228 | socketPaths: socketPaths, 229 | statusPath: statusPath, 230 | }, nil 231 | } 232 | 233 | func (e *PhpfpmExporter) Describe(ch chan<- *prometheus.Desc) { 234 | ch <- phpfpmUpDesc 235 | ch <- phpfpmAcceptedConnections 236 | ch <- phpfpmStartTime 237 | for _, desc := range phpfpmGauges { 238 | ch <- desc 239 | } 240 | } 241 | 242 | func (e *PhpfpmExporter) Collect(ch chan<- prometheus.Metric) { 243 | 244 | for _, socketPath := range e.socketPaths { 245 | err := CollectStatusFromSocket(socketPath, e.statusPath, ch) 246 | if err == nil { 247 | ch <- prometheus.MustNewConstMetric( 248 | phpfpmUpDesc, 249 | prometheus.GaugeValue, 250 | 1.0, 251 | socketPath.FormatStr()) 252 | } else { 253 | log.Printf("Failed to scrape socket: %s", err) 254 | ch <- prometheus.MustNewConstMetric( 255 | phpfpmUpDesc, 256 | prometheus.GaugeValue, 257 | 0.0, 258 | socketPath.FormatStr()) 259 | } 260 | } 261 | } 262 | 263 | type SocketPath struct { 264 | Network string 265 | Address string 266 | } 267 | 268 | func (s *SocketPath) FormatStr() string { 269 | return s.Network + "://" + s.Address 270 | } 271 | 272 | func NewSocketPath(socketPath string) *SocketPath { 273 | 274 | i := strings.Index(socketPath, "://") 275 | if i < 0 { 276 | return &SocketPath{"unix", socketPath} 277 | } 278 | network := socketPath[:i] 279 | address := socketPath[i+3:] 280 | return &SocketPath{network, address} 281 | } 282 | 283 | func main() { 284 | var ( 285 | listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9253").String() 286 | metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() 287 | socketPaths = kingpin.Flag("phpfpm.socket-paths", "Paths of the PHP-FPM sockets.").Strings() 288 | socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() 289 | statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() 290 | scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() 291 | showVersion = kingpin.Flag("version", "Print version information.").Bool() 292 | ) 293 | 294 | kingpin.CommandLine.HelpFlag.Short('h') 295 | kingpin.Parse() 296 | 297 | var sockets []*SocketPath 298 | for _, socketDirectory := range *socketDirectories { 299 | _ = filepath.Walk(socketDirectory, func(path string, info os.FileInfo, err error) error { 300 | if err == nil && info.Mode()&os.ModeSocket != 0 { 301 | sockets = append(sockets, NewSocketPath(path)) 302 | } 303 | return nil 304 | }) 305 | } 306 | 307 | for _, socket := range *socketPaths { 308 | sockets = append(sockets, NewSocketPath(socket)) 309 | } 310 | 311 | if *showVersion { 312 | fmt.Println(version.Print("phpfpm_exporter")) 313 | os.Exit(0) 314 | } 315 | 316 | exporter, err := NewPhpfpmExporter(sockets, *statusPath) 317 | if err != nil { 318 | panic(err) 319 | } 320 | prometheus.MustRegister(exporter) 321 | 322 | gatherer := prometheus.DefaultGatherer 323 | if len(*scriptCollectorPaths) != 0 { 324 | gatherer = prometheus.Gatherers{ 325 | prometheus.DefaultGatherer, 326 | prometheus.GathererFunc(func() ([]*client_model.MetricFamily, error) { 327 | return CollectMetricsFromScript(sockets, *scriptCollectorPaths) 328 | }), 329 | } 330 | } 331 | 332 | log.Println("Starting phpfpm_exporter", version.Info()) 333 | log.Println("Build context", version.BuildContext()) 334 | log.Printf("Starting Server: %s", *listenAddress) 335 | 336 | http.Handle(*metricsPath, promhttp.HandlerFor(gatherer, promhttp.HandlerOpts{ErrorHandling: promhttp.ContinueOnError})) 337 | http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { 338 | _, _ = w.Write([]byte(` 339 | 340 | PHP-FPM Exporter 341 | 342 |

PHP-FPM Exporter

343 |

Metrics

344 | 345 | `)) 346 | }) 347 | log.Fatal(http.ListenAndServe(*listenAddress, nil)) 348 | } 349 | -------------------------------------------------------------------------------- /test/not_found.metrics: -------------------------------------------------------------------------------- 1 | # HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles. 2 | # TYPE go_gc_duration_seconds summary 3 | go_gc_duration_seconds{quantile="0"} 0 4 | go_gc_duration_seconds{quantile="0.25"} 0 5 | go_gc_duration_seconds{quantile="0.5"} 0 6 | go_gc_duration_seconds{quantile="0.75"} 0 7 | go_gc_duration_seconds{quantile="1"} 0 8 | go_gc_duration_seconds_sum 0 9 | go_gc_duration_seconds_count 0 10 | # HELP go_goroutines Number of goroutines that currently exist. 11 | # TYPE go_goroutines gauge 12 | go_goroutines 7 13 | # HELP go_info Information about the Go environment. 14 | # TYPE go_info gauge 15 | go_info{version="go1.16.4"} 1 16 | # HELP go_memstats_alloc_bytes Number of bytes allocated and still in use. 17 | # TYPE go_memstats_alloc_bytes gauge 18 | go_memstats_alloc_bytes 718408 19 | # HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed. 20 | # TYPE go_memstats_alloc_bytes_total counter 21 | go_memstats_alloc_bytes_total 718408 22 | # HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table. 23 | # TYPE go_memstats_buck_hash_sys_bytes gauge 24 | go_memstats_buck_hash_sys_bytes 1.444637e+06 25 | # HELP go_memstats_frees_total Total number of frees. 26 | # TYPE go_memstats_frees_total counter 27 | go_memstats_frees_total 138 28 | # HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program started. 29 | # TYPE go_memstats_gc_cpu_fraction gauge 30 | go_memstats_gc_cpu_fraction 0 31 | # HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata. 32 | # TYPE go_memstats_gc_sys_bytes gauge 33 | go_memstats_gc_sys_bytes 3.986816e+06 34 | # HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use. 35 | # TYPE go_memstats_heap_alloc_bytes gauge 36 | go_memstats_heap_alloc_bytes 718408 37 | # HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used. 38 | # TYPE go_memstats_heap_idle_bytes gauge 39 | go_memstats_heap_idle_bytes 6.4888832e+07 40 | # HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use. 41 | # TYPE go_memstats_heap_inuse_bytes gauge 42 | go_memstats_heap_inuse_bytes 1.892352e+06 43 | # HELP go_memstats_heap_objects Number of allocated objects. 44 | # TYPE go_memstats_heap_objects gauge 45 | go_memstats_heap_objects 2611 46 | # HELP go_memstats_heap_released_bytes Number of heap bytes released to OS. 47 | # TYPE go_memstats_heap_released_bytes gauge 48 | go_memstats_heap_released_bytes 6.4888832e+07 49 | # HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system. 50 | # TYPE go_memstats_heap_sys_bytes gauge 51 | go_memstats_heap_sys_bytes 6.6781184e+07 52 | # HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection. 53 | # TYPE go_memstats_last_gc_time_seconds gauge 54 | go_memstats_last_gc_time_seconds 0 55 | # HELP go_memstats_lookups_total Total number of pointer lookups. 56 | # TYPE go_memstats_lookups_total counter 57 | go_memstats_lookups_total 0 58 | # HELP go_memstats_mallocs_total Total number of mallocs. 59 | # TYPE go_memstats_mallocs_total counter 60 | go_memstats_mallocs_total 2749 61 | # HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures. 62 | # TYPE go_memstats_mcache_inuse_bytes gauge 63 | go_memstats_mcache_inuse_bytes 14400 64 | # HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system. 65 | # TYPE go_memstats_mcache_sys_bytes gauge 66 | go_memstats_mcache_sys_bytes 16384 67 | # HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures. 68 | # TYPE go_memstats_mspan_inuse_bytes gauge 69 | go_memstats_mspan_inuse_bytes 37808 70 | # HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system. 71 | # TYPE go_memstats_mspan_sys_bytes gauge 72 | go_memstats_mspan_sys_bytes 49152 73 | # HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place. 74 | # TYPE go_memstats_next_gc_bytes gauge 75 | go_memstats_next_gc_bytes 4.473924e+06 76 | # HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations. 77 | # TYPE go_memstats_other_sys_bytes gauge 78 | go_memstats_other_sys_bytes 746603 79 | # HELP go_memstats_stack_inuse_bytes Number of bytes in use by the stack allocator. 80 | # TYPE go_memstats_stack_inuse_bytes gauge 81 | go_memstats_stack_inuse_bytes 327680 82 | # HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator. 83 | # TYPE go_memstats_stack_sys_bytes gauge 84 | go_memstats_stack_sys_bytes 327680 85 | # HELP go_memstats_sys_bytes Number of bytes obtained from system. 86 | # TYPE go_memstats_sys_bytes gauge 87 | go_memstats_sys_bytes 7.3352456e+07 88 | # HELP go_threads Number of OS threads created. 89 | # TYPE go_threads gauge 90 | go_threads 5 91 | # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds. 92 | # TYPE process_cpu_seconds_total counter 93 | process_cpu_seconds_total 0 94 | # HELP process_max_fds Maximum number of open file descriptors. 95 | # TYPE process_max_fds gauge 96 | process_max_fds 1024 97 | # HELP process_open_fds Number of open file descriptors. 98 | # TYPE process_open_fds gauge 99 | process_open_fds 9 100 | # HELP process_resident_memory_bytes Resident memory size in bytes. 101 | # TYPE process_resident_memory_bytes gauge 102 | process_resident_memory_bytes 8.613888e+06 103 | # HELP process_start_time_seconds Start time of the process since unix epoch in seconds. 104 | # TYPE process_start_time_seconds gauge 105 | process_start_time_seconds 1.6229086002e+09 106 | # HELP process_virtual_memory_bytes Virtual memory size in bytes. 107 | # TYPE process_virtual_memory_bytes gauge 108 | process_virtual_memory_bytes 7.29788416e+08 109 | # HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes. 110 | # TYPE process_virtual_memory_max_bytes gauge 111 | process_virtual_memory_max_bytes 1.8446744073709552e+19 112 | --------------------------------------------------------------------------------