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

o11y2022のダッシュボード無効化 #61

Closed
sharasoujyu opened this issue Jul 3, 2022 · 5 comments
Closed

o11y2022のダッシュボード無効化 #61

sharasoujyu opened this issue Jul 3, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@sharasoujyu
Copy link

sharasoujyu commented Jul 3, 2022

What we want:

It's unclear. We need discussion.

  • o11y2022のダッシュボードのデータは無くなっているため
    コメントアウトする。

How we do it:

It's unclear. We need discussion.

Anything else:

@b1gb4by
Copy link
Member

b1gb4by commented Jul 6, 2022

現状、一度追加したものは手動で消すしかない
cloudnativedaysjp/dreamkast-infra#1536 (comment)

@b1gb4by
Copy link
Member

b1gb4by commented Jul 6, 2022

上記の通り手動削除処理を実行し、本番環境から削除されたのは確認できた.

Screen Shot 2022-07-06 at 22 47 29

@b1gb4by
Copy link
Member

b1gb4by commented Jul 6, 2022

その後、kubectl rollout restart sts grafanaでGrafanaを再起動したがダッシュボードは消えていなかった.

ログにでていないか確認したが、ダッシュボードに関するエラーは特にでていなかった.

Name:         grafana-0
Namespace:    monitoring
...
Events:
  Type     Reason     Age   From               Message
  ----     ------     ----  ----               -------
  Normal   Scheduled  48m   default-scheduler  Successfully assigned monitoring/grafana-0 to ip-10-0-177-159.ap-northeast-1.compute.internal
  Normal   Pulled     48m   kubelet            Container image "busybox:1.31.1" already present on machine
  Normal   Created    48m   kubelet            Created container init-chown-data
  Normal   Started    48m   kubelet            Started container init-chown-data
  Normal   Pulled     48m   kubelet            Container image "curlimages/curl:7.73.0" already present on machine
  Normal   Created    48m   kubelet            Created container download-dashboards
  Normal   Started    48m   kubelet            Started container download-dashboards
  Normal   Pulled     48m   kubelet            Container image "grafana/grafana:8.4.6" already present on machine
  Normal   Created    48m   kubelet            Created container grafana
  Normal   Started    48m   kubelet            Started container grafana
  Warning  Unhealthy  48m   kubelet            Readiness probe failed: Get "http://10.0.137.162:3000/api/health": dial tcp 10.0.137.162:3000: connect: connection refused

Pod 内のログを確認したが、errorログは存在せず、warningログは以下のみであった.

logger=settings t=2022-07-06T13:40:48.75+0000 lvl=warn msg="falling back to legacy setting of 'min_interval_seconds'; please use the configuration option in the `unified_alerting` section if Grafana 8 alerts are enabled."
logger=sqlstore t=2022-07-06T13:40:48.75+0000 lvl=warn msg="SQLite database file has broader permissions than it should" path=/var/lib/grafana/grafana.db mode=-rw-rw---- expected=-rw-r-----

@b1gb4by
Copy link
Member

b1gb4by commented Jul 6, 2022

試しに、UI上で削除したいダッシュボードを削除したところ成功.

リロードをしても、削除したダッシュボードは復元されなかった.

ひとまずは、上記の問題は解消された.

@b1gb4by
Copy link
Member

b1gb4by commented Jul 8, 2022

上記問題は解決できたのでクローズします.

@b1gb4by b1gb4by closed this as completed Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants