Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error fetching http://localhost:5051/monitor/statistics #57

Open
shamimgeek opened this issue Dec 9, 2017 · 5 comments
Open

Error fetching http://localhost:5051/monitor/statistics #57

shamimgeek opened this issue Dec 9, 2017 · 5 comments
Labels

Comments

@shamimgeek
Copy link

exporter version : mesos_exporter-1.0.0.linux-amd64

executing command: ./mesos_exporter -slave http://localhost:5051

2017/12/09 21:56:00 Exposing slave metrics on 0.0.0.0:9105
2017/12/09 21:56:00 Error fetching http://localhost:5051/monitor/statistics: Get http://localhost:5051/monitor/statistics: dial tcp 127.0.0.1:5051: getsockopt: connection refused
2017/12/09 21:56:00 Error fetching http://localhost:5051/metrics/snapshot: Get http://localhost:5051/metrics/snapshot: dial tcp 127.0.0.1:5051: getsockopt: connection refused
2017/12/09 21:56:00 Couldn't find fields required to update Desc{fqName: "mesos_slave_uptime_seconds", help: "Number of seconds the master process is running.", constLabels: {}, variableLabels: []}
2017/12/09 21:56:00 Couldn't find fields required to update Desc{fqName: "mesos_slave_executors_preempted", help: "Total number of executor preemptions.", constLabels: {}, variableLabels: []}
2017/12/09 21:56:00 Couldn't find fields required to update Desc{fqName: "mesos_slave_registered", help: "1 if slave is registered with master, 0 if not.", constLabels: {}, variableLabels: []}
2017/12/09 21:56:00 Couldn't find fields required to update Desc{fqName: "mesos_slave_frameworks_active", help: "Current number of active frameworks", constLabels: {}, variableLabels: []}


@milipili
Copy link

milipili commented Dec 13, 2017

It should be localhost:5050 no? (and not localhost:5051)

@shamimgeek
Copy link
Author

@milipili : in the document it is written to use like that way

Master: mesos_exporter -master http://localhost:5050
Agent: mesos_exporter -slave http://localhost:5051

@philipnrmn
Copy link
Contributor

Hi @shamimgeek , is the Mesos agent running on the same machine?

@kanupriya15025
Copy link

kanupriya15025 commented Oct 8, 2018

I am also getting the same error. @shamimgeek Did you find the answer?
I am using dcos. Does it work on that too?

@a-nldisr
Copy link

Maybe a late reply, but if you are using DCOS the mesos agent binds to a mesos agent endpoint. You could launch this exporter through DCOS with:

  "id": "/prometheus/mesos-exporter",
  "backoffFactor": 1.15,
  "backoffSeconds": 1,
  "cmd": "./mesos_exporter-1.1.2.linux-amd64/mesos_exporter -slave http://$MESOS_AGENT_ENDPOINT -addr :$PORT0",
  "constraints": [
    [
      "hostname",
      "UNIQUE"
    ]
  ],
  "container": {
    "type": "MESOS",
    "volumes": []
  },
  "cpus": 0.1,
  "disk": 0,
  "fetch": [
    {
      "uri": "https://github.com/mesos/mesos_exporter/releases/download/v1.1.2/mesos_exporter-1.1.2.linux-amd64.tar.gz",
      "extract": true,
      "executable": false,
      "cache": false
    }
  ],
  "healthChecks": [
    {
      "gracePeriodSeconds": 300,
      "intervalSeconds": 60,
      "maxConsecutiveFailures": 3,
      "portIndex": 0,
      "timeoutSeconds": 20,
      "delaySeconds": 15,
      "protocol": "MESOS_HTTP",
      "path": "/metrics"
    }
  ],
  "instances": 1,
  "maxLaunchDelaySeconds": 3600,
  "mem": 128,
  "gpus": 0,
  "networks": [
    {
      "mode": "host"
    }
  ],
  "portDefinitions": [
    {
      "name": "mesos-exporter",
      "protocol": "tcp",
      "port": 10153
    }
  ],
  "requirePorts": false,
  "upgradeStrategy": {
    "maximumOverCapacity": 1,
    "minimumHealthCapacity": 1
  },
  "killSelection": "YOUNGEST_FIRST",
  "unreachableStrategy": {
    "inactiveAfterSeconds": 0,
    "expungeAfterSeconds": 0
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants