Pārlūkot izejas kodu

traefik prometheus

Josh Bicking 5 mēneši atpakaļ
vecāks
revīzija
dc79d190d9

+ 2 - 2
lidarr_empty_folders.py

@@ -10,7 +10,7 @@ if len(sys.argv) != 4:
 lidarr_server, lidarr_api_key, music_folder = sys.argv[1:4]
 
 resp = requests.get(
-    f"http://{lidarr_server}/api/v1/artist",
+    f"{lidarr_server}/api/v1/artist",
     headers={"Authorization": f"Bearer {lidarr_api_key}"}
     )
 artists = resp.json()
@@ -20,4 +20,4 @@ for artist in artists:
      artist_path = music_folder + artist_name
      if ('/' not in artist_name) and (not os.path.exists(artist_path)):
         print("Creating ", artist_path)
-        os.mkdir(artist_path)
+        os.mkdir(artist_path)

+ 2 - 1
monitoring/prometheus/prometheus.yaml

@@ -25,6 +25,7 @@ spec:
       - traefik
       - rook-ceph-mgr
       - cloudflared
+      - shelly-plug-prometheus
   serviceMonitorNamespaceSelector:
     matchExpressions:
     - key: kubernetes.io/metadata.name
@@ -39,4 +40,4 @@ spec:
         storageClassName: ceph-block
         resources:
           requests:
-            storage: 20Gi
+            storage: 50Gi

+ 0 - 1
monitoring/targets/cloudflared-servicemonitor.yaml

@@ -15,4 +15,3 @@ spec:
   selector:
     matchLabels:
       app: cloudflared-metrics
-

+ 1 - 2
monitoring/targets/traefik-servicemonitor.yaml

@@ -3,7 +3,6 @@ kind: ServiceMonitor
 metadata:
   labels:
     app: traefik
-    release: prometheus
     name: traefik
   name: traefik
   namespace: monitoring
@@ -15,4 +14,4 @@ spec:
     - kube-system
   selector:
     matchLabels:
-      app: traefik-metrics
+      app.kubernetes.io/name: traefik

+ 3 - 0
traefik-helmchartconfig.yaml

@@ -32,6 +32,9 @@ spec:
       #- "--log.level=DEBUG"
       #- "--certificatesresolvers.letsencrypt.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory"
 
+    ports:
+      metrics:
+        expose: true
     volumes:
       - name: traefik-config
         mountPath: "/config"