Skip to content

Commit

Permalink
Remove obsolete values
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Oct 10, 2024
1 parent 786c451 commit 86435a3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/hsp-observability-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: hsp-observability-agent
version: 0.1.9
version: 0.2.0
5 changes: 2 additions & 3 deletions charts/hsp-observability-agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hsp-observability-agent

![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square)
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square)

Grafana Alloy is a vendor-neutral distribution of the OpenTelemetry (OTel) Collector.
Alloy uniquely combines the very best OSS observability signals in the community.
Expand All @@ -26,8 +26,7 @@ This helm chart should be deployed using kustomize.
| api_key.secret | string | `"hsp-observability"` | Secret containing a `key` field with your API key |
| awsAccountId | string | `""` | |
| awsRegion | string | `""` | |
| cluster.name | string | `"fake"` | Cluster Name |
| cluster.namespace | string | `"hsp-observability"` | Namespace in which to deploy manifests |
| clusterName | string | `"changeme"` | |
| controller.autoscaling | object | `{"enabled":true,"max_replicas":6,"min_replicas":1,"scaledownwindow":300,"scaleupwindow":10,"utilization":{"cpu":80,"memory":80}}` | Configure Horizontal Pod Autoscaler(HPA) for Alloy |
| controller.autoscaling.enabled | bool | `true` | Enable/disable autoscaling |
| controller.autoscaling.utilization | object | `{"cpu":80,"memory":80}` | Criteria for autoscaling - CPU or Memory. By default it uses 80% memory utilization as the trigger to autoscale |
Expand Down
10 changes: 5 additions & 5 deletions charts/hsp-observability-agent/config/config.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ prometheus.relabel "local" {
action = "replace"
source_labels = ["service"]
target_label = "cluster"
replacement = {{ .Values.cluster.name | quote }}
replacement = {{ .Values.clusterName | quote }}
}
rule {
action = "replace"
Expand All @@ -281,21 +281,21 @@ otelcol.processor.transform {{ .name | quote }} {
log_statements {
context = "log"
statements = [
"set(resource.attributes[\"k8s.cluster.name\"], \"{{ $.Values.cluster.name }}\")", // Label
"set(resource.attributes[\"k8s.clusterName\"], \"{{ $.Values.clusterName }}\")", // Label
"set(resource.attributes[\"k8s.container.name\"], attributes[\"pod_container_name\"])", // Label
"set(resource.attributes[\"service.namespace\"], attributes[\"namespace\"])", // Label
"set(resource.attributes[\"service.name\"], attributes[\"service_name\"])", // Label
"set(resource.attributes[\"cluster\"], \"{{ $.Values.cluster.name }}\")", // Label
"set(resource.attributes[\"cluster\"], \"{{ $.Values.clusterName }}\")", // Label
"set(resource.attributes[\"namespace\"], attributes[\"namespace\"])", // Label
"set(attributes[\"cluster_name\"], \"{{ $.Values.cluster.name }}\")",
"set(attributes[\"clusterName\"], \"{{ $.Values.clusterName }}\")",
"set(resource.attributes[\"k8s.pod.name\"], attributes[\"pod_name\"])",
"set(attributes[\"component\"], attributes[\"app_kubernetes_io_component\"])",
]
}
metric_statements {
context = "datapoint"
statements = [
"set(attributes[\"cluster\"], \"{{ $.Values.cluster.name }}\")",
"set(attributes[\"cluster\"], \"{{ $.Values.clusterName }}\")",
]
}
output {
Expand Down
2 changes: 1 addition & 1 deletion charts/hsp-observability-agent/templates/alloy-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
{{- (tpl (.Files.Get "config/alloy-values.yaml") .) | nindent 8 }}
destination:
server: "https://kubernetes.default.svc"
namespace: {{ .Values.cluster.namespace | quote }}
namespace: hsp-observability
syncPolicy:
automated:
prune: true
Expand Down
7 changes: 1 addition & 6 deletions charts/hsp-observability-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
resourcePrefix: ""
awsRegion: ""
awsAccountId: ""
clusterName: "changeme"

logging:
level: info
Expand All @@ -14,12 +15,6 @@ otlp:
# -- Use API key for authn
use_api_key: true

cluster:
# -- Cluster Name
name: fake
# -- Namespace in which to deploy manifests
namespace: hsp-observability

# -- API key for OTLP authn
api_key:
# -- Secret containing a `key` field with your API key
Expand Down

0 comments on commit 86435a3

Please sign in to comment.