-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: generic api to run promql query for metrics #2073
Merged
Merged
Changes from 8 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
28b7ca0
wip: generic api to run promql query
adarsh0728 403edbf
POST request instead of GET in the routes map
adarsh0728 6db86ae
Merge branch 'main' into query-metrics
adarsh0728 0d5ac1b
config changes: pick promehteus server url from config
adarsh0728 3d110dc
Merge branch 'main' into query-metrics
adarsh0728 60b9bc3
error handling and added counter metrics to map
adarsh0728 0af4076
handled lint warning
adarsh0728 a2af479
fix: unit test
adarsh0728 2933002
Merge branch 'main' into query-metrics
adarsh0728 97f0631
new design impl
adarsh0728 2b38568
Merge branch 'main' into query-metrics
adarsh0728 348cce1
minor fixes
adarsh0728 c641f84
Refactor: Map abstracted to struct and updated route/config names for…
adarsh0728 8b494f8
merge main branch
adarsh0728 2c68985
feat: new promql builder implementation
adarsh0728 6e91261
revert last commit and refactoring
adarsh0728 b3e76ba
Merge branch 'dbt' into query-metrics
adarsh0728 7bb09f2
interfaces: promql as a service
adarsh0728 1063201
refactor: promql builder to promql service
adarsh0728 02aa2b6
added unit tests for prom ql service
adarsh0728 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,12 @@ metadata: | |
name: numaflow-cmd-params-config | ||
--- | ||
apiVersion: v1 | ||
data: null | ||
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. null? |
||
kind: ConfigMap | ||
metadata: | ||
name: numaflow-metric-server-config | ||
--- | ||
apiVersion: v1 | ||
data: | ||
admin.enabled: "true" | ||
kind: ConfigMap | ||
|
@@ -268,6 +274,12 @@ spec: | |
key: server.daemon.client.protocol | ||
name: numaflow-cmd-params-config | ||
optional: true | ||
- name: NUMAFLOW_SERVER_PROMETHEUS_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
key: metric.server.url | ||
name: numaflow-metric-server-config | ||
optional: true | ||
image: quay.io/numaproj/numaflow:latest | ||
imagePullPolicy: Always | ||
livenessProbe: | ||
|
@@ -323,6 +335,12 @@ spec: | |
key: server.disable.auth | ||
name: numaflow-cmd-params-config | ||
optional: true | ||
- name: NUMAFLOW_SERVER_PROMETHEUS_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
key: url | ||
name: numaflow-metric-server-config | ||
optional: true | ||
image: quay.io/numaproj/numaflow:latest | ||
imagePullPolicy: Always | ||
name: server-secrets-init | ||
|
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
7 changes: 7 additions & 0 deletions
7
config/base/numaflow-server/numaflow-metric-server-config.yaml
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: numaflow-metric-server-config | ||
data: | ||
### The address of the Prometheus server. This is required for querying metrics from the server. | ||
# metric.server.url: "http://localhost:9090" |
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
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
Oops, something went wrong.
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.
Instead of using args, please mount the configmap as a volume.