Skip to content

Commit

Permalink
Merge branch 'main' into tlscheckreceiver
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-burt authored Sep 26, 2024
2 parents 2ff08e5 + 568ada3 commit 4732a4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions extension/observer/k8sobserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ All fields are optional.
| observe_nodes | bool | `false` | Whether to report observer k8s.node endpoints. If `true` and `node` is specified it will only discover node endpoints whose `metadata.name` matches the provided node name. If `true` and `node` isn't specified, it will discover all available node endpoints. Please note that Collector connectivity to nodes is dependent on your cluster configuration and isn't guaranteed.|
| observe_services | bool | `false` | Whether to report observer k8s.service endpoints.|
| observe_ingresses | bool | `false` | Whether to report observer k8s.ingress endpoints.|

More complete configuration examples on how to use this observer along with the `receiver_creator`,
can be found at the [Receiver Creator](../../../receiver/receivercreator/README.md)'s documentation.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Config struct {
metadata.MetricsBuilderConfig `mapstructure:",squash"`
confighttp.ClientConfig `mapstructure:",squash"`
internal.ScraperConfig
// GitHubOrg is the name of the GitHub organization to srape (github scraper only)
// GitHubOrg is the name of the GitHub organization to scrape (github scraper only)
GitHubOrg string `mapstructure:"github_org"`
// SearchQuery is the query to use when defining a custom search for repository data
SearchQuery string `mapstructure:"search_query"`
Expand Down
8 changes: 7 additions & 1 deletion receiver/receivercreator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ None
| k8s.node.name | \`name\` |
| k8s.node.uid | \`uid\` |

`type == "k8s.ingress"`

| Resource Attribute | Default |
|--------------------|-------------------|
| k8s.namespace.name | \`namespace\` |

See `redis/2` in [examples](#examples).


Expand All @@ -149,7 +155,7 @@ Similar to the per-endpoint type `resource_attributes` described above but for i

## Rule Expressions

Each rule must start with `type == ("pod"|"port"|"hostport"|"container"|"k8s.service"|"k8s.node") &&` such that the rule matches
Each rule must start with `type == ("pod"|"port"|"hostport"|"container"|"k8s.service"|"k8s.node"|"k8s.ingress") &&` such that the rule matches
only one endpoint type. Depending on the type of endpoint the rule is
targeting it will have different variables available.

Expand Down

0 comments on commit 4732a4a

Please sign in to comment.