Skip to content

Commit 1541c64

Browse files
authored
Enabling the Alloy integration should truly enable the integration (#941)
Signed-off-by: Pete Wall <pete.wall@grafana.com>
1 parent ab233c0 commit 1541c64

19 files changed

+108
-125
lines changed

charts/feature-integrations/default-allow-lists/alloy-integration.yaml

Lines changed: 0 additions & 105 deletions
This file was deleted.
Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,105 @@
11
---
2-
# The minimal set of metrics from Grafana Alloy required for Kubernetes Monitoring
2+
# The set of metrics from Grafana Alloy required for the Grafana Alloy integration
33
- alloy_build_info
4+
- alloy_component_controller_running_components
5+
- alloy_component_dependencies_wait_seconds
6+
- alloy_component_dependencies_wait_seconds_bucket
7+
- alloy_component_evaluation_seconds
8+
- alloy_component_evaluation_seconds_bucket
9+
- alloy_component_evaluation_seconds_count
10+
- alloy_component_evaluation_seconds_sum
11+
- alloy_component_evaluation_slow_seconds
12+
- alloy_config_hash
13+
- alloy_resources_machine_rx_bytes_total
14+
- alloy_resources_machine_tx_bytes_total
15+
- alloy_resources_process_cpu_seconds_total
16+
- alloy_resources_process_resident_memory_bytes
17+
- alloy_tcp_connections
18+
- alloy_wal_samples_appended_total
19+
- alloy_wal_storage_active_series
20+
- cluster_node_gossip_health_score
21+
- cluster_node_gossip_proto_version
22+
- cluster_node_gossip_received_events_total
23+
- cluster_node_info
24+
- cluster_node_lamport_time
25+
- cluster_node_peers
26+
- cluster_node_update_observers
27+
- cluster_transport_rx_bytes_total
28+
- cluster_transport_rx_packet_queue_length
29+
- cluster_transport_rx_packets_failed_total
30+
- cluster_transport_rx_packets_total
31+
- cluster_transport_stream_rx_bytes_total
32+
- cluster_transport_stream_rx_packets_failed_total
33+
- cluster_transport_stream_rx_packets_total
34+
- cluster_transport_stream_tx_bytes_total
35+
- cluster_transport_stream_tx_packets_failed_total
36+
- cluster_transport_stream_tx_packets_total
37+
- cluster_transport_streams
38+
- cluster_transport_tx_bytes_total
39+
- cluster_transport_tx_packet_queue_length
40+
- cluster_transport_tx_packets_failed_total
41+
- cluster_transport_tx_packets_total
42+
- otelcol_exporter_send_failed_spans_total
43+
- otelcol_exporter_sent_spans_total
44+
- go_gc_duration_seconds_count
45+
- go_goroutines
46+
- go_memstats_heap_inuse_bytes
47+
- loki_process_dropped_lines_total
48+
- loki_write_batch_retries_total
49+
- loki_write_dropped_bytes_total
50+
- loki_write_dropped_entries_total
51+
- loki_write_encoded_bytes_total
52+
- loki_write_mutated_bytes_total
53+
- loki_write_mutated_entries_total
54+
- loki_write_request_duration_seconds_bucket
55+
- loki_write_sent_bytes_total
56+
- loki_write_sent_entries_total
57+
- process_cpu_seconds_total
58+
- process_start_time_seconds
59+
- otelcol_processor_batch_batch_send_size_bucket
60+
- otelcol_processor_batch_metadata_cardinality
61+
- otelcol_processor_batch_timeout_trigger_send_total
62+
- prometheus_remote_storage_bytes_total
63+
- prometheus_remote_storage_enqueue_retries_total
64+
- prometheus_remote_storage_highest_timestamp_in_seconds
65+
- prometheus_remote_storage_metadata_bytes_total
66+
- prometheus_remote_storage_queue_highest_sent_timestamp_seconds
67+
- prometheus_remote_storage_samples_dropped_total
68+
- prometheus_remote_storage_samples_failed_total
69+
- prometheus_remote_storage_samples_pending
70+
- prometheus_remote_storage_samples_retried_total
71+
- prometheus_remote_storage_samples_total
72+
- prometheus_remote_storage_sent_batch_duration_seconds_bucket
73+
- prometheus_remote_storage_sent_batch_duration_seconds_count
74+
- prometheus_remote_storage_sent_batch_duration_seconds_sum
75+
- prometheus_remote_storage_shard_capacity
76+
- prometheus_remote_storage_shards
77+
- prometheus_remote_storage_shards_desired
78+
- prometheus_remote_storage_shards_max
79+
- prometheus_remote_storage_shards_min
80+
- prometheus_remote_storage_succeeded_samples_total
81+
- prometheus_remote_write_wal_samples_appended_total
82+
- prometheus_remote_write_wal_storage_active_series
83+
- prometheus_sd_discovered_targets
84+
- prometheus_target_interval_length_seconds_count
85+
- prometheus_target_interval_length_seconds_sum
86+
- prometheus_target_scrapes_exceeded_sample_limit_total
87+
- prometheus_target_scrapes_sample_duplicate_timestamp_total
88+
- prometheus_target_scrapes_sample_out_of_bounds_total
89+
- prometheus_target_scrapes_sample_out_of_order_total
90+
- prometheus_target_sync_length_seconds_sum
91+
- prometheus_wal_watcher_current_segment
92+
- otelcol_receiver_accepted_spans_total
93+
- otelcol_receiver_refused_spans_total
94+
- rpc_server_duration_milliseconds_bucket
95+
- scrape_duration_seconds
96+
- traces_exporter_send_failed_spans
97+
- traces_exporter_send_failed_spans_total
98+
- traces_exporter_sent_spans
99+
- traces_exporter_sent_spans_total
100+
- traces_loadbalancer_backend_outcome
101+
- traces_loadbalancer_num_backends
102+
- traces_receiver_accepted_spans
103+
- traces_receiver_accepted_spans_total
104+
- traces_receiver_refused_spans
105+
- traces_receiver_refused_spans_total

charts/feature-integrations/docs/integrations/alloy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
| maxCacheSize | string | `100000` | Sets the max_cache_size for prometheus.relabel component. This should be at least 2x-5x your largest scrape target or samples appended rate. ([docs](https://grafana.com/docs/alloy/latest/reference/components/prometheus.relabel/#arguments)) Overrides global.maxCacheSize |
1616
| metricsTuning.excludeMetrics | list | `[]` | Metrics to drop. Can use regular expressions. |
1717
| metricsTuning.includeMetrics | list | `[]` | Metrics to keep. Can use regular expressions. |
18-
| metricsTuning.useDefaultAllowList | bool | `true` | Filter the list of metrics from Grafana Alloy to the minimal set required for Kubernetes Monitoring. See [Metrics Tuning and Allow Lists](#metrics-tuning-and-allow-lists) |
19-
| metricsTuning.useIntegrationAllowList | bool | `false` | Filter the list of metrics from Grafana Alloy to the minimal set required for Kubernetes Monitoring as well as the Grafana Alloy integration. |
18+
| metricsTuning.useDefaultAllowList | bool | `true` | Filter the list of metrics from Grafana Alloy to the minimal set required for the Grafana Alloy integration. |
2019

2120
### General Settings
2221

charts/feature-integrations/integrations/alloy-values.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,9 @@ scrapeInterval:
1515

1616
# Adjustments to the scraped metrics to filter the amount of data sent to storage.
1717
metricsTuning:
18-
# -- Filter the list of metrics from Grafana Alloy to the minimal set required for Kubernetes Monitoring.
19-
# See [Metrics Tuning and Allow Lists](#metrics-tuning-and-allow-lists)
18+
# -- Filter the list of metrics from Grafana Alloy to the minimal set required for the Grafana Alloy integration.
2019
# @section -- Metric Processing Settings
2120
useDefaultAllowList: true
22-
# -- Filter the list of metrics from Grafana Alloy to the minimal set required for Kubernetes Monitoring as well as the Grafana Alloy integration.
23-
# @section -- Metric Processing Settings
24-
useIntegrationAllowList: false
2521
# -- Metrics to keep. Can use regular expressions.
2622
# @section -- Metric Processing Settings
2723
includeMetrics: []

charts/feature-integrations/schema-mods/definitions/alloy-integration.schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
},
1919
"useDefaultAllowList": {
2020
"type": "boolean"
21-
},
22-
"useIntegrationAllowList": {
23-
"type": "boolean"
2421
}
2522
}
2623
},

charts/feature-integrations/templates/_integration_alloy.tpl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
{{- if .instance.metricsTuning.useDefaultAllowList -}}
99
{{- $allowList = concat $allowList (.Files.Get "default-allow-lists/alloy.yaml" | fromYamlArray) -}}
1010
{{- end -}}
11-
{{- if .instance.metricsTuning.useIntegrationAllowList -}}
12-
{{- $allowList = concat $allowList (.Files.Get "default-allow-lists/alloy-integration.yaml" | fromYamlArray) -}}
13-
{{- end -}}
1411
{{- if .instance.metricsTuning.includeMetrics -}}
1512
{{- $allowList = concat $allowList .instance.metricsTuning.includeMetrics -}}
1613
{{- end -}}

charts/feature-integrations/tests/alloy_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ tests:
283283
alloy_integration_scrape "alloy_metrics" {
284284
targets = alloy_integration_discovery.alloy_metrics.output
285285
clustering = true
286-
keep_metrics = "up|alloy_build_info"
286+
keep_metrics = "up|alloy_build_info|alloy_component_controller_running_components|alloy_component_dependencies_wait_seconds|alloy_component_dependencies_wait_seconds_bucket|alloy_component_evaluation_seconds|alloy_component_evaluation_seconds_bucket|alloy_component_evaluation_seconds_count|alloy_component_evaluation_seconds_sum|alloy_component_evaluation_slow_seconds|alloy_config_hash|alloy_resources_machine_rx_bytes_total|alloy_resources_machine_tx_bytes_total|alloy_resources_process_cpu_seconds_total|alloy_resources_process_resident_memory_bytes|alloy_tcp_connections|alloy_wal_samples_appended_total|alloy_wal_storage_active_series|cluster_node_gossip_health_score|cluster_node_gossip_proto_version|cluster_node_gossip_received_events_total|cluster_node_info|cluster_node_lamport_time|cluster_node_peers|cluster_node_update_observers|cluster_transport_rx_bytes_total|cluster_transport_rx_packet_queue_length|cluster_transport_rx_packets_failed_total|cluster_transport_rx_packets_total|cluster_transport_stream_rx_bytes_total|cluster_transport_stream_rx_packets_failed_total|cluster_transport_stream_rx_packets_total|cluster_transport_stream_tx_bytes_total|cluster_transport_stream_tx_packets_failed_total|cluster_transport_stream_tx_packets_total|cluster_transport_streams|cluster_transport_tx_bytes_total|cluster_transport_tx_packet_queue_length|cluster_transport_tx_packets_failed_total|cluster_transport_tx_packets_total|otelcol_exporter_send_failed_spans_total|otelcol_exporter_sent_spans_total|go_gc_duration_seconds_count|go_goroutines|go_memstats_heap_inuse_bytes|loki_process_dropped_lines_total|loki_write_batch_retries_total|loki_write_dropped_bytes_total|loki_write_dropped_entries_total|loki_write_encoded_bytes_total|loki_write_mutated_bytes_total|loki_write_mutated_entries_total|loki_write_request_duration_seconds_bucket|loki_write_sent_bytes_total|loki_write_sent_entries_total|process_cpu_seconds_total|process_start_time_seconds|otelcol_processor_batch_batch_send_size_bucket|otelcol_processor_batch_metadata_cardinality|otelcol_processor_batch_timeout_trigger_send_total|prometheus_remote_storage_bytes_total|prometheus_remote_storage_enqueue_retries_total|prometheus_remote_storage_highest_timestamp_in_seconds|prometheus_remote_storage_metadata_bytes_total|prometheus_remote_storage_queue_highest_sent_timestamp_seconds|prometheus_remote_storage_samples_dropped_total|prometheus_remote_storage_samples_failed_total|prometheus_remote_storage_samples_pending|prometheus_remote_storage_samples_retried_total|prometheus_remote_storage_samples_total|prometheus_remote_storage_sent_batch_duration_seconds_bucket|prometheus_remote_storage_sent_batch_duration_seconds_count|prometheus_remote_storage_sent_batch_duration_seconds_sum|prometheus_remote_storage_shard_capacity|prometheus_remote_storage_shards|prometheus_remote_storage_shards_desired|prometheus_remote_storage_shards_max|prometheus_remote_storage_shards_min|prometheus_remote_storage_succeeded_samples_total|prometheus_remote_write_wal_samples_appended_total|prometheus_remote_write_wal_storage_active_series|prometheus_sd_discovered_targets|prometheus_target_interval_length_seconds_count|prometheus_target_interval_length_seconds_sum|prometheus_target_scrapes_exceeded_sample_limit_total|prometheus_target_scrapes_sample_duplicate_timestamp_total|prometheus_target_scrapes_sample_out_of_bounds_total|prometheus_target_scrapes_sample_out_of_order_total|prometheus_target_sync_length_seconds_sum|prometheus_wal_watcher_current_segment|otelcol_receiver_accepted_spans_total|otelcol_receiver_refused_spans_total|rpc_server_duration_milliseconds_bucket|scrape_duration_seconds|traces_exporter_send_failed_spans|traces_exporter_send_failed_spans_total|traces_exporter_sent_spans|traces_exporter_sent_spans_total|traces_loadbalancer_backend_outcome|traces_loadbalancer_num_backends|traces_receiver_accepted_spans|traces_receiver_accepted_spans_total|traces_receiver_refused_spans|traces_receiver_refused_spans_total"
287287
scrape_interval = "60s"
288288
max_cache_size = 100000
289289
forward_to = argument.metrics_destinations.value

charts/feature-integrations/values.schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@
8787
},
8888
"useDefaultAllowList": {
8989
"type": "boolean"
90-
},
91-
"useIntegrationAllowList": {
92-
"type": "boolean"
9390
}
9491
}
9592
},
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)