Skip to content

Commit

Permalink
fix: celerySelector filter
Browse files Browse the repository at this point in the history
When deploying kube-prometheus and using PodMonitors the resulting job
name is "<namespace>/celery-exporter". This job name fails the regex
filter applied in the Grafana dashboard.
  • Loading branch information
danihodovic committed Oct 12, 2024
1 parent b4302ce commit 5ed56be
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion celery-mixin/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local annotation = g.dashboard.annotation;
{
_config+:: {
// Selectors are inserted between {} in Prometheus queries.
celerySelector: 'job=~"celery|celery-exporter"',
celerySelector: 'job=~".*celery.*"',

grafanaUrl: 'https://grafana.com',

Expand Down
10 changes: 5 additions & 5 deletions celery-mixin/dashboards_out/celery-tasks-by-task.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}
]
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -209,7 +209,7 @@
}
]
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -281,7 +281,7 @@
"sort": "desc"
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -380,7 +380,7 @@
"sort": "desc"
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -478,7 +478,7 @@
"sort": "desc"
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down
24 changes: 12 additions & 12 deletions celery-mixin/dashboards_out/celery-tasks-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
]
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -110,7 +110,7 @@
]
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -159,7 +159,7 @@
]
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -212,7 +212,7 @@
]
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -261,7 +261,7 @@
]
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -323,7 +323,7 @@
}
]
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -384,7 +384,7 @@
}
]
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -466,7 +466,7 @@
}
]
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -548,7 +548,7 @@
"sort": "desc"
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -614,7 +614,7 @@
}
]
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -764,7 +764,7 @@
"sort": "desc"
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -910,7 +910,7 @@
"sort": "desc"
}
},
"pluginVersion": "v11.0.0",
"pluginVersion": "v11.1.0",
"targets": [
{
"datasource": {
Expand Down

0 comments on commit 5ed56be

Please sign in to comment.