Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 0 additions & 85 deletions integration_tests/ingress_metrics.lua

This file was deleted.

2 changes: 1 addition & 1 deletion internal/cmd/api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func ConfigureGraph(

setupContext := func(ctx context.Context) context.Context {
ctx = podlog.NewLoaderContext(ctx, podLogStreamer)
ctx = application.NewLoaderContext(ctx, watchers.AppWatcher, watchers.IngressWatcher, prometheusClient, log)
ctx = application.NewLoaderContext(ctx, watchers.AppWatcher, watchers.IngressWatcher, log)
ctx = bigquery.NewLoaderContext(ctx, watchers.BqWatcher)
ctx = bucket.NewLoaderContext(ctx, watchers.BucketWatcher)
ctx = job.NewLoaderContext(ctx, watchers.JobWatcher, watchers.RunWatcher)
Expand Down
21 changes: 0 additions & 21 deletions internal/graph/applications.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,6 @@ func (r *ingressResolver) Type(ctx context.Context, obj *application.Ingress) (a
return application.GetIngressType(ctx, obj), nil
}

func (r *ingressResolver) Metrics(ctx context.Context, obj *application.Ingress) (*application.IngressMetrics, error) {
return &application.IngressMetrics{
Ingress: obj,
}, nil
}

func (r *ingressMetricsResolver) RequestsPerSecond(ctx context.Context, obj *application.IngressMetrics) (float64, error) {
return application.RequestsPerSecondForIngress(ctx, obj)
}

func (r *ingressMetricsResolver) ErrorsPerSecond(ctx context.Context, obj *application.IngressMetrics) (float64, error) {
return application.ErrorsPerSecondForIngress(ctx, obj)
}

func (r *ingressMetricsResolver) Series(ctx context.Context, obj *application.IngressMetrics, input application.IngressMetricsInput) ([]*application.IngressMetricSample, error) {
return application.SeriesForIngress(ctx, obj, input)
}

func (r *mutationResolver) DeleteApplication(ctx context.Context, input application.DeleteApplicationInput) (*application.DeleteApplicationPayload, error) {
if err := authz.CanDeleteApplications(ctx, input.TeamSlug); err != nil {
return nil, err
Expand Down Expand Up @@ -225,8 +207,6 @@ func (r *Resolver) DeleteApplicationPayload() gengql.DeleteApplicationPayloadRes

func (r *Resolver) Ingress() gengql.IngressResolver { return &ingressResolver{r} }

func (r *Resolver) IngressMetrics() gengql.IngressMetricsResolver { return &ingressMetricsResolver{r} }

func (r *Resolver) RestartApplicationPayload() gengql.RestartApplicationPayloadResolver {
return &restartApplicationPayloadResolver{r}
}
Expand All @@ -241,7 +221,6 @@ type (
applicationInstanceResolver struct{ *Resolver }
deleteApplicationPayloadResolver struct{ *Resolver }
ingressResolver struct{ *Resolver }
ingressMetricsResolver struct{ *Resolver }
restartApplicationPayloadResolver struct{ *Resolver }
updateApplicationPayloadResolver struct{ *Resolver }
)
Loading
Loading