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

Provide support for scraping metrics for Azure IoT Hubs #1011

Merged
merged 18 commits into from
May 7, 2020
Merged

Provide support for scraping metrics for Azure IoT Hubs #1011

merged 18 commits into from
May 7, 2020

Conversation

ChristianEder
Copy link
Contributor

Fixes #372

Thanks to the very good documentation, the process to implement this was rather straightforward. Nevertheless, I am not sure regarding these questions:

  • How can I verify this will actually work?
  • What should I put into the "Availability Badge" link inside the iot-hub.md file?
  • Is there some kind of changelog that needs to be updated?

@CLAassistant
Copy link

CLAassistant commented May 6, 2020

CLA assistant check
All committers have signed the CLA.

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

1 similar comment
@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@tomkerkhove
Copy link
Owner

Thanks to the very good documentation, the process to implement this was rather straightforward. Nevertheless, I am not sure regarding these questions:

Great to hear, thank you!

  • How can I verify this will actually work?

You can run Promitor locally by configuring it to your subscription and verifying the metrics show up. If that's too much than I can pull in your PR and run it myself

  • What should I put into the "Availability Badge" link inside the iot-hub.md file?

I've added it to the v1.6 release plan; feel free to add that

  • Is there some kind of changelog that needs to be updated?

Not a must but you may update our upcoming features list here, if not then I'm happy to take care of this!

That's a good point, I should include that in the guide! (#1012)

I'll review it today, thanks!

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

1 similar comment
@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@ChristianEder
Copy link
Contributor Author

Thanks - I will try to run it on my own, if I fail I will come back to you.

Besides that:

  • The CLA signing does not seem to get recognised. I already verified that the email adress shown in the CLA form (which is readonly by now) is the same thats shown in my github account

  • Some CI builds are red - is this due to me missing access to some github action secrets? In other words: are they ok to fail?

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@ChristianEder
Copy link
Contributor Author

I ran it locally and it worked - tested retrieving the number of devices in one of my IoT Hubs, and also saw the value changing when I registered a new device.

Copy link
Owner

@tomkerkhove tomkerkhove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you very much!

I've added a few nits but the main one is to change Iot to IoT, would you be up for that? Can you also please sign the CLA?

docs/configuration/v1.x/metrics/index.md Outdated Show resolved Hide resolved
docs/configuration/v1.x/metrics/iot-hub.md Outdated Show resolved Hide resolved
adding-a-new-scraper.md Show resolved Hide resolved
adding-a-new-scraper.md Outdated Show resolved Hide resolved
@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@ChristianEder
Copy link
Contributor Author

ChristianEder commented May 6, 2020

I resolved your comments. But I cannot for the life of me figure out how to make GitHub acknowledge that I already signed the CLA.

It just shows this message:
image

But I logged in using this git hub account (it is my only) and also verified that the email address shown in the CLA form is in my account. It is my primary email address

The CLA form also show everything as ok and doesnt let me change anything:
image

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@ChristianEder
Copy link
Contributor Author

ChristianEder commented May 6, 2020

oh dammit. Most of my commits where assigned to another email of mine on which I didnt even have a github account. Created one, signed the CLA with that, tadaaa -> done

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@tomkerkhove
Copy link
Owner

Thanks!

Copy link
Owner

@tomkerkhove tomkerkhove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

adding-a-new-scraper.md Outdated Show resolved Hide resolved
@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

1 similar comment
@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

1 similar comment
@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@ChristianEder
Copy link
Contributor Author

What about the failing checks - are these related to this PR?

@ChristianEder
Copy link
Contributor Author

I see that now at least one test went red - will fix tomorrow.

@tomkerkhove
Copy link
Owner

No worries, should've noticed in the review - Sorry!

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1011-linux \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml  \
                         --volume C:/Promitor/runtime-config.yaml:/config/runtime.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr1011-linux

You can find a CI version of our Helm chart on hub.helm.sh

@ChristianEder
Copy link
Contributor Author

So the tests are green again, but some checks are still failing, but I cannot figure out what the failures mean.

Unable to find image 'tomkerkhove/promitor-agent-discovery-ci:pr1011-linux' locally docker: Error response from daemon: manifest for tomkerkhove/promitor-agent-discovery-ci:pr1011-linux not found: manifest unknown: manifest unknown. See 'docker run --help'. Error: No such container: promitor-discovery-agent

@tomkerkhove
Copy link
Owner

/azp run Promitor CI - Resource Discovery Agent

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tomkerkhove
Copy link
Owner

So the tests are green again, but some checks are still failing, but I cannot figure out what the failures mean.

Unable to find image 'tomkerkhove/promitor-agent-discovery-ci:pr1011-linux' locally docker: Error response from daemon: manifest for tomkerkhove/promitor-agent-discovery-ci:pr1011-linux not found: manifest unknown: manifest unknown. See 'docker run --help'. Error: No such container: promitor-discovery-agent

Sorry for that, there was something misconfigured on the build for PRs; my bad!

Re-running now and everything should be good - Thanks so much!

@tomkerkhove tomkerkhove merged commit 7c705c5 into tomkerkhove:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide support for scraping metrics for Azure IoT Hubs
5 participants