Git Product home page Git Product logo

Comments (2)

Abuelodelanada avatar Abuelodelanada commented on June 27, 2024

Hi @sed-i

Seems the issues are solved, look:

About the first issue:

remove relation prom trfk -> web ext url still has ingress path.

  1. Deploy cos-lite (edge) using tls-overlay: juju deploy cos-lite --channel=edge --trust --overlay ./repos/tls-overlay.yaml
Model  Controller  Cloud/Region        Version  SLA          Timestamp
cos    microk8s    microk8s/localhost  3.1.6    unsupported  12:53:09-03:00

App           Version  Status  Scale  Charm                     Channel  Rev  Address         Exposed  Message
alertmanager  0.25.0   active      1  alertmanager-k8s          edge      96  10.152.183.183  no       
ca                     active      1  self-signed-certificates  edge      51  10.152.183.17   no       
catalogue              active      1  catalogue-k8s             edge      33  10.152.183.47   no       
external-ca            active      1  self-signed-certificates  edge      51  10.152.183.74   no       
grafana       9.2.1    active      1  grafana-k8s               edge      93  10.152.183.184  no       
loki          2.7.4    active      1  loki-k8s                  edge     105  10.152.183.145  no       
prometheus    2.47.2   active      1  prometheus-k8s            edge     158  10.152.183.157  no       
traefik       2.10.4   active      1  traefik-k8s               edge     164  192.168.1.250   no       

Unit             Workload  Agent  Address      Ports  Message
alertmanager/0*  active    idle   10.1.38.78          
ca/0*            active    idle   10.1.38.114         
catalogue/0*     active    idle   10.1.38.109         
external-ca/0*   active    idle   10.1.38.119         
grafana/0*       active    idle   10.1.38.122         
loki/0*          active    idle   10.1.38.65          
prometheus/0*    active    idle   10.1.38.101         
traefik/0*       active    idle   10.1.38.70  
  1. Check the --web.external-url has ingress path /cos-prometheus-0:
root@prometheus-0:/# ps ax | grep "web.external-url" | grep -v "grep"
   1280 ?        Sl     0:00 /bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus --web.enable-lifecycle --web.console.templates=/usr/share/prometheus/consoles --web.console.libraries=/usr/share/prometheus/console_libraries --web.config.file=/etc/prometheus/prometheus-web-config.yml --web.external-url=https://prometheus-0.prometheus-endpoints.cos.svc.cluster.local:9090/cos-prometheus-0 --web.route-prefix=/ --web.enable-remote-write-receiver --log.level=info --storage.tsdb.retention.time=15d --storage.tsdb.retention.size=0.8GB
  1. Remove the relation between prometheus and traefik: juju remove-relation prometheus:ingress traefik
  2. Check the --web.external-url has no ingress path:
root@prometheus-0:/# ps ax | grep "web.external-url" | grep -v "grep"
   1460 ?        Sl     0:00 /bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus --web.enable-lifecycle --web.console.templates=/usr/share/prometheus/consoles --web.console.libraries=/usr/share/prometheus/console_libraries --web.config.file=/etc/prometheus/prometheus-web-config.yml --web.external-url=https://prometheus-0.prometheus-endpoints.cos.svc.cluster.local:9090 --web.route-prefix=/ --web.enable-remote-write-receiver --log.level=info --storage.tsdb.retention.time=15d --storage.tsdb.retention.size=0.8GB
  1. Relate prometheus to traefik again and check the --web.external-url has ingress path /cos-prometheus-0:
root@prometheus-0:/# ps ax | grep "web.external-url" | grep -v "grep"
   1591 ?        Sl     0:00 /bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus --web.enable-lifecycle --web.console.templates=/usr/share/prometheus/consoles --web.console.libraries=/usr/share/prometheus/console_libraries --web.config.file=/etc/prometheus/prometheus-web-config.yml --web.external-url=https://prometheus-0.prometheus-endpoints.cos.svc.cluster.local:9090/cos-prometheus-0 --web.route-prefix=/ --web.enable-remote-write-receiver --log.level=info --storage.tsdb.retention.time=15d --storage.tsdb.retention.size=0.8GB

About the second issue:

remove relation prom ca -> trfk yaml still has https

  1. Deploy cos-lite (edge) using tls-overlay: juju deploy cos-lite --channel=edge --trust --overlay ./repos/tls-overlay.yaml
Model  Controller  Cloud/Region        Version  SLA          Timestamp
cos    microk8s    microk8s/localhost  3.1.6    unsupported  12:53:09-03:00

App           Version  Status  Scale  Charm                     Channel  Rev  Address         Exposed  Message
alertmanager  0.25.0   active      1  alertmanager-k8s          edge      96  10.152.183.183  no       
ca                     active      1  self-signed-certificates  edge      51  10.152.183.17   no       
catalogue              active      1  catalogue-k8s             edge      33  10.152.183.47   no       
external-ca            active      1  self-signed-certificates  edge      51  10.152.183.74   no       
grafana       9.2.1    active      1  grafana-k8s               edge      93  10.152.183.184  no       
loki          2.7.4    active      1  loki-k8s                  edge     105  10.152.183.145  no       
prometheus    2.47.2   active      1  prometheus-k8s            edge     158  10.152.183.157  no       
traefik       2.10.4   active      1  traefik-k8s               edge     164  192.168.1.250   no       

Unit             Workload  Agent  Address      Ports  Message
alertmanager/0*  active    idle   10.1.38.78          
ca/0*            active    idle   10.1.38.114         
catalogue/0*     active    idle   10.1.38.109         
external-ca/0*   active    idle   10.1.38.119         
grafana/0*       active    idle   10.1.38.122         
loki/0*          active    idle   10.1.38.65          
prometheus/0*    active    idle   10.1.38.101         
traefik/0*       active    idle   10.1.38.70  
  1. Check traefik config for prometheus has https:
root@traefik-0:/opt/traefik/juju# cat juju_ingress_ingress-per-unit_35_prometheus.yaml | grep url
        - url: https://prometheus-0.prometheus-endpoints.cos.svc.cluster.local:9090
  1. Remove the relation between prometheus an ca: juju remove-relation prometheus ca
  2. Check traefik config for prometheus has http:
root@traefik-0:/opt/traefik/juju# cat juju_ingress_ingress-per-unit_35_prometheus.yaml | grep url
        - url: http://prometheus-0.prometheus-endpoints.cos.svc.cluster.local:9090
  1. Relate prometheus to ca again: `juju relate prometheus ca
  2. Check traefik config for prometheus has https:
root@traefik-0:/opt/traefik/juju# cat juju_ingress_ingress-per-unit_35_prometheus.yaml | grep url
        - url: https://prometheus-0.prometheus-endpoints.cos.svc.cluster.local:9090

from prometheus-k8s-operator.

Abuelodelanada avatar Abuelodelanada commented on June 27, 2024

I close it for now.
Let's open it again if the issue re-appears

from prometheus-k8s-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.