You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gy...@apache.org on 2022/09/29 18:01:41 UTC
[flink-kubernetes-operator] branch main updated: [docs] Prometheus/Grafana credentials via command
This is an automated email from the ASF dual-hosted git repository.
gyfora pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 77e6f656 [docs] Prometheus/Grafana credentials via command
77e6f656 is described below
commit 77e6f656311c18f9036c01826f3e9f59229ee540
Author: Matyas Orhidi <ma...@apple.com>
AuthorDate: Wed Sep 28 13:29:08 2022 +0200
[docs] Prometheus/Grafana credentials via command
---
docs/content/docs/operations/metrics-logging.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/docs/content/docs/operations/metrics-logging.md b/docs/content/docs/operations/metrics-logging.md
index d9dabeed..602f31eb 100644
--- a/docs/content/docs/operations/metrics-logging.md
+++ b/docs/content/docs/operations/metrics-logging.md
@@ -134,6 +134,12 @@ The Grafana dashboard can be accessed through port-forwarding:
```shell
kubectl port-forward deployment/prometheus-grafana 3000
```
+The credentials for the dashboard can be retrieved by:
+```bash
+kubectl get secret prometheus-grafana -o jsonpath="{.data.admin-user}" | base64 --decode ; echo
+kubectl get secret prometheus-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
+```
+
To enable the operator metrics in Prometheus create a `pod-monitor.yaml` file with the following content:
```yaml
apiVersion: monitoring.coreos.com/v1