Skip to content

Commit

Permalink
remove 'app' and 'namespace' labels from remotewrite nginx graphs (#486)
Browse files Browse the repository at this point in the history
* remove 'app' and 'namespace' labels from remotewrite nginx graphs

* merge with main

* remove duplicate in changelog
  • Loading branch information
QuantumEnigmaa authored Apr 10, 2024
1 parent 561a0f9 commit c5d383f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Remove `app` and `namespace` labels from the prometheus - remotewrite's nginx graphs.

### Fixed

- Fix cpu throttling panel in prometheus dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(rate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n namespace=~\"($cluster)-prometheus\",\n app=~\"nginx-ingress-controller.*\",\n ingress=~\"prometheus-($cluster)-remote-write\",\n status!~\"[4-5].*\"}[$__rate_interval]\n)) by (ingress, host, path, method) / \nsum(rate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n namespace=~\"($cluster)-prometheus\",\n app=~\"nginx-ingress-controller.*\",\n ingress=~\"prometheus-($cluster)-remote-write\"}[$__rate_interval]\n)) by (ingress, host, path, method)",
"expr": "sum(rate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n ingress=~\"prometheus-($cluster)-remote-write\",\n status!~\"[4-5].*\"}[$__rate_interval]\n)) by (ingress, host, path, method) / \nsum(rate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n ingress=~\"prometheus-($cluster)-remote-write\"}[$__rate_interval]\n)) by (ingress, host, path, method)",
"hide": false,
"instant": false,
"interval": "2m",
Expand All @@ -176,7 +176,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(irate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n namespace=~\"($cluster)-prometheus\",\n app=~\"nginx-ingress-controller.*\",\n ingress=~\"prometheus-($cluster)-remote-write\"}[$__rate_interval]\n)) by (ingress, host, path, method)",
"expr": "sum(irate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n ingress=~\"prometheus-($cluster)-remote-write\"}[$__rate_interval]\n)) by (ingress, host, path, method)",
"hide": false,
"instant": false,
"interval": "2m",
Expand Down Expand Up @@ -276,7 +276,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "sum(irate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n namespace=~\"($cluster)-prometheus\",\n app=~\"nginx-ingress-controller.*\",\n ingress=~\"prometheus-($cluster)-remote-write\",\n status!~\"[2].*\"}[$__rate_interval]\n)) by (ingress, host, path, method, status)",
"expr": "sum(irate(nginx_ingress_controller_requests{\n cluster_type=~\"management_cluster\",\n ingress=~\"prometheus-($cluster)-remote-write\",\n status!~\"[2].*\"}[$__rate_interval]\n)) by (ingress, host, path, method, status)",
"instant": false,
"interval": "2m",
"legendFormat": "{{ingress}} - {{status}} for {{method}} {{host}}{{path}}",
Expand Down

0 comments on commit c5d383f

Please sign in to comment.