Skip to content

Commit

Permalink
fix docker test again
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Jan 12, 2025
1 parent 30f57c2 commit 7e08819
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions tests/general/discoverymode/docker_observer_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,32 +275,6 @@ func TestDockerObserver(t *testing.T) {
"receivers": map[string]any{
"receiver_creator/discovery": map[string]any{
"receivers": map[string]any{
"prometheus": map[string]any{
"config": map[string]any{
"config": map[string]any{
"scrape_configs": []any{map[string]any{
"job_name": "envoy",
"metric_relabel_configs": []any{
map[string]any{
"action": "keep",
"regex": "(envoy_cluster_upstream_cx_active|envoy_cluster_upstream_cx_total|envoy_cluster_upstream_cx_connect_fail|envoy_cluster_upstream_cx_connect_ms|envoy_cluster_upstream_rq_active|envoy_cluster_upstream_rq_total|envoy_cluster_upstream_rq_timeout|envoy_cluster_upstream_rq_pending_active|envoy_cluster_upstream_rq_pending_overflow|envoy_cluster_upstream_rq_time|envoy_cluster_membership_total|envoy_cluster_membership_degraded|envoy_cluster_membership_excluded|envoy_listener_downstream_cx_active|envoy_listener_downstream_cx_total|envoy_listener_downstream_cx_transport_socket_connect_timeout|envoy_listener_downstream_cx_overflow|envoy_listener_downstream_cx_overload_reject|envoy_listener_downstream_global_cx_overflow)",
"source_labels": []any{"__name__"},
},
},
"metrics_path": "/stats/prometheus",
"scrape_interval": "10s",
"static_configs": []any{
map[string]any{
"targets": []any{"`endpoint`"},
},
},
},
},
},
},
"resource_attributes": map[string]any{},
"rule": "type == \"container\" and any([name, image, command], {# matches \"(?i)envoy\"}) and not (command matches \"splunk.discovery\")",
},
"prometheus_simple": map[string]any{
"config": map[string]any{
"collection_interval": "1s",
Expand Down Expand Up @@ -357,24 +331,6 @@ processors:
receivers:
receiver_creator/discovery:
receivers:
prometheus:
config:
config:
scrape_configs:
- job_name: envoy
metric_relabel_configs:
- action: keep
regex: (envoy_cluster_upstream_cx_active|envoy_cluster_upstream_cx_total|envoy_cluster_upstream_cx_connect_fail|envoy_cluster_upstream_cx_connect_ms|envoy_cluster_upstream_rq_active|envoy_cluster_upstream_rq_total|envoy_cluster_upstream_rq_timeout|envoy_cluster_upstream_rq_pending_active|envoy_cluster_upstream_rq_pending_overflow|envoy_cluster_upstream_rq_time|envoy_cluster_membership_total|envoy_cluster_membership_degraded|envoy_cluster_membership_excluded|envoy_listener_downstream_cx_active|envoy_listener_downstream_cx_total|envoy_listener_downstream_cx_transport_socket_connect_timeout|envoy_listener_downstream_cx_overflow|envoy_listener_downstream_cx_overload_reject|envoy_listener_downstream_global_cx_overflow)
source_labels:
- __name__
metrics_path: /stats/prometheus
scrape_interval: 10s
static_configs:
- targets:
- '`+"`endpoint`"+`'
resource_attributes: {}
rule: type == "container" and any([name, image, command], {# matches "(?i)envoy"})
and not (command matches "splunk.discovery")
prometheus_simple:
config:
collection_interval: 1s
Expand Down

0 comments on commit 7e08819

Please sign in to comment.