Questions tagged prometheus

Explore the latest questions and answers asked by our top developers.

Prometheus service discovery with docker-compose

I have the following docker-compose file: version: ‘3.4’ services: serviceA: image: <image> command: <command> labels: servicename: "service-A" ports: – "8080:8080" serviceB: image: <image> command: <command> labels: servicename: "service-B" ports: – "8081:8081" prometheus: image: prom/prometheus:v2.32.1 container_name: prometheus volumes: – ./prometheus:/etc/prometheus – prometheus_data:/prometheus command: – ‘–config.file=/etc/prometheus/prometheus.yml’ – ‘–storage.tsdb.path=/prometheus’ – ‘–web.console.libraries=/etc/prometheus/console_libraries’ – ‘–web.console.templates=/etc/prometheus/consoles’ – ‘–storage.tsdb.retention.time=200h’ – ‘–web.enable-lifecycle’ restart: […]

Error running prometheus_exporter gem in docker container

I’m trying to start the prometheus_exporter gem with -b 0.0.0.0 parameter, in a docker container. I get this error: remote: /usr/local/lib/ruby/2.6.0/socket.rb:227:in `getaddrinfo’: getaddrinfo: Name or service not known (SocketError) remote: from /usr/local/lib/ruby/2.6.0/socket.rb:227:in `foreach’ remote: from /usr/local/lib/ruby/2.6.0/socket.rb:762:in `tcp_server_sockets’ remote: from /usr/local/lib/ruby/2.6.0/webrick/utils.rb:65:in `create_listeners’ remote: from /usr/local/lib/ruby/2.6.0/webrick/server.rb:127:in `listen’ remote: from /usr/local/lib/ruby/2.6.0/webrick/server.rb:108:in `initialize’ remote: from /usr/local/lib/ruby/2.6.0/webrick/httpserver.rb:47:in `initialize’ remote: from […]

By wsa
Published
Categorised as docker, dockerfile, prometheus, ruby Tagged , , ,

Prometheus docker service can’t connect to exporter on host machine

I have a server that exposes a Prometheus endpoint. I can curl the address to see it’s running and returning data properly. I have a docker-based Prometheus install (via dockprom). It’s running properly as well, I can login to the web UI and see it, as well as status pages for the targets. However, it […]

By helion3
Published
Categorised as docker, prometheus Tagged ,

Kafka exporter hangs on refreshing client metadata

I’m trying to run a simplified example illustrating the use of the Kafka Exporter. Firstly, I run Bitnami’s Kafka image on a user-defined network app-tier using the following docker-compose.yml (in a directory named bitnami-docker-kafka): version: ‘2’ networks: app-tier: driver: bridge services: zookeeper: image: ‘bitnami/zookeeper:latest’ environment: – ‘ALLOW_ANONYMOUS_LOGIN=yes’ networks: – app-tier kafka: image: ‘bitnami/kafka:latest’ environment: – […]

By Kurt Peek
Published
Categorised as apache-kafka, docker, prometheus Tagged , ,

How to use the Kafka exporter Docker image?

I’m trying to use the Kafka Exporter packaged by Bitnami, https://github.com/bitnami/bitnami-docker-kafka-exporter, together with the Bitnami image for Kafka, https://github.com/bitnami/bitnami-docker-kafka. I’m trying to run the following docker-compose.yml: version: ‘2’ networks: app-tier: driver: bridge services: zookeeper: image: ‘bitnami/zookeeper:latest’ environment: – ‘ALLOW_ANONYMOUS_LOGIN=yes’ networks: – app-tier kafka: image: ‘bitnami/kafka:latest’ environment: – KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 – ALLOW_PLAINTEXT_LISTENER=yes networks: – app-tier kafka-exporter: image: […]

I believe docker desktop isnt mounting files while using portainer to deploy a new stack

i am new to docker and having issues. I believe the files are not being copied over when trying to deploy the stack. I been following a guide for another os since i am not ready for linux yet. I am hoping for some insite to where i am going wrong. I have installed docker […]

By fishmonger
Published
Categorised as docker, portainer, prometheus, windows Tagged , , ,

Kubernetes node-exporter container is not working it shows this error message

Error: failed to start container "node-exporter": Error response from daemon: path /sys is mounted on /sys but it is not a shared or slave mount shows that message here is the repository I took it from trying to make a node exporter to Grafana dashboard through Kubernetes pods followed this video and this repo(video-https://www.youtube.com/watch?v=1-tRiThpFrY&t=791s) repo(https://github.com/marcel-dempers/docker-development-youtube-series/tree/master/monitoring/prometheus/kubernetes/1.18.4) […]

Grafana + prometheus node-exporter data source error – Instant query faile(bigger context)

My problem is that when I’m trying to connect to a data source that is node-exporter the following error pops up in the logs. grafana | t=2021-12-31T07:37:52+0000 lvl=eror msg="Instant query failed" logger=tsdb.prometheus query=1+1 err="bad_response: readObjectStart: expect { or n, but found <, error found in #1 byte of …|<html>nttt<|…, bigger context …|<html>nttt<head><title>Node Exporter</title></head>|…" The same […]

Issues with adding Prometheus as a datasource to Grafana

I have a single, locally run, docker instance with containers for Grafana(v8.4.0-43439pre) and Prometheus(2.32.1), when I try to add Prometheus as a datasource to Grafana the WebUI gives me the following error: Error reading Prometheus: Metric request error and the Grafana logs gives me the following error: first path segment in URL cannot contain colon […]

By Diederick
Published
Categorised as docker, grafana, prometheus Tagged , ,

Enabling rabbitmq_prometheus plugin using jib

I am using the jib plugin to build the images for deployment. I take the official rabbit-mq image to build a container. I want that my base image can have the rabbitmq_prometheus plugin enabled. I understand if we use the dockerfile we can add the commands in the dockerfile and create an image out of […]

1 2 3 14

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq