Skip to content

Commit c3558df

Browse files
Merge pull request #753 from codacy/bump/loki-version
Bump/Monitoring versions
2 parents 54c2d2c + 5ab1be3 commit c3558df

2 files changed

Lines changed: 20 additions & 18 deletions

File tree

.do/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,23 @@ deploy_monitoring: #set_cluster_context
112112
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
113113
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
114114

115-
helm repo add loki https://grafana.github.io/loki/charts
115+
helm repo add grafana https://grafana.github.io/helm-charts
116116
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
117117
helm repo update
118118
-kubectl create namespace monitoring
119119

120-
helm upgrade --install --atomic --timeout 600s loki loki/loki \
121-
--version 2.1.1 --namespace monitoring --values ../docs/values-files/values-loki.yaml
120+
helm upgrade --install --atomic --timeout 600s loki grafana/loki \
121+
--version 2.14.1 --namespace monitoring --values ../docs/values-files/values-loki.yaml
122122

123-
helm upgrade --install --atomic --timeout 600s promtail loki/promtail \
124-
--version 2.0.2 --namespace monitoring --values values-promtail.yaml
123+
helm upgrade --install --atomic --timeout 600s promtail grafana/promtail \
124+
--version 2.2.0 --namespace monitoring --values values-promtail.yaml
125125

126126
@sed -i "s#<--- slack-api-url --->#$$SLACK_API_URL_ALERTS_SELFHOSTED#g;" values-prometheus-operator.yaml
127127
@sed -i "s/<--- slack-channel --->/$$SLACK_ALERTS_SELFHOSTED_CHANNEL/g;" values-prometheus-operator.yaml
128128
@sed -i "s#<--- grafana url --->#${GRAFANA_URL}#g; s#https://##g" ../docs/values-files/values-prometheus-operator.yaml
129129

130130
helm upgrade --install --atomic --timeout 1600s monitoring prometheus-community/kube-prometheus-stack \
131-
--version 39.1.0 --namespace monitoring --values ../docs/values-files/values-prometheus-operator.yaml --values values-prometheus-operator.yaml\
131+
--version 39.9.0 --namespace monitoring --values ../docs/values-files/values-prometheus-operator.yaml --values values-prometheus-operator.yaml\
132132
--set grafana.adminPassword=$$GRAFANA_ADMIN_PASSWORD \
133133
--set grafana.ingress.hosts='{grafana.k8s.dev.codacy.org}' \
134134
--set alertmanager.ingress.hosts='{alerts.k8s.dev.codacy.org}' \

docs/configuration/monitoring.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,27 @@ The instructions below cover the basic installation of these monitoring services
6363
Add the custom resources required for installing the monitoring bundle in your cluster:
6464

6565
```bash
66-
kubectl apply -f "https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml"
67-
kubectl apply -f "https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml"
68-
kubectl apply -f "https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml"
69-
kubectl apply -f "https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml"
70-
kubectl apply -f "https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml"
71-
kubectl apply -f "https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml"
66+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml
67+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
68+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
69+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_probes.yaml
70+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
71+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
72+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
73+
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.58.0/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
7274
```
7375

7476
### 2. Installing Loki
7577

7678
Obtain the configuration file for Loki, [`values-loki.yaml`](../values-files/values-loki.yaml), and install it by running the command below. While the default storage class setting for Loki persistence should suit most use cases, you may need to adjust it to your specific Kubernetes installation. For instance, for MicroK8s use `storageClassName: microk8s-hostpath`.
7779

7880
```bash
79-
helm repo add loki https://grafana.github.io/loki/charts
81+
helm repo add grafana https://grafana.github.io/helm-charts
8082
8183
kubectl create namespace monitoring
8284
83-
helm upgrade --install --atomic --timeout 600s loki loki/loki \
84-
--version 0.28.1 --namespace monitoring --values values-loki.yaml
85+
helm upgrade --install --atomic --timeout 600s loki grafana/loki \
86+
--version 2.14.1 --namespace monitoring --values values-loki.yaml
8587
```
8688

8789
### 3. Installing Promtail
@@ -91,8 +93,8 @@ Promtail is an agent that ships the contents of local logs to a Loki instance.
9193
Obtain the configuration file for Promtail, [`values-promtail.yaml`](../values-files/values-promtail.yaml), and install it by running the command below.
9294

9395
```bash
94-
helm upgrade --install --atomic --timeout 600s promtail loki/promtail \
95-
--version 0.22.2 --namespace monitoring --values values-promtail.yaml
96+
helm upgrade --install --atomic --timeout 600s promtail grafana/promtail \
97+
--version 2.2.0 --namespace monitoring --values values-promtail.yaml
9698
9799
```
98100

@@ -109,7 +111,7 @@ helm repo add prometheus-community https://prometheus-community.github.io/helm-c
109111
helm repo update
110112
111113
helm upgrade --install --atomic --timeout 600s monitoring prometheus-community/kube-prometheus-stack \
112-
--version 9.4.3 --namespace monitoring --values values-prometheus-operator.yaml
114+
--version 39.9.0 --namespace monitoring --values values-prometheus-operator.yaml
113115
```
114116

115117
Grafana will be available on the domain you configured in your `values-prometheus-operator.yaml` file, with Prometheus and Loki configured as datasources. Follow the [Kubernetes documentation](https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-services/#accessing-services-running-on-the-cluster) if you need to access other monitoring services that are now running on your cluster, using the method that best suits your use case.

0 commit comments

Comments
 (0)