Benign go download unavailable

github.com/DataDog/datadog-agent/comp/otelcol/status/impl v0.83.0

Go module source archive layoutemp3r0r RuntimeConfig agent runtime settings
SHA-256995f235f8bb373cd9628ebc8094b0e550c214bcd12c7037b5a3173a35e8c1e12

Evidence

imports encoding/json lines 6–33
6:47… mponent interface
7package statusimpl
8
9import (
10 "bytes"
11 "embed"
12 "encoding/json"
13 "fmt"
14 "io"
15 "strconv"
16 "strings"
17
18 "go.yaml.in/yaml/v3"
19
20 "github.com/DataDog/datadog-agent/comp/core/config"
21 ipc "github.com/DataDog/datadog-agent/comp/core/ipc/def"
22 ipchttp "github.com/DataDog/datadog-agent/comp/core/ipc/httphelpers"
23 statusComponent "github.com/DataDog/datadog-agent/comp/core/status"
24 ddflareextensiontypes "github.com/DataDog/datadog-agent/comp/otelcol/ddflareextension/types"
25 status "github.com/DataDog/datadog-agent/comp/otelcol/status/def"
26 "github.com/DataDog/datadog-agent/pkg/util/hostport"
27 "github.com/DataDog/datadog-agent/pkg/util/prometheus"
28)
29
⋯4 lines
Failed logs storage key lines 88–97
88:19… 0.0,
89 "failed_spans": 0.0,
90 "failed_metrics": 0.0,
91 "failed_logs": 0.0,
92 },
93 }
⋯4 lines
Unmarshals YAML data in Go lines 130–138
130:77… error) {
131 var runtimeConfig prometheusRuntimeConfig
132 if err := yaml.Unmarshal([]byte(extensionResp.RuntimeConfig), &runtimeConfig); err != nil {
133 return "", err
134 }
135 prometheusHost := "localhost"
136 prometheusPort := 8888
137 for _, reader := range runtimeConfig.Service.Telemetry.Metrics.Readers {
138 prometheusEndpoint := re …
HTTP numbered metrics route lines 141–148
141:27… heusEndpoint.Port
142 break
143 }
144 }
145 return fmt.Sprintf("http://%s/metrics", hostport.Join(prometheusHost, strconv.Itoa(prometheusPort))), nil
146}
147
148func (s statusProvider) populatePrometheusStatus(prometh …
Go JSON unmarshal call lines 204–212
204:4…
205 }
206 var extensionResp ddflareextensiontypes.Response
207 if err = json.Unmarshal(resp, &extensionResp); err != nil {
208 return map[string]interface{}{
209 "url": extensionURL,
210 "error": err.Error(),
211 }
212 }

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.