From 071b50410ea3fb28388daedaf2624add7ba00227 Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Thu, 25 Apr 2024 11:05:58 +0200 Subject: [PATCH 1/8] added timeout support --- phpfpm_exporter.go | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/phpfpm_exporter.go b/phpfpm_exporter.go index 964ecbf..9bfdd48 100644 --- a/phpfpm_exporter.go +++ b/phpfpm_exporter.go @@ -33,7 +33,7 @@ import ( client_model "github.com/prometheus/client_model/go" "github.com/prometheus/common/expfmt" "github.com/prometheus/common/version" - "github.com/tomasen/fcgi_client" + fcgiclient "github.com/tomasen/fcgi_client" "gopkg.in/alecthomas/kingpin.v2" ) @@ -147,14 +147,14 @@ func CollectStatusFromReader(reader io.Reader, socketPath string, ch chan<- prom return nil } -func CollectStatusFromSocket(path *SocketPath, statusPath string, ch chan<- prometheus.Metric) error { +func CollectStatusFromSocket(path *SocketPath, statusPath string, timeout time.Duration, ch chan<- prometheus.Metric) error { env := make(map[string]string) env["SCRIPT_FILENAME"] = statusPath env["SCRIPT_NAME"] = statusPath env["REQUEST_METHOD"] = "GET" - fcgi, err := fcgiclient.Dial(path.Network, path.Address) + fcgi, err := fcgiclient.DialTimeout(path.Network, path.Address, timeout) if err != nil { return err } @@ -168,12 +168,12 @@ func CollectStatusFromSocket(path *SocketPath, statusPath string, ch chan<- prom return CollectStatusFromReader(resp.Body, path.FormatStr(), ch) } -func CollectMetricsFromScript(socketPaths []*SocketPath, scriptPaths []string) ([]*client_model.MetricFamily, error) { +func CollectMetricsFromScript(socketPaths []*SocketPath, socketTimeout time.Duration, scriptPaths []string) ([]*client_model.MetricFamily, error) { var result []*client_model.MetricFamily for _, socketPath := range socketPaths { for _, scriptPath := range scriptPaths { - fcgi, err := fcgiclient.Dial(socketPath.Network, socketPath.Address) + fcgi, err := fcgiclient.DialTimeout(socketPath.Network, socketPath.Address, socketTimeout) if err != nil { return result, err } @@ -220,12 +220,14 @@ func CollectMetricsFromScript(socketPaths []*SocketPath, scriptPaths []string) ( type PhpfpmExporter struct { socketPaths []*SocketPath + socketTimeout time.Duration statusPath string } -func NewPhpfpmExporter(socketPaths []*SocketPath, statusPath string) (*PhpfpmExporter, error) { +func NewPhpfpmExporter(socketPaths []*SocketPath, socketTimeout time.Duration, statusPath string) (*PhpfpmExporter, error) { return &PhpfpmExporter{ socketPaths: socketPaths, + socketTimeout: socketTimeout, statusPath: statusPath, }, nil } @@ -242,7 +244,7 @@ func (e *PhpfpmExporter) Describe(ch chan<- *prometheus.Desc) { func (e *PhpfpmExporter) Collect(ch chan<- prometheus.Metric) { for _, socketPath := range e.socketPaths { - err := CollectStatusFromSocket(socketPath, e.statusPath, ch) + err := CollectStatusFromSocket(socketPath, e.statusPath, e.socketTimeout, ch) if err == nil { ch <- prometheus.MustNewConstMetric( phpfpmUpDesc, @@ -288,6 +290,7 @@ func main() { socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() + socketTimeout = kingpin.Flag("phpfpm.socket-timeout", "Connection timeout for PHP-FPM sockets.").Duration() showVersion = kingpin.Flag("version", "Print version information.").Bool() ) @@ -313,7 +316,7 @@ func main() { os.Exit(0) } - exporter, err := NewPhpfpmExporter(sockets, *statusPath) + exporter, err := NewPhpfpmExporter(sockets, *socketTimeout, *statusPath) if err != nil { panic(err) } @@ -324,7 +327,7 @@ func main() { gatherer = prometheus.Gatherers{ prometheus.DefaultGatherer, prometheus.GathererFunc(func() ([]*client_model.MetricFamily, error) { - return CollectMetricsFromScript(sockets, *scriptCollectorPaths) + return CollectMetricsFromScript(sockets, *socketTimeout, *scriptCollectorPaths) }), } } From 23bc4f550b1aac19244672077d0e53e58f1a8eaa Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Fri, 26 Apr 2024 09:41:21 +0200 Subject: [PATCH 2/8] remove sockettimeout and introduced operations timeouts --- phpfpm_exporter.go | 57 +++++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/phpfpm_exporter.go b/phpfpm_exporter.go index 9bfdd48..59c0a2f 100644 --- a/phpfpm_exporter.go +++ b/phpfpm_exporter.go @@ -33,7 +33,7 @@ import ( client_model "github.com/prometheus/client_model/go" "github.com/prometheus/common/expfmt" "github.com/prometheus/common/version" - fcgiclient "github.com/tomasen/fcgi_client" + fcgiclient "github.com/kanocz/fcgi_client" "gopkg.in/alecthomas/kingpin.v2" ) @@ -147,19 +147,23 @@ func CollectStatusFromReader(reader io.Reader, socketPath string, ch chan<- prom return nil } -func CollectStatusFromSocket(path *SocketPath, statusPath string, timeout time.Duration, ch chan<- prometheus.Metric) error { +func CollectStatusFromSocket(path *SocketPath, statusPath string, connectTimeout time.Duration, operationTimeout time.Duration, ch chan<- prometheus.Metric) error { env := make(map[string]string) env["SCRIPT_FILENAME"] = statusPath env["SCRIPT_NAME"] = statusPath env["REQUEST_METHOD"] = "GET" - fcgi, err := fcgiclient.DialTimeout(path.Network, path.Address, timeout) + fcgi, err := fcgiclient.DialTimeout(path.Network, path.Address, connectTimeout) if err != nil { return err } defer fcgi.Close() + if operationTimeout > 0 { + fcgi.SetTimeout(operationTimeout) + } + resp, err := fcgi.Get(env) if err != nil { return err @@ -168,17 +172,21 @@ func CollectStatusFromSocket(path *SocketPath, statusPath string, timeout time.D return CollectStatusFromReader(resp.Body, path.FormatStr(), ch) } -func CollectMetricsFromScript(socketPaths []*SocketPath, socketTimeout time.Duration, scriptPaths []string) ([]*client_model.MetricFamily, error) { +func CollectMetricsFromScript(socketPaths []*SocketPath, connectTimeout time.Duration, operationTimeout time.Duration, scriptPaths []string) ([]*client_model.MetricFamily, error) { var result []*client_model.MetricFamily for _, socketPath := range socketPaths { for _, scriptPath := range scriptPaths { - fcgi, err := fcgiclient.DialTimeout(socketPath.Network, socketPath.Address, socketTimeout) + fcgi, err := fcgiclient.DialTimeout(socketPath.Network, socketPath.Address, connectTimeout) if err != nil { return result, err } defer fcgi.Close() + if operationTimeout > 0 { + fcgi.SetTimeout(operationTimeout) + } + env := make(map[string]string) env["DOCUMENT_ROOT"] = path.Dir(scriptPath) env["SCRIPT_FILENAME"] = scriptPath @@ -219,16 +227,18 @@ func CollectMetricsFromScript(socketPaths []*SocketPath, socketTimeout time.Dura } type PhpfpmExporter struct { - socketPaths []*SocketPath - socketTimeout time.Duration - statusPath string + socketPaths []*SocketPath + connectTimeout time.Duration + operationTimeout time.Duration + statusPath string } -func NewPhpfpmExporter(socketPaths []*SocketPath, socketTimeout time.Duration, statusPath string) (*PhpfpmExporter, error) { +func NewPhpfpmExporter(socketPaths []*SocketPath, connectTimeout time.Duration, operationTimeout time.Duration, statusPath string) (*PhpfpmExporter, error) { return &PhpfpmExporter{ - socketPaths: socketPaths, - socketTimeout: socketTimeout, - statusPath: statusPath, + socketPaths: socketPaths, + connectTimeout: connectTimeout, + operationTimeout: operationTimeout, + statusPath: statusPath, }, nil } @@ -244,7 +254,7 @@ func (e *PhpfpmExporter) Describe(ch chan<- *prometheus.Desc) { func (e *PhpfpmExporter) Collect(ch chan<- prometheus.Metric) { for _, socketPath := range e.socketPaths { - err := CollectStatusFromSocket(socketPath, e.statusPath, e.socketTimeout, ch) + err := CollectStatusFromSocket(socketPath, e.statusPath, e.connectTimeout, e.operationTimeout, ch) if err == nil { ch <- prometheus.MustNewConstMetric( phpfpmUpDesc, @@ -284,14 +294,15 @@ func NewSocketPath(socketPath string) *SocketPath { func main() { var ( - listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9253").String() - metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() - socketPaths = kingpin.Flag("phpfpm.socket-paths", "Paths of the PHP-FPM sockets.").Strings() - socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() - statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() - scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() - socketTimeout = kingpin.Flag("phpfpm.socket-timeout", "Connection timeout for PHP-FPM sockets.").Duration() - showVersion = kingpin.Flag("version", "Print version information.").Bool() + listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9253").String() + metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() + socketPaths = kingpin.Flag("phpfpm.socket-paths", "Paths of the PHP-FPM sockets.").Strings() + socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() + statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() + scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() + socketConnectionTimeout = kingpin.Flag("phpfpm.connection-timeout", "Connection timeout for PHP-FPM sockets.").Duration() + socketOperationTimeout = kingpin.Flag("phpfpm.operation-timeout", "Read/write operation timeout for PHP-FPM sockets.").Duration() + showVersion = kingpin.Flag("version", "Print version information.").Bool() ) kingpin.CommandLine.HelpFlag.Short('h') @@ -316,7 +327,7 @@ func main() { os.Exit(0) } - exporter, err := NewPhpfpmExporter(sockets, *socketTimeout, *statusPath) + exporter, err := NewPhpfpmExporter(sockets, *socketConnectionTimeout, *socketOperationTimeout, *statusPath) if err != nil { panic(err) } @@ -327,7 +338,7 @@ func main() { gatherer = prometheus.Gatherers{ prometheus.DefaultGatherer, prometheus.GathererFunc(func() ([]*client_model.MetricFamily, error) { - return CollectMetricsFromScript(sockets, *socketTimeout, *scriptCollectorPaths) + return CollectMetricsFromScript(sockets, *socketConnectionTimeout, *socketOperationTimeout, *scriptCollectorPaths) }), } } From b8cff8da60be0fe84afb29541014ef01620b0d94 Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Fri, 26 Apr 2024 09:47:52 +0200 Subject: [PATCH 3/8] switch spaces for tabs in formatting --- phpfpm_exporter.go | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/phpfpm_exporter.go b/phpfpm_exporter.go index 59c0a2f..048856e 100644 --- a/phpfpm_exporter.go +++ b/phpfpm_exporter.go @@ -28,12 +28,12 @@ import ( "path/filepath" + fcgiclient "github.com/kanocz/fcgi_client" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" client_model "github.com/prometheus/client_model/go" "github.com/prometheus/common/expfmt" "github.com/prometheus/common/version" - fcgiclient "github.com/kanocz/fcgi_client" "gopkg.in/alecthomas/kingpin.v2" ) @@ -160,9 +160,9 @@ func CollectStatusFromSocket(path *SocketPath, statusPath string, connectTimeout } defer fcgi.Close() - if operationTimeout > 0 { - fcgi.SetTimeout(operationTimeout) - } + if operationTimeout > 0 { + fcgi.SetTimeout(operationTimeout) + } resp, err := fcgi.Get(env) if err != nil { @@ -183,9 +183,9 @@ func CollectMetricsFromScript(socketPaths []*SocketPath, connectTimeout time.Dur } defer fcgi.Close() - if operationTimeout > 0 { - fcgi.SetTimeout(operationTimeout) - } + if operationTimeout > 0 { + fcgi.SetTimeout(operationTimeout) + } env := make(map[string]string) env["DOCUMENT_ROOT"] = path.Dir(scriptPath) @@ -227,18 +227,18 @@ func CollectMetricsFromScript(socketPaths []*SocketPath, connectTimeout time.Dur } type PhpfpmExporter struct { - socketPaths []*SocketPath - connectTimeout time.Duration - operationTimeout time.Duration - statusPath string + socketPaths []*SocketPath + connectTimeout time.Duration + operationTimeout time.Duration + statusPath string } func NewPhpfpmExporter(socketPaths []*SocketPath, connectTimeout time.Duration, operationTimeout time.Duration, statusPath string) (*PhpfpmExporter, error) { return &PhpfpmExporter{ - socketPaths: socketPaths, - connectTimeout: connectTimeout, - operationTimeout: operationTimeout, - statusPath: statusPath, + socketPaths: socketPaths, + connectTimeout: connectTimeout, + operationTimeout: operationTimeout, + statusPath: statusPath, }, nil } @@ -294,15 +294,15 @@ func NewSocketPath(socketPath string) *SocketPath { func main() { var ( - listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9253").String() - metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() - socketPaths = kingpin.Flag("phpfpm.socket-paths", "Paths of the PHP-FPM sockets.").Strings() - socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() - statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() - scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() - socketConnectionTimeout = kingpin.Flag("phpfpm.connection-timeout", "Connection timeout for PHP-FPM sockets.").Duration() + listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9253").String() + metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() + socketPaths = kingpin.Flag("phpfpm.socket-paths", "Paths of the PHP-FPM sockets.").Strings() + socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() + statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() + scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() + socketConnectionTimeout = kingpin.Flag("phpfpm.connection-timeout", "Connection timeout for PHP-FPM sockets.").Duration() socketOperationTimeout = kingpin.Flag("phpfpm.operation-timeout", "Read/write operation timeout for PHP-FPM sockets.").Duration() - showVersion = kingpin.Flag("version", "Print version information.").Bool() + showVersion = kingpin.Flag("version", "Print version information.").Bool() ) kingpin.CommandLine.HelpFlag.Short('h') From ce45de32fef1e2b6a9135ffbf98823bf1d21ea07 Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Fri, 26 Apr 2024 09:54:01 +0200 Subject: [PATCH 4/8] trying to fix CI whitespaces --- phpfpm_exporter.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/phpfpm_exporter.go b/phpfpm_exporter.go index 048856e..1784759 100644 --- a/phpfpm_exporter.go +++ b/phpfpm_exporter.go @@ -227,18 +227,18 @@ func CollectMetricsFromScript(socketPaths []*SocketPath, connectTimeout time.Dur } type PhpfpmExporter struct { - socketPaths []*SocketPath - connectTimeout time.Duration - operationTimeout time.Duration - statusPath string + socketPaths []*SocketPath + connectTimeout time.Duration + operationTimeout time.Duration + statusPath string } func NewPhpfpmExporter(socketPaths []*SocketPath, connectTimeout time.Duration, operationTimeout time.Duration, statusPath string) (*PhpfpmExporter, error) { return &PhpfpmExporter{ - socketPaths: socketPaths, - connectTimeout: connectTimeout, + socketPaths: socketPaths, + connectTimeout: connectTimeout, operationTimeout: operationTimeout, - statusPath: statusPath, + statusPath: statusPath, }, nil } @@ -294,15 +294,15 @@ func NewSocketPath(socketPath string) *SocketPath { func main() { var ( - listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9253").String() - metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() - socketPaths = kingpin.Flag("phpfpm.socket-paths", "Paths of the PHP-FPM sockets.").Strings() - socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() - statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() - scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() + listenAddress = kingpin.Flag("web.listen-address", "Address to listen on for web interface and telemetry.").Default(":9253").String() + metricsPath = kingpin.Flag("web.telemetry-path", "Path under which to expose metrics.").Default("/metrics").String() + socketPaths = kingpin.Flag("phpfpm.socket-paths", "Paths of the PHP-FPM sockets.").Strings() + socketDirectories = kingpin.Flag("phpfpm.socket-directories", "Path(s) of the directory where PHP-FPM sockets are located.").Strings() + statusPath = kingpin.Flag("phpfpm.status-path", "Path which has been configured in PHP-FPM to show status page.").Default("/status").String() + scriptCollectorPaths = kingpin.Flag("phpfpm.script-collector-paths", "Paths of the PHP file whose output needs to be collected.").Strings() socketConnectionTimeout = kingpin.Flag("phpfpm.connection-timeout", "Connection timeout for PHP-FPM sockets.").Duration() socketOperationTimeout = kingpin.Flag("phpfpm.operation-timeout", "Read/write operation timeout for PHP-FPM sockets.").Duration() - showVersion = kingpin.Flag("version", "Print version information.").Bool() + showVersion = kingpin.Flag("version", "Print version information.").Bool() ) kingpin.CommandLine.HelpFlag.Short('h') From b05f940282906bd75ec9edb9ebd11fb4983c3723 Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Fri, 26 Apr 2024 09:57:15 +0200 Subject: [PATCH 5/8] trying to fix CI whitespaces --- phpfpm_exporter.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/phpfpm_exporter.go b/phpfpm_exporter.go index 1784759..e3e66ee 100644 --- a/phpfpm_exporter.go +++ b/phpfpm_exporter.go @@ -227,18 +227,18 @@ func CollectMetricsFromScript(socketPaths []*SocketPath, connectTimeout time.Dur } type PhpfpmExporter struct { - socketPaths []*SocketPath - connectTimeout time.Duration - operationTimeout time.Duration - statusPath string + socketPaths []*SocketPath + connectTimeout time.Duration + operationTimeout time.Duration + statusPath string } func NewPhpfpmExporter(socketPaths []*SocketPath, connectTimeout time.Duration, operationTimeout time.Duration, statusPath string) (*PhpfpmExporter, error) { return &PhpfpmExporter{ - socketPaths: socketPaths, - connectTimeout: connectTimeout, - operationTimeout: operationTimeout, - statusPath: statusPath, + socketPaths: socketPaths, + connectTimeout: connectTimeout, + operationTimeout: operationTimeout, + statusPath: statusPath, }, nil } From 4f209a68b3ca0ddca301fe452707c9d38758262f Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Fri, 26 Apr 2024 10:04:30 +0200 Subject: [PATCH 6/8] commit mod and sum go files --- go.mod | 1 + go.sum | 2 ++ 2 files changed, 3 insertions(+) diff --git a/go.mod b/go.mod index b099200..e3c2c20 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/Lusitaniae/phpfpm_exporter go 1.16 require ( + github.com/kanocz/fcgi_client v0.0.0-20210113082628-fff85c8adfb7 github.com/prometheus/client_golang v1.10.0 github.com/prometheus/client_model v0.2.0 github.com/prometheus/common v0.27.0 diff --git a/go.sum b/go.sum index a6553d8..547e0e9 100644 --- a/go.sum +++ b/go.sum @@ -210,6 +210,8 @@ github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/X github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kanocz/fcgi_client v0.0.0-20210113082628-fff85c8adfb7 h1:W0fAsQ7bC1db4k9O2X6yZvatz/0c/ISyxhmNnc6arZA= +github.com/kanocz/fcgi_client v0.0.0-20210113082628-fff85c8adfb7/go.mod h1:dHpIS7C6YjFguh5vo9QBVEojDoL3vh3v6oEho2HtNyA= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= From 0e55f8c04c8b827b9a2fb31fdb779672458a30d4 Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Fri, 26 Apr 2024 10:11:59 +0200 Subject: [PATCH 7/8] remove tomasen dep --- go.mod | 1 - 1 file changed, 1 deletion(-) diff --git a/go.mod b/go.mod index e3c2c20..17b30c5 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,5 @@ require ( github.com/prometheus/client_golang v1.10.0 github.com/prometheus/client_model v0.2.0 github.com/prometheus/common v0.27.0 - github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19 gopkg.in/alecthomas/kingpin.v2 v2.2.6 ) From eebf7586ea1ea3db862db181e21fe5fab5ad3ff9 Mon Sep 17 00:00:00 2001 From: Jakub Pinkas Date: Fri, 26 Apr 2024 10:12:19 +0200 Subject: [PATCH 8/8] remove tomasen dep --- go.sum | 2 -- 1 file changed, 2 deletions(-) diff --git a/go.sum b/go.sum index 547e0e9..6821c96 100644 --- a/go.sum +++ b/go.sum @@ -333,8 +333,6 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19 h1:ZCmSnT6CLGhfoQ2lPEhL4nsJstKDCw1F1RfN8/smTCU= -github.com/tomasen/fcgi_client v0.0.0-20180423082037-2bb3d819fd19/go.mod h1:SXTY+QvI+KTTKXQdg0zZ7nx0u94QWh8ZAwBQYsW9cqk= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=