Commit c6de64e5 authored by kesnar's avatar kesnar
Browse files

refactor: change automation->ztp for metrics and license

parent c47401f9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -277,9 +277,9 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  namespace: monitoring # namespace where prometheus is running
  name: tfs-automationservice-metric
  name: tfs-ztpservice-metric
  labels:
    app: automationservice
    app: ztpservice
    #release: prometheus
    #release: prom  # name of the release 
    # ( VERY IMPORTANT: You need to know the correct release name by viewing 
@@ -290,7 +290,7 @@ spec:
    matchLabels:
      # Target app service
      #namespace: tfs
      app: automationservice # same as above
      app: ztpservice # same as above
      #release: prometheus # same as above
  endpoints:
  - port: metrics # named port in target app
+2 −2
Original line number Diff line number Diff line
@@ -55,8 +55,8 @@ def skip_file(file_path : str) -> bool:
    if '/.mvn/' in file_path: return True
    if '/hackfest/kafka/kafka_2.13-2.8.0' in file_path: return True
    if '/src/device/service/drivers/openconfig/templates/' in file_path: return True
    if '/automation/target/generated-sources/grpc/' in file_path: return True
    if '/automation/target/kubernetes/' in file_path: return True
    if '/ztp/target/generated-sources/grpc/' in file_path: return True
    if '/ztp/target/kubernetes/' in file_path: return True
    if '/policy/target/generated-sources/grpc/' in file_path: return True
    if '/policy/target/kubernetes/' in file_path: return True
    if '/src/dlt/gateway/' in file_path: return True