-
-
-
-
-
-
-
How to Report on CPU Seconds & RAM GB Hours per User
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
How to Report on CPU Seconds & RAM GB Hours per User
uberAgent determines all the required data for charging based on usage. If you want to bill your customers depending on how much CPU or RAM their users’ sessions consume you basically need the metrics CPU seconds per user and RAM GB hours per user. The latter can be explained as the number of gigabytes of RAM multiplied by the number of hours.
Example: RAM GB Hours per User
User A runs one session with an average RAM footprint of 2 GB for 3 hours. User B runs 2 sessions for 5 hours, one with an average RAM footprint of 1 GB and the other with an average RAM footprint of 2 GB. GB hours would be:
- User A: 2 GB * 3 hours = 6 GB hours
- User B: 1 GB * 5 hours + 2 GB * 5 hours = 15 GB hours
Splunk Search
The following Splunk search will return the total CPU seconds and RAM GB hours per Active Directory user account. It can be run over any time range (= billing period). Please note that due to the nature of the calculation every started hour counts in full, i.e. the resolution is one hour.
| pivot uberAgent Session_SessionDetail_Users
first(SessionUserLower) as User
avg(SessionWorkingSetMB) as AvgHourSessionWorkingSetMB
sum(SessionCPUTimeS) as SumHourSessionCPUTimeS
splitrow
_time
period hour
splitrow
SessionGUID
| eval AvgHourSessionWorkingSetGB=AvgHourSessionWorkingSetMB/1024
| stats
count as SessionHours
sum(AvgHourSessionWorkingSetGB) as GBHours
sum(SumHourSessionCPUTimeS) as CPUSeconds
avg(AvgHourSessionWorkingSetGB) as AvgSessionGB
by
User
| eval GBHoursRounded=round(GBHours, 2)
| eval CPUSecondsRounded=round(CPUSeconds, 2)
| eval AvgSessionGBRounded=round(AvgSessionGB, 2)
| fields
User
SessionHours
GBHoursRounded
CPUSecondsRounded
AvgSessionGBRounded
<!--NeedCopy-->
Above search returns these fields per user:
- RAM GB hours
- CPU seconds
- Session hours (sessions * hours run per session)
- Average memory usage per session
How it Works
We are searching uberAgent’s accelerated data model. That is why we use the pivot
command.
The search consists of two main parts. First, we determine the average RAM usage per session and hour. Then we summarize the session hours per user.
CPU usage is even easier to calculate because uberAgent already reports it as CPU seconds so that we already have the length of time. We only need to summarize; we do that in two steps because the search needs to be constructed that way to determine RAM usage.
Share
Share
In this article
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.