You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/08/10 11:06:26 UTC

[GitHub] [skywalking-satellite] gxthrj commented on a change in pull request #59: feat: add Prometheus service discovery in Kubernetes

gxthrj commented on a change in pull request #59:
URL: https://github.com/apache/skywalking-satellite/pull/59#discussion_r685917113



##########
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:
       instead with `SATELLITE_PROMETHEUS_*`




-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org