Code Monkey home page Code Monkey logo

ca-apm-fieldpack-docker's People

Contributors

guenter14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ca-apm-fieldpack-docker's Issues

Invalid metric value

Hi,
We are using the fieldpack on RHEL7.1 with Docker 1.8.2-el7 on epagent 10.1

It appears to be producing an invalid metric value error:

Response:
{
    "errorCode": 1010,
    "validCount": 387,
    "invalidCount": 1,
    "errorMessage": "One or more metric specifications were invalid",
    "metricErrors": [
        {
            "metricErrorCode": 1013,
            "metricErrorMsg": "Invalid metric value",
            "metricErrorIndex": 1,
            "metricName": "Docker|<<OUR HOSTNAME>>:Total Memory"
        }
    ]
}

If i enable the the debug line in writeMetrics :

print('type of {} is {}, name = {}, value = {}'.format(key, type(values[key]), name, values[key]))

It prints out what you would expect:

type of MemTotal is <type 'int'>, name = :Total Memory, value = 7835488256

However, it continues to print the above error.

The metric is greyed out in the webview investigator.
Any thoughts?

Issue in the sendMetrics function

I'm attempting the docker fieldpack on RHEL7.1 connecting to the EPAgent version 10.3.0

Docker is configured correctly as per your guidance. I'm using Python 3.5.

I'm issuing the command:

python3.5 docker.py -H 127.0.0.1 -p 8080 -d localhost -r 2376 -c /etc/docker/cert.pem -k /etc/docker/key.pem -v

I'm seeing the following error:

`Verbose enabled
Submitting to: http://127.0.0.1:8080/apm/metricFeed
/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
InsecureRequestWarning)

Response:
Traceback (most recent call last):
File "docker.py", line 326, in
main(sys.argv)
File "docker.py", line 312, in main
sendMetrics(url, headers, metricDict, options.verbose)
File "docker.py", line 254, in sendMetrics
response = json.loads(r.text)
File "/usr/local/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
`

SSL verification

Script used to work with boot2docker on MacOS. Recently I got SSL verification errors for the boot2docker server certificate. I haven't found a simple solution for this because there are so many dependencies: requests -> urllib3 -> ssl -> openssl -> certificate handling in OS X.

If anyone has a solution or if certificates are not needed on most docker installations I will gladly change that.

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.