-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add query expressions management by prom-adapter-config #560
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
24f5f89
add support for prom-adapter-config
saikey0379 632cfb9
configmap load and gofmt
saikey0379 ec5d5ad
errcheck
saikey0379 75a64ce
support prom-adapter regexp
saikey0379 71e982b
effiective MetricMatches
saikey0379 490bf5f
lint
saikey0379 d78ecb4
resourceMetrics reg matches
saikey0379 2c10ed3
merge
saikey0379 a8b3f77
merge
saikey0379 f1535dd
merge
saikey0379 a88b0c5
gofmt
saikey0379 122138d
reduce coupling and undelete tsp
saikey0379 52cfc8c
rebase
61842bd
container not nil
b8cb20c
prometheus-adapter-config-fetcher
f6ba1df
prometheus-adapter-config-fetcher
31e70b0
prometheus-adapter-config-fetcher
b5847fa
prometheus-adapter fix
933ebd7
import and unit test
9998388
golint
18caf24
load err for labelMatcher sort
9b6be3f
add configmap flags
cfcf7c4
golint
1edd060
rm extension-labels
e6ea343
code refine
qmhu 22d3d68
fix parsingRules
qmhu 8dfc96c
Merge pull request #3 from saikey0379/saikey-main
saikey0379 2322c33
merge
8dd1fe0
ut
f819756
lint
98d1e99
MetricMatches for Prometheus-adapter-config
4a9c9c7
gofmt
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ require ( | |
github.com/prometheus/client_golang v1.11.0 | ||
github.com/prometheus/common v0.26.0 | ||
github.com/shirou/gopsutil v3.21.10+incompatible | ||
github.com/spf13/cobra v1.1.3 | ||
github.com/spf13/cobra v1.2.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary? |
||
github.com/spf13/pflag v1.0.5 | ||
github.com/stretchr/testify v1.7.0 | ||
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f | ||
|
@@ -31,6 +31,7 @@ require ( | |
k8s.io/metrics v0.22.3 | ||
sigs.k8s.io/controller-runtime v0.10.2 | ||
sigs.k8s.io/custom-metrics-apiserver v1.22.0 | ||
sigs.k8s.io/prometheus-adapter v0.9.0 | ||
sigs.k8s.io/yaml v1.2.0 | ||
) | ||
|
||
|
@@ -45,7 +46,7 @@ require ( | |
github.com/tklauser/go-sysconf v0.3.9 // indirect | ||
github.com/zsais/go-gin-prometheus v0.1.0 | ||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c | ||
gopkg.in/gcfg.v1 v1.2.0 | ||
gopkg.in/gcfg.v1 v1.2.3 | ||
k8s.io/kube-openapi v0.0.0-20210817084001-7fbd8d59e5b8 // indirect | ||
) | ||
|
||
|
@@ -153,7 +154,7 @@ require ( | |
google.golang.org/appengine v1.6.7 // indirect | ||
gopkg.in/inf.v0 v0.9.1 // indirect | ||
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect | ||
gopkg.in/warnings.v0 v0.1.1 // indirect | ||
gopkg.in/warnings.v0 v0.1.2 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
howett.net/plist v1.0.0 // indirect | ||
|
@@ -175,7 +176,6 @@ require ( | |
github.com/lithammer/fuzzysearch v1.1.5 | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/robfig/cron/v3 v3.0.1 | ||
github.com/spf13/afero v1.6.0 // indirect | ||
go.etcd.io/etcd/client/v2 v2.305.1 // indirect | ||
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce // indirect | ||
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if opts.DataSourcePromConfig.AdapterConfigMap != "" || opts.DataSourcePromConfig.AdapterConfig != "" {
init()
}