Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8a08285
metadata node fetchers
mariomac Feb 12, 2026
fb11064
basic node aws retrieval
mariomac Feb 12, 2026
085c5c9
Replaced contextInfo.HostID by NodeStore.
mariomac Feb 13, 2026
95e1744
add license headers
mariomac Feb 13, 2026
ec1a5b3
Integrated within CtxInfo
mariomac Feb 13, 2026
71fdd1b
integrated with metrics exporters
mariomac Feb 13, 2026
45a0f52
add timeout to OTEL detectors
mariomac Feb 13, 2026
c174b41
Merge branch 'main' of github.com:open-telemetry/opentelemetry-ebpf-i…
mariomac Feb 17, 2026
2cb3522
Fixed crash
mariomac Feb 17, 2026
3b351e2
fix format
mariomac Feb 17, 2026
b184617
AWS metrics metadata tests
mariomac Feb 17, 2026
65a008d
AWS traces metadata tests
mariomac Feb 17, 2026
53d3d81
Merge branch 'main' of github.com:open-telemetry/opentelemetry-ebpf-i…
mariomac Feb 18, 2026
86b72fb
Merge branch 'main' of github.com:open-telemetry/opentelemetry-ebpf-i…
mariomac Feb 18, 2026
d1ed092
Merge branch 'main' of github.com:open-telemetry/opentelemetry-ebpf-i…
mariomac Feb 18, 2026
1bd0cbd
Merge branch 'main' of github.com:open-telemetry/opentelemetry-ebpf-i…
mariomac Feb 19, 2026
ea75146
fix some debug comments
mariomac Feb 19, 2026
a3c93c7
test: remove cloud fetchers
mariomac Feb 19, 2026
4c56056
experiment: unblock kube node fetcher
mariomac Feb 19, 2026
59fa9fd
experiment: enable cloud meta but disable kube node fetcher
mariomac Feb 19, 2026
8c6ddb0
Avoid activating kubernetes in non-k8s tests
mariomac Feb 19, 2026
9e9fc7a
add timeout to kube metadata retrieval
mariomac Feb 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions internal/test/integration/aws_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

package integration

import (
"encoding/json"
"fmt"
"net/http"
"testing"
"time"

"github.com/ory/dockertest/v3"
"github.com/ory/dockertest/v3/docker"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"go.opentelemetry.io/obi/internal/test/integration/components/jaeger"
"go.opentelemetry.io/obi/internal/test/integration/components/promtest"
ti "go.opentelemetry.io/obi/pkg/test/integration"
)

func setupMockIMDS(t *testing.T, network *dockertest.Network) {
t.Helper()

t.Log("Starting AWS EC2 Metadata Mock container...")
mockIMDS, err := dockerPool.RunWithOptions(&dockertest.RunOptions{
Repository: "amazon/amazon-ec2-metadata-mock",
Tag: versionAWSMetaMock,
Name: fmt.Sprintf("mock-imds-test-%d", time.Now().UnixNano()),
Mounts: []string{
pathRoot + "/internal/test/integration/configs/aws-metadata-mock.json:/config/aws-metadata-mock.json",
},
Cmd: []string{
"--config-file", "/config/aws-metadata-mock.json",
"--port", "1338",
},
ExposedPorts: []string{"1338/tcp"},
})
require.NoError(t, err, "could not start AWS EC2 Metadata Mock container")
t.Cleanup(func() {
require.NoError(t, dockerPool.Purge(mockIMDS), "could not remove AWS EC2 Metadata Mock container")
})

// Connect to network with alias for metadata service
err = dockerPool.Client.ConnectNetwork(network.Network.ID, docker.NetworkConnectionOptions{
Container: mockIMDS.Container.ID,
EndpointConfig: &docker.EndpointConfig{
Aliases: []string{"mock-imds"},
},
})
require.NoError(t, err, "could not connect AWS EC2 Metadata Mock container to network")
t.Log("AWS EC2 Metadata Mock container started", "state", mockIMDS.Container.State.Status)
}

// This file contains tests related with the integration with Amazon Web Services
func TestCloudResourceMetadata(t *testing.T) {
network := setupDockerNetwork(t)
setupContainerPrometheus(t, network, "prometheus-config-perapp.yml")
setupContainerJaeger(t, network)
setupContainerCollector(t, network, "otelcol-config.yml")
setupMockIMDS(t, network)
defer network.Close()
testserver := setupGoOTelTestServer(t, network, nil)

if t.Failed() {
return
}

// Start OBI to instrument the test server
// Configure OBI to use the mock IMDS by setting the EC2 metadata endpoint
o := obi{
Env: []string{
`OTEL_EBPF_PROMETHEUS_PORT=8999`,
"OTEL_EBPF_OPEN_PORT=8080",
// Configure AWS SDK to use custom endpoint for EC2 metadata
// The official amazon-ec2-metadata-mock runs on port 1338
"AWS_EC2_METADATA_SERVICE_ENDPOINT=http://mock-imds:1338",
},
}
if !KernelLockdownMode() {
o.SecurityConfigSuffix = "_none"
}
o.instrument(t, network, testserver, "obi-config.yml")

// Wait for test components to be ready
waitForTestComponents(t, "http://localhost:8080")

// Make some requests to generate metrics
for range 4 {
ti.DoHTTPGet(t, "http://localhost:8080/rolldice", 200)
}

// Query Prometheus for target_info with cluster_name attribute
pq := promtest.Client{HostPort: prometheusHostPort}

t.Run("OTEL metrics", func(t *testing.T) {
testMetrics(t, pq, "rolldice", "otel")
})
t.Run("Prometheus metrics", func(t *testing.T) {
testMetrics(t, pq, "rolldice", "prometheus")
})
t.Run("OTEL traces", func(t *testing.T) {
testTraces(t)
})
}

func testMetrics(t *testing.T, pq promtest.Client, serviceName, exporter string) {
require.EventuallyWithT(t, func(ct *assert.CollectT) {
// attribute values taken from aws-metadata-mock.json
query := `target_info{` +
`service_name="` + serviceName + `",` +
`exported="` + exporter + `",` +
`cloud_account_id="0123456789",` +
`cloud_availability_zone="us-east-1f",` +
`cloud_platform="aws_ec2",` +
`cloud_provider="aws",` +
`cloud_region="us-east-1",` +
`host_id="i-1234567890abcdef0",` +
`host_image_id="ami-0b69ea66ff7391e80",` +
`host_type="m4.xlarge"` +
`}`
results, err := pq.Query(query)
require.NoError(ct, err, "failed to query metrics")
assert.NotEmpty(ct, results, "target_info with cloud metadata should exist")
}, testTimeout, 500*time.Millisecond)
}

func testTraces(t *testing.T) {
var trace jaeger.Trace
require.EventuallyWithT(t, func(ct *assert.CollectT) {
resp, err := http.Get(jaegerQueryURL + "?service=rolldice&operation=GET%20%2Frolldice")
require.NoError(ct, err)
if resp == nil {
return
}
require.Equal(ct, http.StatusOK, resp.StatusCode)
var tq jaeger.TracesQuery
require.NoError(ct, json.NewDecoder(resp.Body).Decode(&tq))
traces := tq.FindBySpan(jaeger.Tag{Key: "url.path", Type: "string", Value: "/rolldice"})
require.NotEmpty(ct, traces)
trace = traces[0]
require.Len(ct, trace.Spans, 3) // parent - in queue - processing
}, testTimeout, 100*time.Millisecond)

for _, proc := range trace.Processes {
sd := jaeger.DiffAsRegexp([]jaeger.Tag{
{Key: "cloud.account.id", Type: "string", Value: "^0123456789$"},
{Key: "cloud.availability_zone", Type: "string", Value: "^us-east-1f$"},
{Key: "cloud.platform", Type: "string", Value: "^aws_ec2$"},
{Key: "cloud.provider", Type: "string", Value: "^aws$"},
{Key: "cloud.region", Type: "string", Value: "^us-east-1$"},
{Key: "host.id", Type: "string", Value: "^i-1234567890abcdef0$"},
{Key: "host.image.id", Type: "string", Value: "^ami-0b69ea66ff7391e80$"},
{Key: "host.type", Type: "string", Value: "^m4.xlarge$"},
}, proc.Tags)
require.Empty(t, sd)
}
}
188 changes: 188 additions & 0 deletions internal/test/integration/configs/aws-metadata-mock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
{
"metadata": {
"paths": {
"ami-id": "/latest/meta-data/ami-id",
"ami-launch-index": "/latest/meta-data/ami-launch-index",
"ami-manifest-path": "/latest/meta-data/ami-manifest-path",
"block-device-mapping-ami": "/latest/meta-data/block-device-mapping/ami",
"block-device-mapping-ebs": "/latest/meta-data/block-device-mapping/ebs0",
"block-device-mapping-ephemeral": "/latest/meta-data/block-device-mapping/ephemeral0",
"block-device-mapping-root": "/latest/meta-data/block-device-mapping/root",
"block-device-mapping-swap": "/latest/meta-data/block-device-mapping/swap",
"elastic-inference-associations": "/latest/meta-data/elastic-inference/associations",
"elastic-inference-accelerator": "/latest/meta-data/elastic-inference/associations/eia-bfa21c7904f64a82a21b9f4540169ce1",
"events": "/latest/meta-data/events/maintenance/scheduled",
"hostname": "/latest/meta-data/hostname",
"iam-info": "/latest/meta-data/iam/info",
"iam-security-credentials-role": "/latest/meta-data/iam/security-credentials",
"iam-security-credentials": "/latest/meta-data/iam/security-credentials/baskinc-role",
"instance-action": "/latest/meta-data/instance-action",
"instance-id": "/latest/meta-data/instance-id",
"instance-life-cycle": "/latest/meta-data/instance-life-cycle",
"instance-type": "/latest/meta-data/instance-type",
"kernel-id": "/latest/meta-data/kernel-id",
"local-hostname": "/latest/meta-data/local-hostname",
"local-ipv4": "/latest/meta-data/local-ipv4",
"mac": "/latest/meta-data/mac",
"mac-device-number": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/device-number",
"mac-ipv4-associations": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/ipv4-associations/192.0.2.54",
"mac-ipv6-associations": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/ipv6s",
"mac-local-hostname": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/local-hostname",
"mac-local-ipv4s": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/local-ipv4s",
"mac-mac": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/mac",
"mac-network-interface-id": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/interface-id",
"mac-network-interface-card-index": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/network-card-index",
"mac-owner-id": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/owner-id",
"mac-public-hostname": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/public-hostname",
"mac-public-ipv4s": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/public-ipv4s",
"mac-security-group-ids": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/security-group-ids",
"mac-security-groups": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/security-groups",
"mac-subnet-id": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/subnet-id",
"mac-subnet-ipv4-cidr-block": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/subnet-ipv4-cidr-block",
"mac-subnet-ipv6-cidr-blocks": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/subnet-ipv6-cidr-blocks",
"mac-vpc-id": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/vpc-id",
"mac-vpc-ipv4-cidr-block": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/vpc-ipv4-cidr-block",
"mac-vpc-ipv4-cidr-blocks": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/vpc-ipv4-cidr-blocks",
"mac-vpc-ipv6-cidr-blocks": "/latest/meta-data/network/interfaces/macs/0e:49:61:0f:c3:11/vpc-ipv6-cidr-blocks",
"placement-availability-zone": "/latest/meta-data/placement/availability-zone",
"placement-availability-zone-id": "/latest/meta-data/placement/availability-zone-id",
"placement-group-name": "/latest/meta-data/placement/group-name",
"placement-host-id": "/latest/meta-data/placement/host-id",
"placement-partition-number": "/latest/meta-data/placement/partition-number",
"placement-region": "/latest/meta-data/placement/region",
"product-codes": "/latest/meta-data/product-codes",
"public-hostname": "/latest/meta-data/public-hostname",
"public-ipv4": "/latest/meta-data/public-ipv4",
"public-key": "/latest/meta-data/public-keys/0/openssh-key",
"ramdisk-id": "/latest/meta-data/ramdisk-id",
"reservation-id": "/latest/meta-data/reservation-id",
"security-groups": "/latest/meta-data/security-groups",
"services-domain": "/latest/meta-data/services/domain",
"services-partition": "/latest/meta-data/services/partition",
"spot": "/latest/meta-data/spot/instance-action",
"spot-termination-time": "/latest/meta-data/spot/termination-time",
"rebalance-rec-time": "/latest/meta-data/events/recommendations/rebalance",
"tags-instance-name": "/latest/meta-data/tags/instance/Name",
"tags-instance-test": "/latest/meta-data/tags/instance/Test",
"target-lifecycle-state": "/latest/meta-data/autoscaling/target-lifecycle-state"
},
"values": {
"ami-id": "ami-0a887e401f7654935",
"ami-launch-index": "0",
"ami-manifest-path": "(unknown)",
"block-device-mapping-ami": "/dev/xvda",
"block-device-mapping-ebs": "sdb",
"block-device-mapping-ephemeral": "sdb",
"block-device-mapping-root": "/dev/xvda",
"block-device-mapping-swap": "sdcs",
"event-id": "instance-event-1234567890abcdef0",
"hostname": "ip-172-16-34-43.ec2.internal",
"instance-action": "none",
"instance-id": "i-1234567890abcdef0",
"instance-life-cycle": "on-demand",
"instance-type": "m4.xlarge",
"kernel-id": "aki-5c21674b",
"local-hostname": "ip-172-16-34-43.ec2.internal",
"local-ipv4": "172.16.34.43",
"mac": "0e:49:61:0f:c3:11",
"mac-device-number": "0",
"mac-ipv4-associations": "192.0.2.54",
"mac-ipv6-associations": "2001:db8:8:4::2",
"mac-local-hostname": "ip-172-16-34-43.ec2.internal",
"mac-local-ipv4s": "172.16.34.43",
"mac-mac": "0e:49:61:0f:c3:11",
"mac-network-interface-id": "eni-0f95d3625f5c521cc",
"mac-network-interface-card-index": "0",
"mac-owner-id": "515336597381",
"mac-public-hostname": "ec2-192-0-2-54.compute-1.amazonaws.com",
"mac-public-ipv4s": "192.0.2.54",
"mac-security-group-ids": "sg-0b07f8f6cb485d4df",
"mac-security-groups": "ura-launch-wizard-harry-1",
"mac-subnet-id": "subnet-0ac62554",
"mac-subnet-ipv4-cidr-block": "192.0.2.0/24",
"mac-subnet-ipv6-cidr-blocks": "2001:db8::/32",
"mac-vpc-id": "vpc-d295a6a7",
"mac-vpc-ipv4-cidr-block": "192.0.2.0/24",
"mac-vpc-ipv4-cidr-blocks": "192.0.2.0/24",
"mac-vpc-ipv6-cidr-blocks": "2001:db8::/32",
"placement-availability-zone": "us-east-1a",
"placement-availability-zone-id": "use1-az4",
"placement-group-name": "a-placement-group",
"placement-host-id": "h-0da999999f9999fb9",
"placement-partition-number": "1",
"placement-region": "us-east-1",
"product-codes": "3iplms73etrdhxdepv72l6ywj",
"public-hostname": "ec2-192-0-2-54.compute-1.amazonaws.com",
"public-ipv4": "192.0.2.54",
"public-key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/JxGByvHDHgQAU+0nRFWdvMPi22OgNUn9ansrI8QN1ZJGxD1ML8DRnJ3Q3zFKqqjGucfNWW0xpVib+ttkIBp8G9P/EOcX9C3FF63O3SnnIUHJsp5faRAZsTJPx0G5HUbvhBvnAcCtSqQgmr02c1l582vAWx48pOmeXXMkl9qe9V/s7K3utmeZkRLo9DqnbsDlg5GWxLC/rWKYaZR66CnMEyZ7yBy3v3abKaGGRovLkHNAgWjSSgmUTI1nT5/S2OLxxuDnsC7+BiABLPaqlIE70SzcWZ0swx68Bo2AY9T9ymGqeAM/1T4yRtg0sPB98TpT7WrY5A3iia2UVtLO/xcTt test",
"ramdisk-id": "ari-01bb5768",
"reservation-id": "r-046cb3eca3e201d2f",
"security-groups": "ura-launch-wizard-harry-1",
"services-domain": "amazonaws.com",
"services-partition": "aws",
"tags-instance-name": "test-instance",
"tags-instance-test": "test-tag",
"iam-info": {
"Code": "Success",
"LastUpdated": "2020-04-02T18:50:40Z",
"InstanceProfileArn": "arn:aws:iam::896453262835:instance-profile/baskinc-role",
"InstanceProfileId": "AIPA5BOGHHXZELSK34VU4"
},
"iam-security-credentials-role": "baskinc-role",
"iam-security-credentials": {
"Code": "Success",
"LastUpdated": "2020-04-02T18:50:40Z",
"Type": "AWS-HMAC",
"AccessKeyId": "12345678901",
"SecretAccessKey": "v/12345678901",
"Token": "TEST92test48TEST+y6RpoTEST92test48TEST/8oWVAiBqTEsT5Ky7ty2tEStxC1T==",
"Expiration": "2020-04-02T00:49:51Z"
},
"elastic-inference-associations": "eia-bfa21c7904f64a82a21b9f4540169ce1",
"elastic-inference-accelerator": {
"version_2018_04_12": {
"elastic-inference-accelerator-id": "eia-bfa21c7904f64a82a21b9f4540169ce1",
"elastic-inference-accelerator-type": "eia1.medium"
}
}
}
},
"dynamic": {
"paths": {
"instance-identity-document": "/latest/dynamic/instance-identity/document",
"instance-identity-pkcs": "/latest/dynamic/instance-identity/pkcs7",
"instance-identity-signature": "/latest/dynamic/instance-identity/signature",
"fws-instance-monitoring": "/latest/dynamic/fws/instance-monitoring"
},
"values": {
"instance-identity-document": {
"accountId": "0123456789",
"imageId": "ami-0b69ea66ff7391e80",
"availabilityZone": "us-east-1f",
"ramdiskId": null,
"kernelId": null,
"devpayProductCodes": null,
"marketplaceProductCodes": null,
"version": "2017-09-30",
"privateIp": "10.0.7.10",
"billingProducts": null,
"instanceId": "i-1234567890abcdef0",
"pendingTime": "2019-10-31T07:02:24Z",
"architecture": "x86_64",
"instanceType": "m4.xlarge",
"region": "us-east-1"
},
"instance-identity-pkcs": "TESTCSqGSIb3DQEHZqCZPIZCZQExCzZJGgUrDgPCGgUZPIZGCSqGSIb3DQEHZaCZJIZEggHderog\nICJhY2NvdW50SWQiIDogIjUxNTPzNjU5NzP4PCIsCiZgImFyY2hpdGVjdHVyZSIgOiZieDg2XzY0\nIirKICZiYXZhaWxhYmlsaXR5Wm9uZSIgOiZidXPtZWFzdC0xYSIsCiZgImJpbGxpbmdQcm9kdWN0\ncyIgOiGudWxsLZogICJkZXZrYXlQcm9kdWN0Q29kZXPiIDogbnVsbCrKICZibWFya2V0cGxhY2VQ\ncm9kdWN0Q29kZXPiIDogbnVsbCrKICZiaW1hZ2VJZCIgOiZiYW1pLTGhODg3ZTQrPWY3NjU0OTP1\nIirKICZiaW5zdGFuY2VJZCIgOiZiaS0rYjU5YTdiN2NlN2UzYmIrYSIsCiZgImluc3RhbmNlVHlr\nZSIgOiZibTQueGxhcmdlIirKICZia2VybmVsSWQiIDogbnVsbCrKICZicGVuZGluZ1RpbWUiIDog\nIjIrPjZtPDPtPDJUPjZ6PzY6NThaIirKICZicHJpdmF0ZUlrIiZ6ICIxNzIuPzEuPzQuNDPiLZog\nICJyYW1kaXNrSWQiIDogbnVsbCrKICZicmVnaW9uIiZ6ICJ1cy1lYXN0LTEiLZogICJ2ZXJzaW9u\nIiZ6ICIyPDE3LTZ5LTPrIgp9ZZZZZZZZPYIGGTCCZRUCZQEraTGcPQsrCQYDVQQGErJVUzEZPGcG\nZ1UECGPQV2FzaGluZ3RvbiGTdGF0ZTEQPZ4GZ1UEGxPHU2VhdHRsZTEgPG4GZ1UEChPXQW1hem9u\nIFdlYiGTZXJ2aWNlcyGPTEPCCQCWukjZ5V4aZzZJGgUrDgPCGgUZoF0rGZYJKoZIhvcNZQkDPQsG\nCSqGSIb3DQEHZTZcGgkqhkiG9r0GCQUxDxcNPjZrPzZyPjZzNzZ1WjZjGgkqhkiG9r0GCQQxFgQU\nN1xlDhvo6cYuGjXZ+mlTW66Ff8rrCQYHKoZIzjgEZrQrPC4CFQCjzjYV1zGUZUxTf6rGO0en/PxR\n3ZIVZK589qSkEaslLdCzeX2GnQ6dz9UeZZZZZZZZ",
"instance-identity-signature": "TesTTKmBbj+DUw6ut6BOr4mFGpax/k6BhIbsotUHvSIhqv7oKqwB4HZhgGP2Gvcxtz5m3QGUbnwI\nhy33GWxjn7+qfZ/GUeZB1Ilc+3rW/P9G/tGxIB3HtqB6q2J6B4DOh6CJiH+BnrHazGW+bJD406Nz\neP9n/rGEGGm0cGEbbeB=",
"fws-instance-monitoring": "disabled"
}
},
"userdata": {
"paths": {
"userdata": "/latest/user-data"
},
"values": {
"userdata": "MTIzNCxqb2huLHJlYm9vdCx0cnVlCg=="
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ discovery:
exports: [metrics, traces]
attributes:
kubernetes:
enable: true
cluster_name: my-kube
select:
http_server_request_duration_seconds_count:
Expand Down
3 changes: 0 additions & 3 deletions internal/test/integration/configs/obi-config-error-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ discovery:
name: testserver
open_ports: 8080
exe_path: "testserver"
attributes:
kubernetes:
enable: true
# Enable context propagation to trigger cgroup operations that may fail
ebpf:
context_propagation: all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ discovery:
exports: [] # test exports field, do not export docker-proxy metrics or traces
attributes:
kubernetes:
enable: true
cluster_name: my-kube
select:
http_server_request_duration_seconds_count:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ discovery:
- exe_path: "{obi,prometheus,otelcol*,all*,launcher}"
attributes:
kubernetes:
enable: true
cluster_name: my-kube
select:
http_server_request_duration_seconds_count:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ discovery:
open_ports: 8090
attributes:
kubernetes:
enable: true
cluster_name: my-kube
select:
http_server_request_duration_seconds_count:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ discovery:
open_ports: 5003
attributes:
kubernetes:
enable: true
cluster_name: my-kube
select:
http_server_request_duration_seconds_count:
Expand Down
Loading