Comments (7)
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.
@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.
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.
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.
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.
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.
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)
- Liquibase leaves dangling lock on startup HOT 4
- Support for sending health metrics over Loggregator HOT 1
- [threat-modle] CEW352: CSRF test for GUI HOT 2
- unit test failing with golang 1.7 HOT 5
- handling for "start-time" and "end-time" is wrong with golang apiserver HOT 2
- There is a CSS injection vulnerability in the dependency springfox referenced by scheduler HOT 2
- Schedules can not be removed in synchronization when an application is deleted directly HOT 2
- metricsgateway ut panics because of testhelpers/websocket_handler HOT 2
- As an enduser, I expect the throughput not to be zero if its upper than 0 rps and less than 1 rps HOT 2
- I want to scale my app more rapidly when there is a request explosion HOT 2
- As for scaling based on load, we need Auto Scalar with step up scaling and step scale down HOT 4
- When autoscaler scales down(in) an app, does it happen gracefully? What happens to the inflight requests? HOT 2
- Not an issue but another CPU query HOT 3
- attach-autoscaling-policy command fails HOT 6
- To configure rules at application instance level
- Consulting query on DB connections on scaling. HOT 3
- Feature Request: Being able to autoscale an app by monitoring other app's metrics HOT 2
- Getting an error during the deployment HOT 2
- App is scaling up and not scaling down due to memory not reducing for my app HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app-autoscaler.