Skip to content

Instantly share code, notes, and snippets.

@yashrsharma44
Last active September 6, 2021 09:48
Show Gist options
  • Save yashrsharma44/02f5765c5710dd09ce5d14e854f22825 to your computer and use it in GitHub Desktop.
Save yashrsharma44/02f5765c5710dd09ce5d14e854f22825 to your computer and use it in GitHub Desktop.
Final YAML config file for request logging in Thanos
# Dummy Configuration file for Request Logging in Thanos.
# The options field can be added individually for http/grpc.
# If you want to add config for both grpc/http, indent the config field at the same level of http/grpc
http:
config:
- path: /api/v1/query
port: 10904
- path: apiv1/app_range/metrics
port: 3456
options: # This options is applied for both grpc/http.
level: ERROR
decision:
log_start: true
log_end: true
grpc:
config:
- service: thanos.Store
method: Info
# The options can be applied for each protocol, or for all protocols
http:
config:
- path: /api/v1/query
port: 10904
- path: apiv1/app_range/metrics
port: 3456
options: # This options is applied for http.
level: ERROR
decision:
log_start: true
log_end: true
grpc:
config:
- service: thanos.Store
method: Info
@ahfuzhang
Copy link

where can I get a complete example ? or a document of all items, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment