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

Improve time series handling to ensure finalized time series are reported #1098

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

tomkerkhove
Copy link
Owner

Improve time series handling to ensure finalized time series are reported.

This was causing Azure File Storage to report null when aggregation was 1h and it reported a timeseries that was only started.

Signed-off-by: Tom Kerkhove kerkhove.tom@gmail.com

Fixes #1097

…rted

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Jun 18, 2020
@tomkerkhove
Copy link
Owner Author

@kad-beumer the CI image that our bot will mention should fix your issue. Feel free to give it a try.

@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:pr1098-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1098-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:pr1098-linux

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

@kad-beumer
Copy link

kad-beumer commented Jun 18, 2020

@tomkerkhove Thnx for the new build.. I'm sorry to tell you it doesn't fix the problem. After spinning up the new container I instantly get null values.

[13:24:00 INF] Found value 0 for metric azure_storage_queue_message_count with aggregation interval 01:00:00
[13:24:00 INF] Found value null for metric azure_storage_files_capacity with aggregation interval 01:00:00
[13:24:00 INF] Found value 100 for metric azure_storage_account_availability with aggregation interval 01:00:00
[13:24:00 INF] Found value null for metric azure_storage_account_availability with aggregation interval 01:00:00
[13:24:00 INF] Found value 1073743035 for metric azure_storage_files_capacity with aggregation interval 01:00:00
[13:24:00 INF] Found value 1077555332 for metric azure_storage_account_capacity with aggregation interval 01:00:00
[13:24:01 INF] Found value null for metric azure_storage_blobs_capacity with aggregation interval 01:00:00
[13:24:01 INF] Found value null for metric azure_storage_account_capacity with aggregation interval 01:00:00
[13:24:01 INF] Found value 105 for metric azure_storage_blobs_capacity with aggregation interval 01:00:00

Update: After letting it run for a couple of minutes it suddenly start giving all metrics. I will give it a run for a while and report back.

@tomkerkhove
Copy link
Owner Author

Thanks, let's leave it running for a while then!

@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:pr1098-linux

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr1098-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:pr1098-linux

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

@tomkerkhove tomkerkhove merged commit d85f168 into master Jul 16, 2020
@tomkerkhove tomkerkhove deleted the better-timeseries-handling branch July 16, 2020 12:39
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Jul 16, 2020
@tomkerkhove tomkerkhove added this to the v2.0.0 milestone Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reporting metrics based on ongoing timeseries for Azure File Storage
3 participants