Skip to content

Commit d5c9061

Browse files
authored
Merge pull request #40 from memphisdev/staging
1.3.1
2 parents 8d7680f + 31d1f90 commit d5c9061

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-10
lines changed

environments/default.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
helmVersion: 0.2.1 # Define the version of the superstream helm chart.
1+
helmVersion: 0.2.3 # Define the version of the superstream helm chart.
22
namespace: superstream # Specify the Kubernetes namespace where the resources will be deployed, isolating them within this designated namespace.
33
name: <DATAPLANE_NAME> # Define the data plane name within 32 characters, excluding '.', and using only letters, numbers, '-', and '_'.
44
accountId: "" # Provide the account ID that is associated with the deployment, which could be used for identifying resources or configurations tied to a specific account.
55
activationToken: "" # Enter the activation token required for services or resources that need an initial token for activation or authentication.
6-
monitoringToken: "" # Observability token

helmfile.yaml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ environments:
1717
- natsReleaseName: nats # Set the release name for the NATS deployment, which is used to uniquely identify the set of resources deployed for NATS.
1818
- superstreamReleaseName: superstream # Specify the release name for the Superstream deployment, uniquely identifying the resources for Superstream.
1919
- telegrafReleaseName: telegraf # Define the release name for the Telegraf deployment, used for identifying the Telegraf resources in the cluster.
20+
- natsHelmVersion: 1.1.10
21+
- telegrafHelmVersion: 1.8.43
2022
- controlPlane: broker.superstream.dev # Indicate the control plane configuration or identifier, which may include settings specific to the cluster's control plane.
2123
- releaseDate: 2024-02-28-12-43
2224

@@ -30,7 +32,7 @@ releases:
3032
installed: true
3133
namespace: {{ .Values.namespace }}
3234
chart: nats/nats
33-
version: 1.1.10
35+
version: {{ .Values.natsHelmVersion }}
3436
values:
3537
- container:
3638
env:
@@ -71,8 +73,11 @@ releases:
7173
installed: true
7274
namespace: {{ .Values.namespace }}
7375
chart: influxdata/telegraf
74-
version: 1.8.43
76+
version: {{ .Values.telegrafHelmVersion }}
7577
values:
78+
- metrics:
79+
internal:
80+
collect_memstats: true
7681
- rbac:
7782
rules:
7883
- apiGroups: [""]
@@ -85,20 +90,39 @@ releases:
8590
outputs:
8691
- influxdb_v2:
8792
urls:
88-
- "https://influxdb.mgmt.memphis-gcp.dev"
93+
- "https://superstream-monitoring.mgmt.memphis-gcp.dev"
8994
organization: "superstream"
9095
bucket: "logs"
9196
content_encoding: "gzip"
92-
token: "{{ .Values.monitoringToken }}"
97+
http_headers:
98+
Authorization: "{{ .Values.activationToken }}"
9399
namepass: ["syslog"]
94100
- influxdb_v2:
95101
urls:
96-
- "https://influxdb.mgmt.memphis-gcp.dev"
102+
- "https://superstream-monitoring.mgmt.memphis-gcp.dev"
97103
organization: "superstream"
98104
bucket: "metrics"
99105
content_encoding: "gzip"
100-
token: "{{ .Values.monitoringToken }}"
101-
namedrop: ["syslog"]
106+
http_headers:
107+
Authorization: "{{ .Values.activationToken }}"
108+
namedrop: ["syslog"]
109+
processors:
110+
- enum:
111+
mapping:
112+
field: "status"
113+
dest: "status_code"
114+
value_mappings:
115+
healthy: 1
116+
problem: 2
117+
critical: 3
118+
- starlark:
119+
namepass: ["syslog"]
120+
source: |
121+
def apply(metric):
122+
unique_str = metric.name + str(metric.fields) + str(metric.tags)
123+
random_value = str(hash(unique_str))[-8:]
124+
metric.tags['eventId'] = random_value
125+
return metric
102126
inputs:
103127
- syslog:
104128
server: "udp://:6514"
@@ -112,6 +136,10 @@ releases:
112136
monitor_kubernetes_pods_port: 7777
113137
tags:
114138
accountId: "{{ .Values.accountId }}_{{ .Values.name }}"
139+
- internal:
140+
tags:
141+
accountId: "{{ .Values.accountId }}_{{ .Values.name }}"
142+
chart: "telegraf-{{ .Values.telegrafHelmVersion }}"
115143

116144
- name: {{ .Values.superstreamReleaseName }}
117145
installed: true
@@ -122,6 +150,7 @@ releases:
122150
- config.yaml
123151
- superstream:
124152
environment: {{ .Values.name }}
153+
ha: {{ .Values.haDeployment }}
125154
- dataPlane:
126155
secret:
127156
activationToken: {{ .Values.activationToken }}

version.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.0
1+
1.4.0

0 commit comments

Comments
 (0)