Skip to content

Commit

Permalink
Merge pull request #139 from qclaogui/alloy-1.1.1
Browse files Browse the repository at this point in the history
bump to grafana/alloy:v1.1.1
  • Loading branch information
qclaogui authored May 31, 2024
2 parents f7cddb5 + a75d612 commit b27b394
Show file tree
Hide file tree
Showing 23 changed files with 535 additions and 509 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ALLOY_CONFIG_FILES_IN_DOCKER = $(subst ./, /data/, $(ALLOY_CONFIG_FILES))
fmt: ## Uses Grafana Alloy to fmt the config
@for c in $(ALLOY_CONFIG_FILES_IN_DOCKER); do \
echo "$$c"; \
docker run --rm --volume "$(shell pwd):/data" -u $(shell id -u) grafana/alloy:v1.0.0 fmt -w $$c ; \
docker run --rm --volume "$(shell pwd):/data" -u $(shell id -u) grafana/alloy:v1.1.1 fmt -w $$c ; \
done

##@ Docker compose
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/common/compose-include/alloy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
alloy:
depends_on: { gateway: { condition: service_healthy } }
image: ${ALLOY_IMAGE:-docker.io/grafana/alloy:v1.0.0}
image: ${ALLOY_IMAGE:-docker.io/grafana/alloy:v1.1.1}
configs:
- source: alloy_config_file
target: /etc/alloy/config.alloy
Expand Down
2 changes: 1 addition & 1 deletion docker-compose/common/config/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ALLOY_IMAGE=grafana/alloy:v1.0.0
ALLOY_IMAGE=grafana/alloy:v1.1.1
AGENT_IMAGE=grafana/agent:v0.40.3
LOKI_IMAGE=grafana/loki:3.0.0
GRAFANA_IMAGE=grafana/grafana:11.0.0
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/common/alloy/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace: monitoring-system
helmCharts:
- name: alloy
repo: https://grafana.github.io/helm-charts
version: 0.3.1
version: 0.3.2
releaseName: alloy
namespace: monitoring-system
includeCRDs: false
Expand Down
50 changes: 26 additions & 24 deletions kubernetes/common/alloy/manifests/k8s-all-in-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy
namespace: monitoring-system
---
Expand All @@ -21,8 +21,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy
rules:
- apiGroups:
Expand Down Expand Up @@ -125,8 +125,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down Expand Up @@ -4302,8 +4302,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy
namespace: monitoring-system
spec:
Expand Down Expand Up @@ -4343,8 +4343,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy-cluster
namespace: monitoring-system
spec:
Expand Down Expand Up @@ -4383,8 +4383,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy
namespace: monitoring-system
spec:
Expand Down Expand Up @@ -4437,7 +4437,7 @@ spec:
- secretRef:
name: alloy-env
optional: true
image: docker.io/grafana/alloy:v1.1.0
image: docker.io/grafana/alloy:v1.1.1
imagePullPolicy: IfNotPresent
name: alloy
ports:
Expand Down Expand Up @@ -4508,7 +4508,7 @@ metadata:
namespace: monitoring-system
spec:
groups:
- name: clustering
- name: alloy_clustering
rules:
- alert: ClusterNotConverging
annotations:
Expand All @@ -4524,8 +4524,8 @@ spec:
split brain state.
expr: |
sum without (state) (cluster_node_peers) !=
on (cluster, namespace) group_left
count by (cluster, namespace) (cluster_node_info)
on (cluster, namespace, job) group_left
count by (cluster, namespace, job) (cluster_node_info)
for: 15m
- alert: ClusterNodeUnhealthy
annotations:
Expand All @@ -4551,7 +4551,7 @@ spec:
message: Cluster nodes are not using the same configuration file.
expr: |
count without (sha256) (
max by (cluster, namespace, sha256) (alloy_config_hash and on(cluster, namespace) cluster_node_info)
max by (cluster, namespace, sha256, job) (alloy_config_hash and on(cluster, namespace) cluster_node_info)
) > 1
for: 5m
- name: alloy_controller
Expand All @@ -4568,17 +4568,19 @@ spec:
expr: sum by (cluster, namespace) (alloy_component_controller_running_components{health_type!="healthy"})
> 0
for: 15m
- name: otelcol
- name: alloy_otelcol
rules:
- alert: OtelcolReceiverRefusedSpans
annotations:
message: The receiver could not push some spans to the pipeline.
expr: sum(rate(receiver_refused_spans_ratio_total{}[1m])) > 0
expr: sum by (cluster, namespace) (rate(receiver_refused_spans_ratio_total{}[1m]))
> 0
for: 5m
- alert: OtelcolExporterFailedSpans
annotations:
message: The exporter failed to send spans to their destination.
expr: sum(rate(exporter_send_failed_spans_ratio_total{}[1m])) > 0
expr: sum by (cluster, namespace) (rate(exporter_send_failed_spans_ratio_total{}[1m]))
> 0
for: 5m
---
apiVersion: monitoring.coreos.com/v1
Expand All @@ -4590,8 +4592,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy
namespace: monitoring-system
spec:
Expand All @@ -4613,8 +4615,8 @@ metadata:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: alloy
app.kubernetes.io/part-of: alloy
app.kubernetes.io/version: v1.1.0
helm.sh/chart: alloy-0.3.1
app.kubernetes.io/version: v1.1.1
helm.sh/chart: alloy-0.3.2
name: alloy
namespace: monitoring-system
spec:
Expand Down
Loading

0 comments on commit b27b394

Please sign in to comment.