General availability (GA) Open source Grafana Cloud

discovery.linode

discovery.linode allows you to retrieve scrape targets from Linode’s Linode APIv4. This service discovery uses the public IPv4 address by default, but that can be changed with relabeling.

Usage

Alloy
discovery.linode "<LABEL>" {
    bearer_token = "<LINODE_API_TOKEN>"
}

Note

You must create the Linode APIv4 Token with the scopes: linodes:read_only, ips:read_only, and events:read_only.

Arguments

You can use the following arguments with discovery.linode:

NameTypeDescriptionDefaultRequired
bearer_token_filestringFile containing a bearer token to authenticate with.no
bearer_tokensecretBearer token to authenticate with.no
enable_http2boolWhether HTTP2 is supported for requests.trueno
follow_redirectsboolWhether redirects returned by the server should be followed.trueno
http_headersmap(list(secret))Custom HTTP headers to be sent along with each request. The map key is the header name.no
no_proxystringComma-separated list of IP addresses, CIDR notations, and domain names to exclude from proxying.no
portintPort that metrics are scraped from.80no
proxy_connect_headermap(list(secret))Specifies headers to send to proxies during CONNECT requests.no
proxy_from_environmentboolUse the proxy URL indicated by environment variables.falseno
proxy_urlstringHTTP proxy to send requests through.no
refresh_intervaldurationThe time to wait between polling update requests."60s"no
regionstringA region to filter on.no
tag_separatorstringThe string by which Linode Instance tags are joined into the tag label.","no

At most, one of the following can be provided: