Skip to content

Commit

Permalink
tempo-mixin: add metrics-generator to Tempo / Resources and Operation…
Browse files Browse the repository at this point in the history
…al (#1313)

* tempo-mixin: add metrics-generator to Tempo / Resources

* tempo-mixin: add metrics-generator to Tempo / Operational
  • Loading branch information
Koenraad Verheyden authored Feb 28, 2022
1 parent 642f15f commit 00198ac
Show file tree
Hide file tree
Showing 5 changed files with 346 additions and 14 deletions.
1 change: 1 addition & 0 deletions operations/tempo-mixin/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
query_frontend: 'query-frontend',
querier: 'querier',
ingester: 'ingester',
metrics_generator: 'metrics-generator',
distributor: 'distributor',
compactor: 'compactor',
},
Expand Down
16 changes: 13 additions & 3 deletions operations/tempo-mixin/dashboards/tempo-operational.json
Original file line number Diff line number Diff line change
Expand Up @@ -5438,7 +5438,7 @@
"value": "tempo-ops"
},
"datasource": "$ds",
"definition": "label_values(kube_pod_container_info{image=~\".*tempo.*\", cluster=\"$cluster\"}, namespace)",
"definition": "label_values(tempo_build_info, namespace)",
"description": null,
"error": null,
"hide": 0,
Expand All @@ -5448,7 +5448,7 @@
"name": "namespace",
"options": [],
"query": {
"query": "label_values(kube_pod_container_info{image=~\".*tempo.*\", cluster=\"$cluster\"}, namespace)",
"query": "label_values(tempo_build_info, namespace)",
"refId": "ops-cortex-namespace-Variable-Query"
},
"refresh": 1,
Expand Down Expand Up @@ -5495,6 +5495,16 @@
"text": "ingester",
"value": "ingester"
},
{
"selected": false,
"text": "metrics-generator",
"value": "metrics-generator"
},
{
"selected": false,
"text": "query-frontend",
"value": "query-frontend"
},
{
"selected": false,
"text": "querier",
Expand All @@ -5506,7 +5516,7 @@
"value": "cortex-gw"
}
],
"query": "compactor,distributor,ingester,querier,cortex-gw",
"query": "compactor,distributor,ingester,metrics-generator,query-frontend,querier,cortex-gw",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
Expand Down
12 changes: 12 additions & 0 deletions operations/tempo-mixin/dashboards/tempo-resources.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ dashboard_utils {
$.goHeapInUsePanel('Memory (go heap inuse)', $.jobMatcher($._config.jobs.ingester)),
)
)
.addRow(
g.row('Metrics-generator')
.addPanel(
$.containerCPUUsagePanel('CPU', $._config.jobs.metrics_generator),
)
.addPanel(
$.containerMemoryWorkingSetPanel('Memory (workingset)', $._config.jobs.metrics_generator),
)
.addPanel(
$.goHeapInUsePanel('Memory (go heap inuse)', $.jobMatcher($._config.jobs.metrics_generator)),
)
)
.addRow(
g.row('Query Frontend')
.addPanel(
Expand Down
16 changes: 13 additions & 3 deletions operations/tempo-mixin/yamls/tempo-operational.json
Original file line number Diff line number Diff line change
Expand Up @@ -6040,7 +6040,7 @@
"value": "tempo-ops"
},
"datasource": "$ds",
"definition": "label_values(kube_pod_container_info{image=~\".*tempo.*\", cluster=\"$cluster\"}, namespace)",
"definition": "label_values(tempo_build_info, namespace)",
"description": null,
"error": null,
"hide": 0,
Expand All @@ -6052,7 +6052,7 @@

],
"query": {
"query": "label_values(kube_pod_container_info{image=~\".*tempo.*\", cluster=\"$cluster\"}, namespace)",
"query": "label_values(tempo_build_info, namespace)",
"refId": "ops-cortex-namespace-Variable-Query"
},
"refresh": 1,
Expand Down Expand Up @@ -6099,6 +6099,16 @@
"text": "ingester",
"value": "ingester"
},
{
"selected": false,
"text": "metrics-generator",
"value": "metrics-generator"
},
{
"selected": false,
"text": "query-frontend",
"value": "query-frontend"
},
{
"selected": false,
"text": "querier",
Expand All @@ -6110,7 +6120,7 @@
"value": "cortex-gw"
}
],
"query": "compactor,distributor,ingester,querier,cortex-gw",
"query": "compactor,distributor,ingester,metrics-generator,query-frontend,querier,cortex-gw",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
Expand Down
Loading

0 comments on commit 00198ac

Please sign in to comment.