Coder Social home page Coder Social logo

Comments (11)

roshan8 avatar roshan8 commented on May 14, 2024 5

SELinux was running.

It was blocking couple of things,

Now it's working fine :)

Thanks

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 14, 2024

Hi @roshu10 Can you provide the logs for Prometheus? Also, could you tell me how you are starting the stack?

from prometheus.

roshan8 avatar roshan8 commented on May 14, 2024

i'm starting with docker-compose up -d

from prometheus.

roshan8 avatar roshan8 commented on May 14, 2024

Logs:
time="2017-11-02T11:03:44Z" level=info msg="Starting prometheus (version=1.8.1, branch=HEAD, revision=3a7c51ab70fc7615cd318204d3aa7c078b7c5b20)" source="main.go:87"
time="2017-11-02T11:03:44Z" level=info msg="Build context (go=go1.9.1, user=root@ab78fb101775, date=20171023-15:50:57)" source="main.go:88"
time="2017-11-02T11:03:44Z" level=info msg="Host details (Linux 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 d9570b1c0834 (none))" source="main.go:89"
time="2017-11-02T11:03:44Z" level=info msg="Loading configuration file /etc/prometheus/prometheus.yml" source="main.go:254"
time="2017-11-02T11:03:44Z" level=info msg="Listening on :9090" source="web.go:341"
time="2017-11-02T11:03:44Z" level=error msg="Error loading config: couldn't load configuration (-config.file=/etc/prometheus/prometheus.yml): open /etc/prometheus/prometheus.yml: permission denied" source="main.go:160"

I'm starting prometheus as root

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 14, 2024

This repo is using the docker stack deploy command based on Swarm and not compose. Have a look here: https://github.com/vegasbrianc/prometheus/blob/version-2/README.md#installation--configuration

Let me know if this solves it or not.

from prometheus.

vegasbrianc avatar vegasbrianc commented on May 14, 2024

@roshu10 were you able to get this resolved?

from prometheus.

roshan8 avatar roshan8 commented on May 14, 2024

@vegasbrianc
Hey, is it possible to keep compose version bit low.
because most of the people are using docker 17.03.1-ce
Version - 3.2 is supported in docker 17.04 on wards.

So when i run docker stack deploy -c docker-compose.yml prome

i get "unsupported Compose file version: 3.2"

from prometheus.

llitfkitfk avatar llitfkitfk commented on May 14, 2024

#69

from prometheus.

roshan8 avatar roshan8 commented on May 14, 2024

I have upgraded the docker engine.

But prometheus is not coming up

screenshot from 2017-11-03 15-00-39

from prometheus.

roshan8 avatar roshan8 commented on May 14, 2024

Even though it says prometheus is up, "docker ps" is not listing prometheus container

from prometheus.

philicious avatar philicious commented on May 14, 2024

I just tested with version 17.09.0-ce on a Mac and its working fine.

Looks like your problem has to do with permissions or the file /etc/prometheus/prometheus.yml might be missing in the container. Have you looked into that ?

from prometheus.

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.