Comments (2)
Hi @sed-i
Seems the issues are solved, look:
About the first issue:
remove relation prom trfk -> web ext url still has ingress path.
- 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
- 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
- Remove the relation between prometheus and traefik:
juju remove-relation prometheus:ingress traefik
- 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
- 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
- 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
- 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
- Remove the relation between prometheus an ca:
juju remove-relation prometheus ca
- 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
- Relate prometheus to ca again: `juju relate prometheus ca
- 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.
I close it for now.
Let's open it again if the issue re-appears
from prometheus-k8s-operator.
Related Issues (20)
- Add `params` to scrape job configuration
- Inconsistent scrape interval in Prometheus and Grafana breaks graphs with `$__rate_interval`
- hardcoded scape_interval=1m is causing more issues than solving problems HOT 4
- The charm size got 10x bigger due to cygrpc.cpython-38-x86_64-linux-gnu.so with debug symbols HOT 2
- Non-functional deployment with latest/edge - /cos-prometheus-0: 404 Not Found HOT 3
- After removing the relation with scrape-inteval-config old alert rules are still in Prometheus HOT 5
- Alert rules from different sources can overwrite each other HOT 13
- Broken scrape jobs can get past our checks
- Stuck on BlockedStatus even after `maximum_retention_size` config option changed to valid
- Out of order sample from remote write HOT 3
- [MetricsEndpointAggregator] Group name should be rendered using unit name, not app name HOT 1
- Topology labels are overridden in MetricsEndpointProvider HOT 1
- "certificates-relation-changed" hook failed during deployment HOT 3
- Set external URL as a Grafana Data Source HOT 4
- cannot stop service: promtail service does not exist HOT 1
- Internal url is rendered as the "source" in alerts
- Charm reports permission denied when setting relation data HOT 2
- Remove the check `if alert_rules_as_dict` in `MetricsEndpointProvider`
- chore: update libraries to new major versions
- `prometheus_scrape` relation should block charm for cross-model relations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-k8s-operator.