Grafana Alloy (Platform) Installation
This content is not available in your language yet.
Grafana Alloy (Platform) is a Metrics/Logs Gathering from Kubernetes Cluster and its Workloads
Grafana Alloy (Platform) will be installed on 🟢 Management 🟦 Non-Production Workload 🟥 Production Workload
Pre-Installation
Section titled “Pre-Installation”Grafana Alloy (Platform) Preparation
Section titled “Grafana Alloy (Platform) Preparation”-
Set Common Configuration across Kubernetes Clusters
Set Feeding Endpoints for Metrics/Logs
Ensure
GRAFANA_MIMIR_DOMAIN,GRAFANA_LOKI_DOMAINare defined as per the Shell Variables guide.export ALLOY_COLLECT_TENANT_ID="opstella-platform" ## Tenant ID when pushing metrics/logs -
Create Helm Values Configuration, create for
🟢 ManagementKubernetes Clusterexport CLUSTER_NAME="management"export GRAFANA_ALLOY_CLUSTER_NAME="k8s-cluster-${CLUSTER_NAME}"Terminal window cat <<EOF > $HOME/opstella-installation/helm-values/grafana-alloy-platform-management-full-values.yamlcluster:# -- The name for this cluster.# @section -- Clustername: "${GRAFANA_ALLOY_CLUSTER_NAME}"## CHART_NOTE: Given from v1 to v2 Migration Tool## - kubernetesAPIService is not used in the new chart.######################################################################################################################## Destinations## -- The list of destinations where telemetry data will be sent.# See the [destinations documentation](https://github.com/grafana/k8s-monitoring-helm/blob/main/charts/k8s-monitoring/docs/destinations/README.md) for more information.# @section -- Destinationsdestinations:## OPSTELLA_CUSTOMIZE: Destination to Mimir and Loki- name: metricsServicetype: prometheusurl: https://${GRAFANA_MIMIR_DOMAIN}/api/v1/pushtenantId: "${ALLOY_COLLECT_TENANT_ID}"- name: logsServicetype: lokiurl: https://${GRAFANA_LOKI_DOMAIN}/loki/api/v1/pushtenantId: "${ALLOY_COLLECT_TENANT_ID}"######################################################################################################################## Features##########------------------------------------------------------------------------------------------##################### Metrics# -- Cluster Monitoring enables observability and monitoring for your Kubernetes Cluster itself.# Requires a destination that supports metrics.# To see the valid options, please see the [Cluster Monitoring feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-cluster-metrics).# @default -- Disabled# @section -- Features - Cluster MetricsclusterMetrics:## OPSTELLA_CUSTOMIZE: Enable Kubernetes Cluster Metricsenabled: true### Scraping Metrics Series ###kubelet:metricsTuning:useDefaultAllowList: trueincludeMetrics:- kubelet_volume_stats_available_bytes- kubelet_volume_stats_capacity_bytescadvisor:metricsTuning:useDefaultAllowList: trueincludeMetrics:- container_spec_memory_reservation_limit_bytes- container_cpu_usage_seconds_total- container_cpu_cfs_throttled_periods_total- container_cpu_cfs_periods_total- container_memory_usage_bytesapiServer:metricsTuning:useDefaultAllowList: truekube-state-metrics:deploy: false ## HELM: Sub-Chart Condition // Prometheus Kube-State-Metrics // Explicitly Deployenabled: falsemetricsTuning:useDefaultAllowList: trueincludeMetrics:- kube_deployment_created- kube_pod_status_ready- kube_pod_container_status_terminated- kube_pod_container_status_waiting- kube_pod_container_resource_requests_cpu_cores- kube_pod_container_resource_requests_memory_bytes- kube_persistentvolumeclaim_info- kube_persistentvolume_status_phase- kube_pod_container_status_restarts_total- kube_pod_container_status_ready- kube_pod_info- kube_persistentvolumeclaim_access_mode- kube_persistentvolumeclaim_status_phasenode-exporter:deploy: true ## HELM: Sub-Chart Condition // Prometheus Node-Exporter // Explicitly Deployenabled: true### --- ###nameOverride: "prometheus-node-exporter" ## OPSTELLA_CUSTOMIZE: Distinguish that is NOT under GrafanafullnameOverride: "prometheus-node-exporter" ## OPSTELLA_CUSTOMIZE: Distinguish that is NOT under GrafanametricsTuning:useDefaultAllowList: truewindows-exporter:deploy: false ## HELM/OPSTELLA_CUSTOMIZE: Sub-Chart Condition // Prometheus Windows-Exporter // Opstella doesn't (yet) support Windows Containers## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Annotation Autodiscovery enables gathering metrics from Kubernetes Pods and Services discovered by special annotations.# Requires a destination that supports metrics.# To see the valid options, please see the [Annotation Autodiscovery feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-annotation-autodiscovery).# @default -- Disabled# @section -- Features - Annotation AutodiscoveryannotationAutodiscovery:enabled: true## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Prometheus Operator Objects enables the gathering of metrics from objects like Probes, PodMonitors, and# ServiceMonitors. Requires a destination that supports metrics.# To see the valid options, please see the [Prometheus Operator Objects feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-prometheus-operator-objects).# @default -- Disabled# @section -- Features - Prometheus Operator ObjectsprometheusOperatorObjects:enabled: truecrds:deploy: true## CHART_NOTE: Given from v1 to v2 Migration Tool#### Collectors (Alloy instances)## An Alloy instance for collecting metrics.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-metrics:enabled: true## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Service Integrations enables gathering telemetry data for common services and applications deployed to Kubernetes.# To see the valid options, please see the [Service Integrations documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-integrations).# @default -- No integrations enabled# @section -- Features - Service Integrationsintegrations:alloy:instances:- name: alloylabelSelectors:app.kubernetes.io/name:- alloy-metricsmetrics:tuning:useDefaultAllowList: falseincludeMetrics:- alloy_build_info#########------------------------------------------------------------------------------------------##################### OPSTELLA_ASSUME Logs (Small Scale) - Kubernetes Cluster Events, etc.## That's why using Alloy as single instance deployment (alloy-singleton)## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Cluster events.# Requires a destination that supports logs.# To see the valid options, please see the [Cluster Events feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-cluster-events).# @default -- Disabled# @section -- Features - Cluster EventsclusterEvents:enabled: true## Collectors (Alloy instances)### CHART_NOTE: Given from v1 to v2 Migration Tool### An Alloy instance for data sources required to be deployed on a single replica.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-singleton:enabled: true#########------------------------------------------------------------------------------------------##################### OPSTELLA_ASSUME Logs (Large Scale) - Pod Logs, etc.## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Pod logs.# Requires a destination that supports logs.# To see the valid options, please see the [Pod Logs feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-pod-logs).# @default -- Disabled# @section -- Features - Pod LogspodLogs:enabled: true## Collectors (Alloy instances)### CHART_NOTE: Given from v1 to v2 Migration Tool### An Alloy instance for collecting log data.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-logs:enabled: true######################################################################################################################EOF -
Create Helm Values Configuration, create for
🟦 Non-Production WorkloadKubernetes Clusterexport CLUSTER_NAME="nonprod"export GRAFANA_ALLOY_CLUSTER_NAME="k8s-cluster-${CLUSTER_NAME}"Terminal window cat <<EOF > $HOME/opstella-installation/helm-values/grafana-alloy-platform-nonprod-full-values.yamlcluster:# -- The name for this cluster.# @section -- Clustername: "${GRAFANA_ALLOY_CLUSTER_NAME}"## CHART_NOTE: Given from v1 to v2 Migration Tool## - kubernetesAPIService is not used in the new chart.######################################################################################################################## Destinations## -- The list of destinations where telemetry data will be sent.# See the [destinations documentation](https://github.com/grafana/k8s-monitoring-helm/blob/main/charts/k8s-monitoring/docs/destinations/README.md) for more information.# @section -- Destinationsdestinations:## OPSTELLA_CUSTOMIZE: Destination to Mimir and Loki- name: metricsServicetype: prometheusurl: https://${GRAFANA_MIMIR_DOMAIN}/api/v1/pushtenantId: "${ALLOY_COLLECT_TENANT_ID}"- name: logsServicetype: lokiurl: https://${GRAFANA_LOKI_DOMAIN}/loki/api/v1/pushtenantId: "${ALLOY_COLLECT_TENANT_ID}"######################################################################################################################## Features##########------------------------------------------------------------------------------------------##################### Metrics# -- Cluster Monitoring enables observability and monitoring for your Kubernetes Cluster itself.# Requires a destination that supports metrics.# To see the valid options, please see the [Cluster Monitoring feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-cluster-metrics).# @default -- Disabled# @section -- Features - Cluster MetricsclusterMetrics:## OPSTELLA_CUSTOMIZE: Enable Kubernetes Cluster Metricsenabled: true### Scraping Metrics Series ###kubelet:metricsTuning:useDefaultAllowList: trueincludeMetrics:- kubelet_volume_stats_available_bytes- kubelet_volume_stats_capacity_bytescadvisor:metricsTuning:useDefaultAllowList: trueincludeMetrics:- container_spec_memory_reservation_limit_bytes- container_cpu_usage_seconds_total- container_cpu_cfs_throttled_periods_total- container_cpu_cfs_periods_total- container_memory_usage_bytesapiServer:metricsTuning:useDefaultAllowList: truekube-state-metrics:deploy: false ## HELM: Sub-Chart Condition // Prometheus Kube-State-Metrics // Explicitly Deployenabled: falsemetricsTuning:useDefaultAllowList: trueincludeMetrics:- kube_deployment_created- kube_pod_status_ready- kube_pod_container_status_terminated- kube_pod_container_status_waiting- kube_pod_container_resource_requests_cpu_cores- kube_pod_container_resource_requests_memory_bytes- kube_persistentvolumeclaim_info- kube_persistentvolume_status_phase- kube_pod_container_status_restarts_total- kube_pod_container_status_ready- kube_pod_info- kube_persistentvolumeclaim_access_mode- kube_persistentvolumeclaim_status_phasenode-exporter:deploy: true ## HELM: Sub-Chart Condition // Prometheus Node-Exporter // Explicitly Deployenabled: true### --- ###nameOverride: "prometheus-node-exporter" ## OPSTELLA_CUSTOMIZE: Distinguish that is NOT under GrafanafullnameOverride: "prometheus-node-exporter" ## OPSTELLA_CUSTOMIZE: Distinguish that is NOT under GrafanametricsTuning:useDefaultAllowList: truewindows-exporter:deploy: false ## HELM/OPSTELLA_CUSTOMIZE: Sub-Chart Condition // Prometheus Windows-Exporter // Opstella doesn't (yet) support Windows Containers## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Annotation Autodiscovery enables gathering metrics from Kubernetes Pods and Services discovered by special annotations.# Requires a destination that supports metrics.# To see the valid options, please see the [Annotation Autodiscovery feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-annotation-autodiscovery).# @default -- Disabled# @section -- Features - Annotation AutodiscoveryannotationAutodiscovery:enabled: true## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Prometheus Operator Objects enables the gathering of metrics from objects like Probes, PodMonitors, and# ServiceMonitors. Requires a destination that supports metrics.# To see the valid options, please see the [Prometheus Operator Objects feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-prometheus-operator-objects).# @default -- Disabled# @section -- Features - Prometheus Operator ObjectsprometheusOperatorObjects:enabled: truecrds:deploy: true## CHART_NOTE: Given from v1 to v2 Migration Tool#### Collectors (Alloy instances)## An Alloy instance for collecting metrics.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-metrics:enabled: true## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Service Integrations enables gathering telemetry data for common services and applications deployed to Kubernetes.# To see the valid options, please see the [Service Integrations documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-integrations).# @default -- No integrations enabled# @section -- Features - Service Integrationsintegrations:alloy:instances:- name: alloylabelSelectors:app.kubernetes.io/name:- alloy-metricsmetrics:tuning:useDefaultAllowList: falseincludeMetrics:- alloy_build_info#########------------------------------------------------------------------------------------------##################### OPSTELLA_ASSUME Logs (Small Scale) - Kubernetes Cluster Events, etc.## That's why using Alloy as single instance deployment (alloy-singleton)## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Cluster events.# Requires a destination that supports logs.# To see the valid options, please see the [Cluster Events feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-cluster-events).# @default -- Disabled# @section -- Features - Cluster EventsclusterEvents:enabled: true## Collectors (Alloy instances)### CHART_NOTE: Given from v1 to v2 Migration Tool### An Alloy instance for data sources required to be deployed on a single replica.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-singleton:enabled: true#########------------------------------------------------------------------------------------------##################### OPSTELLA_ASSUME Logs (Large Scale) - Pod Logs, etc.## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Pod logs.# Requires a destination that supports logs.# To see the valid options, please see the [Pod Logs feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-pod-logs).# @default -- Disabled# @section -- Features - Pod LogspodLogs:enabled: true## Collectors (Alloy instances)### CHART_NOTE: Given from v1 to v2 Migration Tool### An Alloy instance for collecting log data.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-logs:enabled: true######################################################################################################################EOF -
Create Helm Values Configuration, create for
🟥 Production WorkloadKubernetes Clusterexport CLUSTER_NAME="prod"export GRAFANA_ALLOY_CLUSTER_NAME="k8s-cluster-${CLUSTER_NAME}"Terminal window cat <<EOF > $HOME/opstella-installation/helm-values/grafana-alloy-platform-prod-full-values.yamlcluster:# -- The name for this cluster.# @section -- Clustername: "${GRAFANA_ALLOY_CLUSTER_NAME}"## CHART_NOTE: Given from v1 to v2 Migration Tool## - kubernetesAPIService is not used in the new chart.######################################################################################################################## Destinations## -- The list of destinations where telemetry data will be sent.# See the [destinations documentation](https://github.com/grafana/k8s-monitoring-helm/blob/main/charts/k8s-monitoring/docs/destinations/README.md) for more information.# @section -- Destinationsdestinations:## OPSTELLA_CUSTOMIZE: Destination to Mimir and Loki- name: metricsServicetype: prometheusurl: https://${GRAFANA_MIMIR_DOMAIN}/api/v1/pushtenantId: "${ALLOY_COLLECT_TENANT_ID}"- name: logsServicetype: lokiurl: https://${GRAFANA_LOKI_DOMAIN}/loki/api/v1/pushtenantId: "${ALLOY_COLLECT_TENANT_ID}"######################################################################################################################## Features##########------------------------------------------------------------------------------------------##################### Metrics# -- Cluster Monitoring enables observability and monitoring for your Kubernetes Cluster itself.# Requires a destination that supports metrics.# To see the valid options, please see the [Cluster Monitoring feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-cluster-metrics).# @default -- Disabled# @section -- Features - Cluster MetricsclusterMetrics:## OPSTELLA_CUSTOMIZE: Enable Kubernetes Cluster Metricsenabled: true### Scraping Metrics Series ###kubelet:metricsTuning:useDefaultAllowList: trueincludeMetrics:- kubelet_volume_stats_available_bytes- kubelet_volume_stats_capacity_bytescadvisor:metricsTuning:useDefaultAllowList: trueincludeMetrics:- container_spec_memory_reservation_limit_bytes- container_cpu_usage_seconds_total- container_cpu_cfs_throttled_periods_total- container_cpu_cfs_periods_total- container_memory_usage_bytesapiServer:metricsTuning:useDefaultAllowList: truekube-state-metrics:deploy: false ## HELM: Sub-Chart Condition // Prometheus Kube-State-Metrics // Explicitly Deployenabled: falsemetricsTuning:useDefaultAllowList: trueincludeMetrics:- kube_deployment_created- kube_pod_status_ready- kube_pod_container_status_terminated- kube_pod_container_status_waiting- kube_pod_container_resource_requests_cpu_cores- kube_pod_container_resource_requests_memory_bytes- kube_persistentvolumeclaim_info- kube_persistentvolume_status_phase- kube_pod_container_status_restarts_total- kube_pod_container_status_ready- kube_pod_info- kube_persistentvolumeclaim_access_mode- kube_persistentvolumeclaim_status_phasenode-exporter:deploy: true ## HELM: Sub-Chart Condition // Prometheus Node-Exporter // Explicitly Deployenabled: true### --- ###nameOverride: "prometheus-node-exporter" ## OPSTELLA_CUSTOMIZE: Distinguish that is NOT under GrafanafullnameOverride: "prometheus-node-exporter" ## OPSTELLA_CUSTOMIZE: Distinguish that is NOT under GrafanametricsTuning:useDefaultAllowList: truewindows-exporter:deploy: false ## HELM/OPSTELLA_CUSTOMIZE: Sub-Chart Condition // Prometheus Windows-Exporter // Opstella doesn't (yet) support Windows Containers## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Annotation Autodiscovery enables gathering metrics from Kubernetes Pods and Services discovered by special annotations.# Requires a destination that supports metrics.# To see the valid options, please see the [Annotation Autodiscovery feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-annotation-autodiscovery).# @default -- Disabled# @section -- Features - Annotation AutodiscoveryannotationAutodiscovery:enabled: true## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Prometheus Operator Objects enables the gathering of metrics from objects like Probes, PodMonitors, and# ServiceMonitors. Requires a destination that supports metrics.# To see the valid options, please see the [Prometheus Operator Objects feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-prometheus-operator-objects).# @default -- Disabled# @section -- Features - Prometheus Operator ObjectsprometheusOperatorObjects:enabled: truecrds:deploy: true## CHART_NOTE: Given from v1 to v2 Migration Tool#### Collectors (Alloy instances)## An Alloy instance for collecting metrics.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-metrics:enabled: true## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Service Integrations enables gathering telemetry data for common services and applications deployed to Kubernetes.# To see the valid options, please see the [Service Integrations documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-integrations).# @default -- No integrations enabled# @section -- Features - Service Integrationsintegrations:alloy:instances:- name: alloylabelSelectors:app.kubernetes.io/name:- alloy-metricsmetrics:tuning:useDefaultAllowList: falseincludeMetrics:- alloy_build_info#########------------------------------------------------------------------------------------------##################### OPSTELLA_ASSUME Logs (Small Scale) - Kubernetes Cluster Events, etc.## That's why using Alloy as single instance deployment (alloy-singleton)## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Cluster events.# Requires a destination that supports logs.# To see the valid options, please see the [Cluster Events feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-cluster-events).# @default -- Disabled# @section -- Features - Cluster EventsclusterEvents:enabled: true## Collectors (Alloy instances)### CHART_NOTE: Given from v1 to v2 Migration Tool### An Alloy instance for data sources required to be deployed on a single replica.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-singleton:enabled: true#########------------------------------------------------------------------------------------------##################### OPSTELLA_ASSUME Logs (Large Scale) - Pod Logs, etc.## CHART_NOTE: Given from v1 to v2 Migration Tool### -- Pod logs.# Requires a destination that supports logs.# To see the valid options, please see the [Pod Logs feature documentation](https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/k8s-monitoring/charts/feature-pod-logs).# @default -- Disabled# @section -- Features - Pod LogspodLogs:enabled: true## Collectors (Alloy instances)### CHART_NOTE: Given from v1 to v2 Migration Tool### An Alloy instance for collecting log data.# To see additional valid options, please see the [Alloy Helm chart documentation](https://github.com/grafana/alloy/tree/main/operations/helm/charts/alloy).alloy-logs:enabled: true######################################################################################################################EOF
Helm Chart Preparation
Section titled “Helm Chart Preparation”-
Add Grafana Helm Repository
Terminal window helm repo add grafana https://grafana.github.io/helm-chartshelm repo update
Installation
Section titled “Installation”Load observability variables
Section titled “Load observability variables”source $HOME/opstella-installation/shell-values/tools/observability.vars.sh🟢 Management Kubernetes Cluster
Section titled “🟢 Management Kubernetes Cluster”Prepare Shell Variables
Section titled “Prepare Shell Variables”Ensure you have defined and loaded your Global Shell Variables as described in Shell Variables.
-
Install Grafana Alloy (Platform) on
🟢 ManagementKubernetes ClusterEnsure you have defined and loaded your Global Shell Variables as described in Shell Variables.
Terminal window source $HOME/opstella-installation/shell-values/kubernetes/management_cluster.vars.shTerminal window export KUBECONFIG="$HOME/opstella-installation/kubeconfigs/management_cluster.yaml" -
Install Grafana Alloy (Platform) on
🟢 ManagementKubernetes ClusterTerminal window helm upgrade --install grafana-alloy-platform grafana/k8s-monitoring \--version 2.0.16 \--namespace observability-agents \-f $HOME/opstella-installation/helm-values/grafana-alloy-platform-management-full-values.yaml
🟦 Non-Production Kubernetes Cluster
Section titled “🟦 Non-Production Kubernetes Cluster”-
Connect to
🟦 Non-ProductionKubernetes Cluster ; i.e w/ Kubeconfig FileEnsure you have defined and loaded your Global Shell Variables as described in Shell Variables.
Terminal window source $HOME/opstella-installation/shell-values/kubernetes/nonprod_cluster.vars.shTerminal window export KUBECONFIG="$HOME/opstella-installation/kubeconfigs/nonprod_cluster.yaml" -
Install Grafana Alloy (Platform) on
🟦 Non-ProductionKubernetes ClusterTerminal window helm upgrade --install grafana-alloy-platform grafana/k8s-monitoring \--version 2.0.16 \--namespace observability-agents \-f $HOME/opstella-installation/helm-values/grafana-alloy-platform-nonprod-full-values.yaml
🟥 Production Kubernetes Cluster
Section titled “🟥 Production Kubernetes Cluster”-
Connect to
🟥 ProductionKubernetes Cluster ; i.e w/ Kubeconfig FileEnsure you have defined and loaded your Global Shell Variables as described in Shell Variables.
Terminal window source $HOME/opstella-installation/shell-values/kubernetes/prod_cluster.vars.shTerminal window export KUBECONFIG="$HOME/opstella-installation/kubeconfigs/prod_cluster.yaml" -
Install Grafana Alloy (Platform) on
🟥 ProductionKubernetes ClusterTerminal window helm upgrade --install grafana-alloy-platform grafana/k8s-monitoring \--version 2.0.16 \--namespace observability-agents \-f $HOME/opstella-installation/helm-values/grafana-alloy-platform-prod-full-values.yaml
Post-Installation
Section titled “Post-Installation”Grafana Alloy (Platform) Testing
Section titled “Grafana Alloy (Platform) Testing”-
Get Pods Status
Terminal window kubectl get pods -n observability-agents💡 Grafana Alloy and all of sub-components should be
RunningNAME READY STATUS RESTARTS AGE... (deducted)grafana-alloy-platform-alloy-logs-XXXXXXX-YYYYY 1/1 Running 0 Xdgrafana-alloy-platform-alloy-logs-XXXXXXX-YYYYY 1/1 Running 0 Xdgrafana-alloy-platform-alloy-logs-XXXXXXX-YYYYY 1/1 Running 0 Xdgrafana-alloy-platform-alloy-logs-XXXXXXX-YYYYY 1/1 Running 0 Xdgrafana-alloy-platform-alloy-logs-XXXXXXX-YYYYY 1/1 Running 0 Xdgrafana-alloy-platform-alloy-metrics-0 1/1 Running 0 Xdgrafana-alloy-platform-alloy-singleton-XXXXXXX-YYYYY 1/1 Running 0 Xdprometheus-node-exporter-YYYYY 1/1 Running 0 Xdprometheus-node-exporter-YYYYY 1/1 Running 0 Xdprometheus-node-exporter-YYYYY 1/1 Running 0 Xdprometheus-node-exporter-YYYYY 1/1 Running 0 Xdprometheus-node-exporter-YYYYY 1/1 Running 0 Xd
Finished?
Use the below navigation to proceed