Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix k8s permissions #133

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions examples/dashboards/receive-controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
{
"expr": "sum by (namespace, job) (rate(thanos_receive_controller_reconcile_attempts_total{namespace=\"$namespace\", job=\"$job\"}[$interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rate",
"legendLink": null
}
Expand Down Expand Up @@ -122,7 +121,6 @@
{
"expr": "sum by (namespace, job, type) (rate(thanos_receive_controller_reconcile_errors_total{namespace=\"$namespace\", job=\"$job\"}[$interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
"legendLink": null
}
Expand Down Expand Up @@ -209,7 +207,6 @@
{
"expr": "sum by (namespace, job) (rate(thanos_receive_controller_configmap_change_attempts_total{namespace=\"$namespace\", job=\"$job\"}[$interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "rate",
"legendLink": null
}
Expand Down Expand Up @@ -284,7 +281,6 @@
{
"expr": "sum by (namespace, job, type) (rate(thanos_receive_controller_configmap_change_errors_total{namespace=\"$namespace\", job=\"$job\"}[$interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
"legendLink": null
}
Expand Down Expand Up @@ -371,7 +367,6 @@
{
"expr": "sum by (namespace, job) (rate(thanos_receive_hashrings_file_changes_total{job=~\"thanos-receive-default.*\"}[$interval]))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "all",
"legendLink": null
}
Expand Down Expand Up @@ -536,14 +531,12 @@
{
"expr": "avg by (namespace, job, name) (thanos_receive_controller_hashring_nodes{namespace=\"$namespace\", job=\"$job\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "receive controller {{name}}",
"legendLink": null
},
{
"expr": "avg by (namespace, job, name) (thanos_receive_hashring_nodes{job=~\"thanos-receive-default.*\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "receive {{name}}",
"legendLink": null
}
Expand Down Expand Up @@ -618,14 +611,12 @@
{
"expr": "avg by (namespace, job, name) (thanos_receive_controller_hashring_tenants{namespace=\"$namespace\", job=\"$job\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "receive controller {{name}}",
"legendLink": null
},
{
"expr": "avg by (namespace, job, name) (thanos_receive_hashring_tenants{job=~\"thanos-receive-default.*\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "receive {{name}}",
"legendLink": null
}
Expand Down Expand Up @@ -716,7 +707,6 @@
"expr": "time() - max by (namespace, job) (thanos_receive_controller_configmap_last_reload_success_timestamp_seconds{namespace=\"$namespace\", job=\"$job\"})",
"format": "time_series",
"instant": true,
"intervalFactor": 2,
"refId": "A"
}
],
Expand Down Expand Up @@ -794,7 +784,6 @@
"expr": "time() - max by (namespace, job) (thanos_receive_config_last_reload_success_timestamp_seconds{namespace=\"$namespace\", job=\"$job\"})",
"format": "time_series",
"instant": true,
"intervalFactor": 2,
"refId": "A"
}
],
Expand Down Expand Up @@ -857,7 +846,7 @@
"value": "default"
},
"hide": 0,
"label": "Data Source",
"label": "Data source",
"name": "datasource",
"options": [ ],
"query": "prometheus",
Expand Down
1 change: 1 addition & 0 deletions examples/manifests/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ rules:
resources:
- pods
verbs:
- list
- get
- update
- apiGroups:
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/lib/thanos-receive-controller.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function(params) {
{
apiGroups: [''],
resources: ['pods'],
verbs: ['get', 'update'],
verbs: ['list', 'get', 'update'],
},
{
apiGroups: ['apps'],
Expand Down
Loading