Created
August 15, 2023 08:56
-
-
Save edeNFed/c0fa40c08fcea2ef427085a6ca21aa3a to your computer and use it in GitHub Desktop.
config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
receivers: | |
filelog: | |
include: [ /root/emojivoto/emoji.log, /root/emojivoto/voting.log, /root/emojivoto/web.log ] | |
operators: | |
- type: regex_parser | |
regex: '^(?P<msg>.*)$' | |
otlp: | |
protocols: | |
grpc: | |
endpoint: localhost:4319 | |
http: | |
endpoint: localhost:4320 | |
# Dummy receiver that's never used, because a pipeline is required to have one. | |
otlp/spanmetrics: | |
protocols: | |
grpc: | |
endpoint: "localhost:12345" | |
processors: | |
batch: | |
spanmetrics: | |
metrics_exporter: prometheusremotewrite/prometheus | |
latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 100ms, 250ms] | |
dimensions: | |
- name: http.method | |
default: GET | |
- name: http.status_code | |
dimensions_cache_size: 1000 | |
aggregation_temporality: "AGGREGATION_TEMPORALITY_CUMULATIVE" | |
metrics_flush_interval: 15s | |
servicegraph: | |
metrics_exporter: prometheusremotewrite/prometheus # Exporter to send metrics to | |
latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 100ms, 250ms] # Buckets for latency histogram | |
dimensions: [cluster, namespace] # Additional dimensions (labels) to be added to the metrics extracted from the resource and span attributes | |
store: # Configuration for the in-memory store | |
ttl: 2s # Value to wait for an edge to be completed | |
max_items: 200 # Amount of edges that will be stored in the storeMap | |
cache_loop: 2m # the time to cleans the cache periodically | |
store_expiration_loop: 10s # the time to expire old entries from the store periodically. | |
virtual_node_peer_attributes: | |
- db.name | |
- rpc.service | |
exporters: | |
loki: | |
endpoint: http://localhost:3100/loki/api/v1/push | |
otlp: | |
endpoint: localhost:4317 | |
tls: | |
insecure: true | |
prometheusremotewrite/prometheus: | |
endpoint: http://localhost:9090/api/v1/write | |
service: | |
pipelines: | |
traces: | |
receivers: [otlp] | |
processors: [batch, servicegraph] | |
exporters: [otlp] | |
metrics: | |
receivers: [otlp] | |
processors: [batch] | |
exporters: [prometheusremotewrite/prometheus] | |
logs: | |
receivers: [filelog] | |
processors: [batch] | |
exporters: [loki] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment