diff --git a/charts/meta-monitoring/values.yaml b/charts/meta-monitoring/values.yaml index 254fff4..0b9a9ba 100644 --- a/charts/meta-monitoring/values.yaml +++ b/charts/meta-monitoring/values.yaml @@ -1,12 +1,11 @@ # Specify the namespaces to monitor here namespacesToMonitor: - loki -- mimir -- tempo # The name of the cluster where this will be installed clusterLabelValue: "meta-monitoring" # Set to true to write logs, metrics or traces to Grafana Cloud +# The secrets have to be created first cloud: logs: enabled: true diff --git a/docs/installation.md b/docs/installation.md index 091a318..1f39125 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -126,3 +126,41 @@ ``` helm delete -n meta meta ``` + +## Installing the dashboards and rules on Grafana Cloud + +## Installing the dashboards on Grafana Cloud + +For each of the dashboard files in charts/meta-monitoring/src/dashboards do the following: + +1. Click on 'Dashboards' in Grafana + +1. Click on the 'New` button and select 'Import' + +1. Drop the dashboard file to the 'Upload dashboard JSON file' drop area + +1. Click 'Import' + +Only the files for the application monitored have to be copied. When monitoring Loki import dashboard files starting with 'loki-'. + +## Installing the rules on Grafana Cloud + +1. Select the rules files in charts/meta-monitoring/src/rules for the application to monitor. When monitoring Loki use loki-rules.yaml. + +1. Install mimirtool as per the [instructions](https://grafana.com/docs/mimir/latest/manage/tools/mimirtool/) + +1. Create an access policy with Read and Write permission for Rules. Also create a token and record the token. + +1. Get your cloud Prometheus endpoint and Instance ID from the `Prometheus` page in `Stacks`. + +1. Use them to load the rules using mimirtool as follows: + + ``` + mimirtool rules load --address= --id= --key= *.yaml + ``` + +1. To check the rules you have uploaded run: + + ``` + mimirtool rules print --address= --id= --key= + ``` \ No newline at end of file