Skip to content

Commit

Permalink
Don't place on alloy-profiles or alloy-logs. That would cause too muc…
Browse files Browse the repository at this point in the history
…h confusion

Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall committed Oct 21, 2024
1 parent d91c751 commit 7845616
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,37 +845,3 @@ profiling "feature" {
]
}

// Self Reporting
prometheus.exporter.unix "kubernetes_monitoring_telemetry" {
set_collectors = ["textfile"]
textfile {
directory = "/etc/alloy"
}
}

discovery.relabel "kubernetes_monitoring_telemetry" {
targets = prometheus.exporter.unix.kubernetes_monitoring_telemetry.targets
rule {
target_label = "instance"
action = "replace"
replacement = "ko"
}
rule {
target_label = "job"
action = "replace"
replacement = "integrations/kubernetes/kubernetes_monitoring_telemetry"
}
}

prometheus.scrape "kubernetes_monitoring_telemetry" {
job_name = "integrations/kubernetes/kubernetes_monitoring_telemetry"
targets = discovery.relabel.kubernetes_monitoring_telemetry.output
scrape_interval = "1h"
clustering {
enabled = true
}
forward_to = [

]
}

Original file line number Diff line number Diff line change
Expand Up @@ -869,49 +869,6 @@ data:
pyroscope.write.pyroscope.receiver,
]
}
// Self Reporting
prometheus.exporter.unix "kubernetes_monitoring_telemetry" {
set_collectors = ["textfile"]
textfile {
directory = "/etc/alloy"
}
}
discovery.relabel "kubernetes_monitoring_telemetry" {
targets = prometheus.exporter.unix.kubernetes_monitoring_telemetry.targets
rule {
target_label = "instance"
action = "replace"
replacement = "ko"
}
rule {
target_label = "job"
action = "replace"
replacement = "integrations/kubernetes/kubernetes_monitoring_telemetry"
}
}
prometheus.scrape "kubernetes_monitoring_telemetry" {
job_name = "integrations/kubernetes/kubernetes_monitoring_telemetry"
targets = discovery.relabel.kubernetes_monitoring_telemetry.output
scrape_interval = "1h"
clustering {
enabled = true
}
forward_to = [
]
}
self-reporting-metric.prom: |
# HELP grafana_kubernetes_monitoring_build_info A metric to report the version of the Kubernetes Monitoring Helm chart
# TYPE grafana_kubernetes_monitoring_build_info gauge
grafana_kubernetes_monitoring_build_info{version="2.0.0-alpha.1", namespace="default", platform=""} 1
# HELP grafana_kubernetes_monitoring_feature_info A metric to report the enabled features of the Kubernetes Monitoring Helm chart
# TYPE grafana_kubernetes_monitoring_feature_info gauge
grafana_kubernetes_monitoring_feature_info{feature="profiling", method="", version="1.0.0"} 1
---
# Source: k8s-monitoring/charts/alloy-profiles/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{{- define "features.selfReporting.collectors" -}}
{{- if .Values.selfReporting.enabled}}
{{- $collectorsByIncreasingPreference := list "alloy-profiles" "alloy-logs" "alloy-receiver" "alloy-metrics" "alloy-singleton" }}
{{- $collectorsByIncreasingPreference := list "alloy-receiver" "alloy-metrics" "alloy-singleton" }}
{{- $chosenCollector := "" }}
{{- range $collector := $collectorsByIncreasingPreference }}
{{- if (index $.Values $collector).enabled }}{{- $chosenCollector = $collector }}{{- end -}}
Expand Down

0 comments on commit 7845616

Please sign in to comment.