Comments (5)
I ended up getting this working great using dns-sd... if its useful to put in, add to in the docs (or for anyone googling..)
Before starting dockprom I add a little extra to the config
echo "
- job_name: 'services'
scrape_interval: 5s
dns_sd_configs:
- names:
- scrape.me.prometheus
type: 'A'
port: 9999
" >> prometheus/prometheus.yml
Then, on each of my services in docker-compose that I want to be monitored i provide the metrics at ":9999/metrics" and add the right alias...
my-service:
image: "super-special-service:latest"
networks:
default:
aliases:
- scrape.me.prometheus
And add prometheus to the network docker-compose made for my app....
docker network connect myapp_default prometheus
And, done!
from dockprom.
Hello, I have a question, I have multiple services from the same web application but each is a different environments, I'm using this config:
- job_name: 'app'
metrics_path: /services/app/metrics
scheme: https
scrape_interval: 5s
tls_config:
insecure_skip_verify: true
dns_sd_configs:
- names:
- 'tasks.app'
type: 'A'
port: 443
How can I get like a Swarm Service Label || Container Label || Task Label in order to differentiate each task?
from dockprom.
Your config is similar to what I've used for Docker Swarm in this project swarmprom.
How will you differentiate the services since the job name will be the same for all? The containers IPs will change after each deploy.
from dockprom.
Hmm. I... don't know. Something fun to play with next.
from dockprom.
My approche was this https://github.com/stefanprodan/swarmprom#monitoring-applications-and-backend-services
from dockprom.
Related Issues (20)
- Removed
- Alerting for any docker container HOT 3
- How to clean all data without remove all dashboard from grafana
- Expose cAdvisor web interface in caddy HOT 1
- Caddy generated password error
- Grafana v9.1.1 (9e60a1bff1) show no preconfigured dashboards by default HOT 2
- invalid interpolation format for services.caddy.environment.[]: "$2a$14$1l.IozJ...". You may need to escape any $ with another $. HOT 8
- container disk usage so high HOT 3
- How to have Docker Container dashboard show the containers used for monitoring? HOT 1
- Can't login to prometheus HOT 1
- Adding a log scraper
- Duplicate container names HOT 1
- Where is the dockprom_network configuration? HOT 1
- Help please HOT 2
- Only 7 days of logging. HOT 2
- Server temperatures and fan speeds. HOT 1
- docker-compose up -d 报错:ERROR HOT 1
- understaing the meaning of cpu usage graph in grafana HOT 2
- Storage Load N/A HOT 4
- Dockprom failing to build due to ssl version error HOT 2
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 dockprom.