When I use the following configuration file:
apiVersion: v1
kind: ConfigMap
metadata:
name: promtail-config
namespace: trainee-playground-1
data:
config.yml: |
server:
http_listen_port: 9080
grpc_listen_port: 0
log_level: debug
clients:
- url: http://loki:3100/loki/api/v1/push
positions:
filename: /tmp/positions.yaml
scrape_configs:
- job_name: pod-logs
kubernetes_sd_configs:
- role: **pod**
namespaces:
names:
- trainee-playground-1
I cannot see any targets on the loki api.
but when i use
apiVersion: v1
kind: ConfigMap
metadata:
name: promtail-config
namespace: trainee-playground-1
data:
config.yml: |
server:
http_listen_port: 9080
grpc_listen_port: 0
log_level: debug
clients:
- url: http://loki:3100/loki/api/v1/push
positions:
filename: /tmp/positions.yaml
scrape_configs:
- job_name: pod-logs
kubernetes_sd_configs:
- role: **service**
namespaces:
names:
- trainee-playground-1
i can see 12 services, why is that? on the logs I don’t see anything different, just not the part of new target found