mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Merge pull request #158 from linux-on-ibm-z/cross-compile
Edited Makefile to add cross build support for s390x. Adding External Metrics Provider
This commit is contained in:
commit
c2e176bb23
17 changed files with 1913 additions and 1 deletions
27
pkg/external-provider/errors.go
Normal file
27
pkg/external-provider/errors.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package provider
|
||||
|
||||
import "errors"
|
||||
|
||||
// NewOperatorNotSupportedByPrometheusError creates an error that represents the fact that we were requested to service a query that
|
||||
// Prometheus would be unable to support.
|
||||
func NewOperatorNotSupportedByPrometheusError() error {
|
||||
return errors.New("operator not supported by prometheus")
|
||||
}
|
||||
|
||||
// NewOperatorRequiresValuesError creates an error that represents the fact that we were requested to service a query
|
||||
// that was malformed in its operator/value combination.
|
||||
func NewOperatorRequiresValuesError() error {
|
||||
return errors.New("operator requires values")
|
||||
}
|
||||
|
||||
// NewOperatorDoesNotSupportValuesError creates an error that represents the fact that we were requested to service a query
|
||||
// that was malformed in its operator/value combination.
|
||||
func NewOperatorDoesNotSupportValuesError() error {
|
||||
return errors.New("operator does not support values")
|
||||
}
|
||||
|
||||
// NewLabelNotSpecifiedError creates an error that represents the fact that we were requested to service a query
|
||||
// that was malformed in its label specification.
|
||||
func NewLabelNotSpecifiedError() error {
|
||||
return errors.New("label not specified")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue