Skip to content

Commit c5c0d01

Browse files
committed
grafana cloud
1 parent bccaade commit c5c0d01

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -o errexit
3+
4+
if test -z "${GRAFANA_CLOUD_TOKEN}"; then
5+
echo "ERROR: GRAFANA_CLOUD_TOKEN is not set"
6+
exit 1
7+
fi
8+
9+
helm repo add grafana https://grafana.github.io/helm-charts
10+
helm --namespace=default upgrade --install --create-namespace \
11+
grafana-k8s-monitoring grafana/k8s-monitoring --version ^2 \
12+
--values values.yaml \
13+
--atomic --timeout=300s
+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
cluster:
2+
name: ploayground
3+
destinations:
4+
- name: grafana-cloud-metrics
5+
type: prometheus
6+
url: https://prometheus-us-central1.grafana.net/api/prom/push
7+
auth:
8+
type: basic
9+
username: "2160149"
10+
password: ${GRAFANA_CLOUD_TOKEN}
11+
- name: grafana-cloud-logs
12+
type: loki
13+
url: https://logs-prod-017.grafana.net/loki/api/v1/push
14+
auth:
15+
type: basic
16+
username: "497002"
17+
password: ${GRAFANA_CLOUD_TOKEN}
18+
- name: grafana-cloud-traces
19+
type: otlp
20+
url: https://tempo-us-central1.grafana.net:443
21+
protocol: grpc
22+
auth:
23+
type: basic
24+
username: "493514"
25+
password: ${GRAFANA_CLOUD_TOKEN}
26+
metrics:
27+
enabled: false
28+
logs:
29+
enabled: false
30+
traces:
31+
enabled: true
32+
- name: grafana-cloud-profiles
33+
type: pyroscope
34+
url: https://profiles-prod-003.grafana.net:443
35+
auth:
36+
type: basic
37+
username: "132323"
38+
password: ${GRAFANA_CLOUD_TOKEN}
39+
clusterMetrics:
40+
enabled: true
41+
opencost:
42+
enabled: false
43+
kepler:
44+
enabled: false
45+
annotationAutodiscovery:
46+
enabled: true
47+
prometheusOperatorObjects:
48+
enabled: true
49+
clusterEvents:
50+
enabled: true
51+
nodeLogs:
52+
enabled: true
53+
podLogs:
54+
enabled: true
55+
applicationObservability:
56+
enabled: true
57+
receivers:
58+
otlp:
59+
grpc:
60+
enabled: true
61+
port: 4317
62+
http:
63+
enabled: true
64+
port: 4318
65+
zipkin:
66+
enabled: true
67+
port: 9411
68+
autoInstrumentation:
69+
enabled: true
70+
profiling:
71+
enabled: true
72+
integrations:
73+
alloy:
74+
instances:
75+
- name: alloy
76+
labelSelectors:
77+
app.kubernetes.io/name:
78+
- alloy-metrics
79+
- alloy-singleton
80+
- alloy-logs
81+
- alloy-receiver
82+
- alloy-profiles
83+
alloy-metrics:
84+
enabled: true
85+
alloy-singleton:
86+
enabled: true
87+
alloy-logs:
88+
enabled: true
89+
alloy-receiver:
90+
enabled: true
91+
alloy:
92+
extraPorts:
93+
- name: otlp-grpc
94+
port: 4317
95+
targetPort: 4317
96+
protocol: TCP
97+
- name: otlp-http
98+
port: 4318
99+
targetPort: 4318
100+
protocol: TCP
101+
- name: zipkin
102+
port: 9411
103+
targetPort: 9411
104+
protocol: TCP
105+
alloy-profiles:
106+
enabled: true

0 commit comments

Comments
 (0)