You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/08/26 09:25:07 UTC
[GitHub] [skywalking] malaxiaolongxia opened a new issue #7577: How to use Counter api to show the total count of meter in ui
malaxiaolongxia opened a new issue #7577:
URL: https://github.com/apache/skywalking/issues/7577
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [x] Question or discussion
- [ ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
I want to record the count of users ,so I code like this
```
import org.apache.skywalking.apm.toolkit.meter.Counter
Counter counter = MeterFactory.counter("total_users").build();
counter.increment(1); //create user
// counter.increment(-1); //delete user
```
then i want to config a chart in ui to show total users but i can only config the number of new users per minute
```
{
"width":3,
"title":"Title",
"height":350,
"entityType":"ServiceInstance",
"independentSelector":false,
"metricType":"REGULAR_VALUE",
"metricName":"meter_total_users",
"queryMetricType":"readMetricsValues",
"chartType":"ChartLine"
}
```
so how to config or code ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #7577: How to use Counter api to show the total count of meter in ui
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #7577:
URL: https://github.com/apache/skywalking/issues/7577
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org