Skip to content

Commit

Permalink
Making it work
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall committed Oct 22, 2024
1 parent 36aded1 commit 752ddff
Show file tree
Hide file tree
Showing 43 changed files with 652 additions and 264 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ otelcol.exporter.loki "loki" {
loki.write "loki" {
endpoint {
url = "http://loki.loki.svc:3100/loki/api/v1/push"
tenant_id = ""
bearer_token = "my-bearer-token"
}
external_labels = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ prometheus.remote_write "prometheus" {
}
tls_config {
insecure_skip_verify = false
ca_pem = ""
cert_pem = ""
key_pem = ""
}
send_native_histograms = false
queue_config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ prometheus.remote_write "prometheus" {
}
tls_config {
insecure_skip_verify = false
ca_pem = ""
cert_pem = ""
key_pem = ""
}
send_native_histograms = false
queue_config {
Expand Down Expand Up @@ -53,7 +50,6 @@ otelcol.exporter.loki "loki" {
loki.write "loki" {
endpoint {
url = "http://loki.loki.svc:3100/loki/api/v1/push"
tenant_id = ""
bearer_token = "my-bearer-token"
}
external_labels = {
Expand Down Expand Up @@ -92,14 +88,10 @@ otelcol.exporter.otlp "tempo" {
client {
endpoint = "http://tempo.tempo.svc:4317"
headers = {
"X-Scope-OrgID" = "",
}
tls {
insecure = false
insecure_skip_verify = false
ca_pem = ""
cert_pem = ""
key_pem = ""
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ data:
}
tls_config {
insecure_skip_verify = false
ca_pem = ""
cert_pem = ""
key_pem = ""
}
send_native_histograms = false
queue_config {
Expand Down Expand Up @@ -183,6 +180,8 @@ data:
}
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
Expand All @@ -209,7 +208,6 @@ data:
loki.write "loki" {
endpoint {
url = "http://loki.loki.svc:3100/loki/api/v1/push"
tenant_id = ""
bearer_token = "my-bearer-token"
}
external_labels = {
Expand Down Expand Up @@ -359,9 +357,6 @@ data:
}
tls_config {
insecure_skip_verify = false
ca_pem = ""
cert_pem = ""
key_pem = ""
}
send_native_histograms = false
queue_config {
Expand Down Expand Up @@ -397,7 +392,6 @@ data:
loki.write "loki" {
endpoint {
url = "http://loki.loki.svc:3100/loki/api/v1/push"
tenant_id = ""
bearer_token = "my-bearer-token"
}
external_labels = {
Expand Down Expand Up @@ -436,14 +430,10 @@ data:
client {
endpoint = "http://tempo.tempo.svc:4317"
headers = {
"X-Scope-OrgID" = "",
}
tls {
insecure = false
insecure_skip_verify = false
ca_pem = ""
cert_pem = ""
key_pem = ""
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ data:
}
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
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s-monitoring/docs/examples/auth/sigv4/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ data:
}
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
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s-monitoring/docs/examples/autoscaling/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ data:
}
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
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s-monitoring/docs/examples/extra-rules/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,8 @@ data:
}
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ data:
}
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
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s-monitoring/docs/examples/proxies/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ data:
}
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
Expand Down
22 changes: 22 additions & 0 deletions charts/k8s-monitoring/docs/examples/remote-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify values.yaml or description.txt and run `make examples`)
-->
# Example: remote-config/values.yaml

## Values

```yaml
cluster:
name: remote-config-example-cluster

alloy-metrics:
enabled: true
remoteConfig:
enabled: true
url: "https://remote-config.example.com/alloy"
auth:
type: "basic"
username: "my-remote-cfg-user"
password: "my-remote-cfg-password"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@



remotecfg {
url = "https://remote-config.example.com/alloy"
basic_auth {
username = nonsensitive(remote.kubernetes.secret.alloy_metrics_remote_cfg.data["username"])
password = remote.kubernetes.secret.alloy_metrics_remote_cfg.data["password"]
}
id = "remote-config-example-cluster-default-" + constants.hostnamepoll_frequency = "5m"
attributes = {
"cluster" = "remote-config-example-cluster",
"platform" = "kubernetes",
"workloadType": "statefulset",
}
}
Loading

0 comments on commit 752ddff

Please sign in to comment.