+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tanka/environments/mop-central/config.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ local common = import 'common.libsonnet';
local k = import 'k.libsonnet';

{
config: {
namespace: common.namespace,
config:: {
namespaces: [
k.core.v1.namespace.new(common.namespace),
k.core.v1.namespace.new('linkerd'),
Expand Down
7 changes: 7 additions & 0 deletions tanka/environments/mop-central/grafana.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ local common = import 'common.libsonnet';
url: 'http://tempo-query-frontend.monitoring.svc.cluster.local:3100',
isDefault: false,
},
{
name: 'Mimir',
type: 'prometheus',
access: 'proxy',
url: 'http://mimir-query-frontend.monitoring.svc.cluster.local:8080/prometheus',
isDefault: false,
},
],
},
},
Expand Down
12 changes: 6 additions & 6 deletions tanka/environments/mop-central/loki.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ local common = import 'common.libsonnet';
conf={
namespace: 'monitoring',
values: {
deploymentMode: 'SimpleScalable',
deploymentMode: 'SingleBinary',
loki: {
auth_enabled: false,
commonConfig: {
replication_factor: 2,
replication_factor: 1,
},
storage: {
type: 'filesystem',
Expand All @@ -34,16 +34,16 @@ local common = import 'common.libsonnet';
},
},
singleBinary: {
replicas: 0,
replicas: 1,
},
read: {
replicas: 2,
replicas: 0,
},
write: {
replicas: 2,
replicas: 0,
},
backend: {
replicas: 2,
replicas: 0,
},
},
}
Expand Down
9 changes: 7 additions & 2 deletions tanka/environments/mop-central/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ local common = import 'common.libsonnet';
local config = import 'config.jsonnet';
local eso = import 'eso.jsonnet';
local grafana = import 'grafana.jsonnet';
local k = import 'k.libsonnet';
local linkerd = import 'linkerd.jsonnet';
local loki = import 'loki.jsonnet';
local mimir = import 'mimir.jsonnet';
local prometheus = import 'prometheus.jsonnet';
local tempo = import 'tempo.jsonnet';

{
config: config.config,
config + {
namespaces: [
k.core.v1.namespace.new(common.namespace),
k.core.v1.namespace.new('linkerd'),
k.core.v1.namespace.new('monitoring'),
],
backstage: backstage.backstage,
eso: eso.eso,
grafana: grafana.grafana,
Expand Down
41 changes: 40 additions & 1 deletion tanka/environments/mop-central/mimir.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,46 @@ local common = import 'common.libsonnet';
conf={
namespace: 'monitoring',
values: {

mimir: {
structuredConfig: {
multitenancy_enabled: false,
ingester: {
ring: {
zone_awareness_enabled: false,
},
},
store_gateway: {
sharding_ring: {
zone_awareness_enabled: false,
},
},
usage_stats: {
enabled: false,
},
},
},
// Disable zone-aware replication at chart level
ingester: {
zoneAwareReplication: {
enabled: false,
},
},
store_gateway: {
zoneAwareReplication: {
enabled: false,
},
},
// Use distributed mode with separate components
minio: {
enabled: true,
},
// Use S3-compatible storage (MinIO) for distributed mode
backend: 's3',
metaMonitoring: {
serviceMonitor: {
enabled: true,
},
},
},
}
),
Expand Down
6 changes: 3 additions & 3 deletions tanka/environments/mop-central/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"apiVersion": "tanka.dev/v1alpha1",
"kind": "Environment",
"metadata": {
"name": "minikube"
"name": "mop-central"
},
"spec": {
"contextNames": [
"minikube"
"orbstack"
],
"namespace": "default",
"namespace": "monitoring",
"resourceDefaults": {},
"expectVersions": {}
}
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载