Skip to content
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 support for prom-adapter overrides #664

Merged
merged 8 commits into from
Jan 16, 2023
Merged

add support for prom-adapter overrides #664

merged 8 commits into from
Jan 16, 2023

Conversation

saikey0379
Copy link
Contributor

@saikey0379 saikey0379 commented Dec 22, 2022

What type of PR is this?

add support for prom-adapter overrides

for example:

    - seriesQuery: 'metric_example'
      resources:
        overrides:
          pod_namespace: {resource: "namespace"}
          pod_name: {resource: "pod"}
        namespaced: true
      metricsQuery: 'sum(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>)'

sum(metric_example{namespace="test",pod=~"test-.*"}) 

to 
sum(metric_example{pod_namespace="test",pod_name=~"test-.*"}) 

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@github-actions github-actions bot added area:autoscaling documentation Improvements or additions to documentation labels Dec 22, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2022

🎉 Successfully Build Images.
Now Support ARM Platforms.
Comment Post Time: 2023-01-16 11:50
Git Version: b07adc3

Docker Registry

Overview: https://hub.docker.com/u/gocrane

Image Pull Command
crane-agent:pr-664-b07adc3 docker pull gocrane/crane-agent:pr-664-b07adc3
dashboard:pr-664-b07adc3 docker pull gocrane/dashboard:pr-664-b07adc3
metric-adapter:pr-664-b07adc3 docker pull gocrane/metric-adapter:pr-664-b07adc3
craned:pr-664-b07adc3 docker pull gocrane/craned:pr-664-b07adc3

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=gocrane/craned \
                   --set craned.image.tag=pr-664-b07adc3 \
                   --set metricAdapter.image.repository=gocrane/metric-adapter \
                   --set metricAdapter.image.tag=pr-664-b07adc3 \
                   --set craneAgent.image.repository=gocrane/crane-agent \
                   --set craneAgent.image.tag=pr-664-b07adc3 \
                   --set cranedDashboard.image.repository=gocrane/dashboard \
                   --set cranedDashboard.image.tag=pr-664-b07adc3 crane/crane

Coding Registry

Overview: https://finops.coding.net/public-artifacts/gocrane/crane/packages

Image Pull Command
crane-agent:pr-664-b07adc3 docker pull finops-docker.pkg.coding.net/gocrane/crane/crane-agent:pr-664-b07adc3
dashboard:pr-664-b07adc3 docker pull finops-docker.pkg.coding.net/gocrane/crane/dashboard:pr-664-b07adc3
metric-adapter:pr-664-b07adc3 docker pull finops-docker.pkg.coding.net/gocrane/crane/metric-adapter:pr-664-b07adc3
craned:pr-664-b07adc3 docker pull finops-docker.pkg.coding.net/gocrane/crane/craned:pr-664-b07adc3

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=finops-docker.pkg.coding.net/gocrane/crane/craned \
                   --set craned.image.tag=pr-664-b07adc3 \
                   --set metricAdapter.image.repository=finops-docker.pkg.coding.net/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-664-b07adc3 \
                   --set craneAgent.image.repository=finops-docker.pkg.coding.net/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-664-b07adc3 \
                   --set cranedDashboard.image.repository=finops-docker.pkg.coding.net/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-664-b07adc3 crane/crane

Ghcr Registry

Overview: https://github.com/orgs/gocrane/packages?repo_name=crane

Image Pull Command
crane-agent:pr-664-b07adc3 docker pull ghcr.io/gocrane/crane/crane-agent:pr-664-b07adc3
dashboard:pr-664-b07adc3 docker pull ghcr.io/gocrane/crane/dashboard:pr-664-b07adc3
metric-adapter:pr-664-b07adc3 docker pull ghcr.io/gocrane/crane/metric-adapter:pr-664-b07adc3
craned:pr-664-b07adc3 docker pull ghcr.io/gocrane/crane/craned:pr-664-b07adc3

Quick Deploy - Helm

helm repo add crane https://finops-helm.pkg.coding.net/gocrane/gocrane
helm install crane -n crane-system --create-namespace \
                   --set craned.image.repository=ghcr.io/gocrane/crane/craned \
                   --set craned.image.tag=pr-664-b07adc3 \
                   --set metricAdapter.image.repository=ghcr.io/gocrane/crane/metric-adapter \
                   --set metricAdapter.image.tag=pr-664-b07adc3 \
                   --set craneAgent.image.repository=ghcr.io/gocrane/crane/crane-agent \
                   --set craneAgent.image.tag=pr-664-b07adc3 \
                   --set cranedDashboard.image.repository=ghcr.io/gocrane/crane/dashboard \
                   --set cranedDashboard.image.tag=pr-664-b07adc3 crane/crane

@qmhu qmhu merged commit 623a356 into gocrane:main Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autoscaling documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants