mrproliu commented on a change in pull request #59:
URL:
https://github.com/apache/skywalking-satellite/pull/59#discussion_r685909351
##########
File path: configs/satellite_config.yaml
##########
@@ -247,3 +247,51 @@ pipes:
client_name: grpc-client
forwarders:
- plugin_name: nativemeter-grpc-forwarder
+ - common_config:
+ pipe_name: prometheus-fetcher
+ gatherer:
+ fetcher:
+ plugin_name: "prometheus-metrics-fetcher"
+ scrape_configs:
+ - job_name: 'prometheus'
+ metrics_path: '/metrics'
+ scrape_interval: 10s
+ static_configs:
+ - targets:
+ - "127.0.0.1:9100"
+ - job_name: 'prometheus-k8s'
+ metrics_path: '/metrics'
+ scrape_interval: 10s
+ tls_config:
+ ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
+ bearer_token_file:
/var/run/secrets/kubernetes.io/serviceaccount/token
+ kubernetes_sd_configs:
+ - role: pod
+ selectors:
+ - role: pod
+ label: "app=prometheus"
+ relabel_configs:
+ - source_labels: [ __meta_kubernetes_pod_name ]
+ separator: ;
+ regex: (.*)
+ target_label: pod
+ replacement: $1
+ action: replace
+ queue:
+ plugin_name: "memory-queue"
+ # The maximum buffer event size.
+ event_buffer_size: ${SATELLITE_QUEUE_EVENT_BUFFER_SIZE:5000}
+ processor:
+ filters:
+ sender:
+ fallbacker:
+ plugin_name: none-fallbacker
+ # The time interval between two flush operations. And the time unit is
millisecond.
+ flush_time: ${SATELLITE_LOGPIPE_SENDER_FLUSH_TIME:1000}
Review comment:
Please rename the environment key, is not the log pipeline.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]