You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`--cluster.node-name`: The name to use for this node (defaults to the environment's hostname).
47
48
*`--cluster.join-addresses`: Comma-separated list of addresses to join the cluster at (default `""`). Mutually exclusive with `--cluster.discover-peers`.
@@ -178,6 +179,7 @@ Refer to [alloy convert][] for more details on how `extra-args` work.
Copy file name to clipboardExpand all lines: docs/sources/reference/stdlib/array.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,3 +32,54 @@ Elements within the list can be any type.
32
32
> array.concat([[1, 2], [3, 4]], [[5, 6]])
33
33
[[1, 2], [3, 4], [5, 6]]
34
34
```
35
+
36
+
## array.combine_maps
37
+
38
+
> **EXPERIMENTAL**: This is an [experimental][] feature. Experimental
39
+
> features are subject to frequent breaking changes, and may be removed with
40
+
> no equivalent replacement. The `stability.level` flag must be set to `experimental`
41
+
> to use the feature.
42
+
43
+
The `array.combine_maps` function allows you to join two arrays of maps if certain keys have matching values in both maps. It's particularly useful when combining labels of targets coming from different `prometheus.discovery.*` or `prometheus.exporter.*` components.
44
+
It takes three arguments:
45
+
46
+
* The first two arguments are a of type `list(map(string))`. The keys of the map are strings.
47
+
The value for each key could be of any Alloy type such as a `string`, `integer`, `map`, or a `capsule`.
48
+
* The third input is an `array` containing strings. The strings are the keys whose value has to match for maps to be combined.
49
+
50
+
The maps that don't contain all the keys provided in the third argument will be discarded. When maps are combined and both contain the same keys, the last value from the second argument will be used.
{{< docs/public-preview product="Generate support bundle" >}}
14
+
15
+
The `/-/support?duration=N` endpoint returns a support bundle, a zip file that contains information
16
+
about a running {{< param "PRODUCT_NAME" >}} instance, and can be used as a baseline of information when trying
17
+
to debug an issue.
18
+
19
+
This feature is not covered by our [backward-compatibility][backward-compatibility] guarantees.
20
+
21
+
{{< admonition type="note" >}}
22
+
This endpoint is enabled by default, but may be disabled using the `--disable-support-bundle` runtime flag.
23
+
{{< /admonition >}}
24
+
25
+
The duration parameter is optional, must be less than or equal to the
26
+
configured HTTP server write timeout, and if not provided, defaults to it.
27
+
The endpoint is only exposed to the {{< param "PRODUCT_NAME" >}} HTTP server listen address, which
28
+
defaults to `localhost:12345`.
29
+
30
+
The support bundle contains all information in plain text, so you can
31
+
inspect it before sharing to verify that no sensitive information has leaked.
32
+
33
+
In addition, you can inspect the [supportbundle implementation](https://github.com/grafana/alloy/tree/internal/service/http/supportbundle.go)
34
+
to verify the code used to generate these bundles.
35
+
36
+
A support bundle contains the following data:
37
+
*`alloy-components.json` contains information about the [components][components] running on this {{< param "PRODUCT_NAME" >}} instance, generated by the
38
+
`/api/v0/web/components` endpoint.
39
+
*`alloy-logs.txt` contains the logs during the bundle generation.
40
+
*`alloy-metadata.yaml` contains the {{< param "PRODUCT_NAME" >}} build version and the installation's operating system, architecture, and uptime.
41
+
*`alloy-metrics.txt` contains a snapshot of the internal metrics for {{< param "PRODUCT_NAME" >}}.
42
+
*`alloy-peers.json` contains information about the identified cluster peers of this {{< param "PRODUCT_NAME" >}} instance, generated by the
43
+
`/api/v0/web/peers` endpoint.
44
+
*`alloy-runtime-flags.txt` contains the values of the runtime flags available in {{< param "PRODUCT_NAME" >}}.
45
+
* The `pprof/` directory contains Go runtime profiling data (CPU, heap, goroutine, mutex, block profiles) as exported by the pprof package.
46
+
Refer to the [profile][profile] documentation for more details on how to use this information.
@@ -63,6 +75,16 @@ func ComponentReferences(cn dag.Node, g *dag.Graph, l log.Logger, scope *vm.Scop
63
75
refs=append(refs, ref)
64
76
} elseifscope.IsStdlibDeprecated(t[0].Name) {
65
77
level.Warn(l).Log("msg", "this stdlib function is deprecated; please refer to the documentation for updated usage and alternatives", "function", t[0].Name)
0 commit comments