Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Saswata Mukherjee <[email protected]>
Signed-off-by: Nicolas Takashi <[email protected]>
  • Loading branch information
nicolastakashi and saswatamcode authored Dec 20, 2024
1 parent 12dbf04 commit 63ce67b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ func (rc *receiveConfig) registerFlag(cmd extkingpin.FlagClause) {
cmd.Flag("receive.limits-config-reload-timer", "Minimum amount of time to pass for the limit configuration to be reloaded. Helps to avoid excessive reloads.").
Default("1s").Hidden().DurationVar(&rc.limitsConfigReloadTimer)

cmd.Flag("receive.otlp-disable-target-info", "Disable target information in OTLP metrics.").Default("false").BoolVar(&rc.otlpDisableTargetInfo)
cmd.Flag("receive.otlp-resource-attributes", "Resource attributes to include in OTLP metrics.").Default("").StringsVar(&rc.otlpResourceAttributes)
cmd.Flag("receive.otlp-disable-target-info", "Disable target information OTLP metrics ingested by Receive.").Default("false").BoolVar(&rc.otlpDisableTargetInfo)
cmd.Flag("receive.otlp-resource-attributes", "(Repeatable) Resource attributes to include in OTLP metrics ingested by Receive.").Default("").StringsVar(&rc.otlpResourceAttributes)

rc.featureList = cmd.Flag("enable-feature", "Comma separated experimental feature names to enable. The current list of features is "+metricNamesFilter+".").Default("").Strings()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func NewHandler(logger log.Logger, o *Options) *Handler {
)

h.router.Post(
"/v1/metrics",
"/api/v1/otlp",
instrf(
"otlp",
readyf(
Expand Down

0 comments on commit 63ce67b

Please sign in to comment.