Skip to content

Commit

Permalink
Merge pull request #26 from friedrichg/use-cortexproject-mixin
Browse files Browse the repository at this point in the history
Use new cortexproject mixin
  • Loading branch information
paulfantom authored Oct 30, 2023
2 parents 085c6a9 + c47f671 commit 3fa58af
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions assets/cortex/dashboards/cortex-queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(cortex_cache_hits{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) / sum(rate(cortex_cache_fetched_keys{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m]))",
"expr": "sum(rate(cortex_cache_hits{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) / sum(rate(cortex_cache_fetched_keys{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) or\nsum(rate(cortex_cache_hits_total{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) / sum(rate(cortex_cache_fetched_keys_total{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m]))\n",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
Expand Down Expand Up @@ -676,7 +676,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(cortex_cache_fetched_keys{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) - sum(rate(cortex_cache_hits{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m]))",
"expr": "sum(rate(cortex_cache_fetched_keys{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) - sum(rate(cortex_cache_hits{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) or\nsum(rate(cortex_cache_fetched_keys_total{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m])) - sum(rate(cortex_cache_hits_total{name=~\"frontend.+\", cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\"}[1m]))\n",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
Expand Down Expand Up @@ -1028,7 +1028,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(cortex_cache_fetched_keys{cluster=~\"$cluster\", job=~\"($namespace)/(querier.*|cortex$)\",name=\"chunksmemcache\"}[1m])) - sum(rate(cortex_cache_hits{cluster=~\"$cluster\", job=~\"($namespace)/(querier.*|cortex$)\",name=\"chunksmemcache\"}[1m]))",
"expr": "sum(rate(cortex_cache_fetched_keys{cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\",name=\"chunksmemcache\"}[1m])) - sum(rate(cortex_cache_hits{cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\",name=\"chunksmemcache\"}[1m])) or\nsum(rate(cortex_cache_fetched_keys_total{cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\",name=\"chunksmemcache\"}[1m])) - sum(rate(cortex_cache_hits_total{cluster=~\"$cluster\", job=~\"($namespace)/(query-frontend.*|cortex$)\",name=\"chunksmemcache\"}[1m]))\n",
"format": "time_series",
"interval": "15s",
"intervalFactor": 2,
Expand Down
2 changes: 1 addition & 1 deletion mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
{
"name": "cortex",
"source": "https://github.com/grafana/cortex-jsonnet",
"source": "https://github.com/cortexproject/cortex-jsonnet",
"subdir": "cortex-mixin"
},
{
Expand Down
2 changes: 1 addition & 1 deletion site/content/cortex/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: cortex


{{< panel style="danger" >}}
Jsonnet source code is available at [github.com/grafana/cortex-jsonnet](https://github.com/grafana/cortex-jsonnet/tree/master/cortex-mixin)
Jsonnet source code is available at [github.com/cortexproject/cortex-jsonnet](https://github.com/cortexproject/cortex-jsonnet/tree/master/cortex-mixin)
{{< /panel >}}

## Alerts
Expand Down
2 changes: 1 addition & 1 deletion site/static/mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
{
"name": "cortex",
"source": "https://github.com/grafana/cortex-jsonnet",
"source": "https://github.com/cortexproject/cortex-jsonnet",
"subdir": "cortex-mixin"
},
{
Expand Down

0 comments on commit 3fa58af

Please sign in to comment.