GithubHelp home page GithubHelp logo

Comments (7)

cf-gitbot avatar cf-gitbot commented on August 21, 2024

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/173558891

The labels on this github issue will be updated when the story is started.

from app-autoscaler.

aqan213 avatar aqan213 commented on August 21, 2024

@bodymindarts I noticed that you opened another issue cloudfoundry/app-autoscaler-release#243 in app-autoscaler-release which is closed by yourself. In that issue the metricsforwarder was failed to send data to loggregator_agent due to the cert issue. Did it resolved?

And for this issue , does the custom metrics value show up now?

from app-autoscaler.

bodymindarts avatar bodymindarts commented on August 21, 2024

We fixed the cert issue but this isn't resolved completely. The policy now activates correctly but the values still don't show up.

from app-autoscaler.

aqan213 avatar aqan213 commented on August 21, 2024

The policy now activates correctly but the values still don't show up.

Do you mean your application can scale in/out correctly but when you run cf asm cf-env custom the value is empty?

Could you please check if the custom metrics is in the app_metric table?

select * from app_metric where app_id='<app_uuid>';

from app-autoscaler.

bodymindarts avatar bodymindarts commented on August 21, 2024

Yes that's right it scaled in/out:

$ cf ash cf-env
Retrieving scaling event history for app cf-env...
Scaling Type            Status          Instance Changes        Time                            Action                                                                  Error
dynamic                 succeeded       3->2                    2020-06-29T21:01:55+02:00       -1 instance(s) because custom > 100test-unit for 120 seconds
dynamic                 succeeded       2->3                    2020-06-29T17:40:55+02:00       +1 instance(s) because custom > 100test-unit for 120 seconds
dynamic                 succeeded       1->2                    2020-06-29T17:12:55+02:00       +1 instance(s) because custom > 100test-unit for 120 seconds

But the values aren't being persisted or displayed:

                app_id                | metric_type  |   unit    |      timestamp      | value
--------------------------------------+--------------+-----------+---------------------+-------
 9aa474dc-7b6d-4cb1-bbf9-2ffb7d23c0d7 | custom       |           | 1593435677198003081 |
 9aa474dc-7b6d-4cb1-bbf9-2ffb7d23c0d7 | custom       |           | 1593435717175326841 |
 9aa474dc-7b6d-4cb1-bbf9-2ffb7d23c0d7 | custom       |           | 1593435757175106101 |
 9aa474dc-7b6d-4cb1-bbf9-2ffb7d23c0d7 | custom       |           | 1593435797172395151 |
 9aa474dc-7b6d-4cb1-bbf9-2ffb7d23c0d7 | custom       |           | 1593435837171363097 |
 9aa474dc-7b6d-4cb1-bbf9-2ffb7d23c0d7 | custom       |           | 1593435877172797696 |
 9aa474dc-7b6d-4cb1-bbf9-2ffb7d23c0d7 | custom       |           | 1593435917172673518 |

from app-autoscaler.

aqan213 avatar aqan213 commented on August 21, 2024

I tried to send custom metrics with your curl command and the policy. I can get the metrics value:

cf asm nodeapp custom
Retrieving aggregated custom metrics for app nodeapp...
Metrics Name     	Value             	        Timestamp
custom           	1000test-unit     	2020-07-01T11:32:55+08:00
custom           	1000test-unit     	2020-07-01T11:32:15+08:00
custom           	1000test-unit     	2020-07-01T11:31:35+08:00
custom           	                  	       2020-07-01T11:30:55+08:00
custom           	                  	       2020-07-01T11:30:15+08:00
custom           	                  	       2020-07-01T11:29:35+08:00
custom           	                  	       2020-07-01T11:28:55+08:00
custom           	                  	       2020-07-01T11:28:15+08:00
custom           	                  	       2020-07-01T11:27:35+08:00
custom           	                  	      2020-07-01T11:26:55+08:00
custom           	                  	      2020-07-01T11:26:15+08:00
custom           	                  	      2020-07-01T11:25:35+08:00
custom           	                  	      2020-07-01T11:24:55+08:00

From the scaling history you posted above, the scaling action was before you queried from database.
The scaling action was happened at 2020-06-29T17:12:55+02:00 , 2020-06-29T17:40:55+02:00
but the queries are

timestamp                                   +0200                  
1593435677198003081          2020-06-29 15:01:17
1593435717175326841           2020-06-29 15:01:57
1593435757175106101
1593435797172395151
1593435837171363097
1593435877172797696
1593435917172673518           2020-06-29 15:05:17

Could you please check if there are metrics values in the database when the scaling action was taken?

select * from app_metric where app_id='<app_uuid>'  and timestamp >= $start_timestamp and timestamp <= $end_timestamp;

Or Could you please send the metrics again to re-trigger the scaling action and check if the values are displayed?

from app-autoscaler.

bodymindarts avatar bodymindarts commented on August 21, 2024

I'm closing this because its no longer blocking the use case I was attempting to implement. I don't know what was wrong with the test I was attempting ^^^ but things are working as expected now.

from app-autoscaler.

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.