Skip to content

Commit

Permalink
Use caracol collections based on nginx_http_response_codes_total for …
Browse files Browse the repository at this point in the history
…gateway plots (#83)
  • Loading branch information
iand authored Nov 21, 2023
1 parent 045259a commit c74f620
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/plotdefs/gateway-requests-daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ datasets:
- name: "Bifrost total requests by day"
source: "caracol"
query: >
select date, value from get_collected_values(4, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
select date, value from get_collected_values(19, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
series:
- type: "bar"
Expand Down
2 changes: 1 addition & 1 deletion config/plotdefs/gateway-requests-overall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ datasets:
- name: "Bifrost total requests by day"
source: "caracol"
query: >
select date, value from get_collected_values(4, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
select date, value from get_collected_values(19, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
series:
- type: "bar"
Expand Down
8 changes: 4 additions & 4 deletions config/plotdefs/gateway-requests-region.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ datasets:
- name: "europe"
source: "caracol"
query: >
select date, value from get_collected_values(5, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
select date, value from get_collected_values(13, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
- name: "asia se"
source: "caracol"
query: >
select date, value from get_collected_values(6, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
select date, value from get_collected_values(14, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
- name: "na east"
source: "caracol"
query: >
select date, value from get_collected_values(7, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
select date, value from get_collected_values(15, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
- name: "na west"
source: "caracol"
query: >
select date, value from get_collected_values(8, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
select date, value from get_collected_values(16, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
series:
- type: "bar"
Expand Down

0 comments on commit c74f620

Please sign in to comment.