Code2Life / nodess-apps

Published applications of node serverless framework (nodess - based on node-http-adapter)
7 stars 0 forks source link

nodess-apps/zoom-alert-2.0 "view detail metrics" grafana link needed with server_name instead of the localhost #4

Open AmilaDevops opened 3 years ago

AmilaDevops commented 3 years ago

@all @Code2Life here I'm in a trouble I'm running your app code2life/http-adapter:1.0.2 as a docker container

image

my issue is as in above screen shot as you guys can see when I receive zoom prometheus notification alerts via your app "view detail metrics" url having a localhost grafana url but I need it to be the server_name instead of the localhost url. (because I need to access the site from external network)

such as when click the "view detail metrics" that url will be http://**localhost**:9095/d/ but instead of localhost I need it to be http://**grafana-server-name**:9095/d/

applechaning commented 1 year ago
  1. view detail metrics - Update your promethes configuration, add the externalUrl should work .... evaluationInterval: 1m externalUrl: http://your_prometheus_server image: prom/prometheus:v2.34.0 nodeSelector: kubernetes.io/os: linux