Page MenuHomePhabricator

Send MediaWiki profiling on beta cluster to graphite.wmflabs.org
Closed, ResolvedPublic

Description

We have a graphite instance on labs at http://graphite.wmflabs.org/ . T54357 was to request the MediaWiki profiling to be sent to a central Graphite, though the task got hijacked in favor of setting up Diamond/monitoring. Thus opening a new task.

Will have to:

  • figure out how the profiles metrics are sent to statsd
  • find the IP address to send statsd metric to configure the emitter (labmon1001.eqiad.wmnet)
  • change the profiling sampling rate ( wmf-config/StartProfiler.php has ( mt_rand() % 50 ) == 0

Related Objects

StatusSubtypeAssignedTask
OpenNone
StalledNone
Resolvedyuvipanda
Resolvedyuvipanda
Resolvedyuvipanda
Resolvedyuvipanda
DeclinedNone
Declinedyuvipanda
Resolvedyuvipanda
Resolvedyuvipanda
OpenNone
Resolvedfgiunchedi
InvalidNone
Resolvedhashar
ResolvedKrinkle
OpenNone
ResolvedFeaturebd808
ResolvedFeaturetaavi
OpenNone
Resolvedhashar
Resolvedhashar

Event Timeline

hashar assigned this task to yuvipanda.
hashar removed yuvipanda as the assignee of this task.
hashar raised the priority of this task from to Medium.
hashar updated the task description. (Show Details)
hashar changed Security from none to None.
hashar added subscribers: Unknown Object (MLST), greg, demon and 6 others.

Statsd runs on labmon1001.eqiad.wmnet for labs.

Statsd runs on labmon1001.eqiad.wmnet for labs.

Can you confirm labmon1001 is an OK receiver for the Beta cluster MediaWiki profiling?

There's at least one consumer of graphite.wmflabs.org (Nagf; https://github.com/wikimedia/nagf; https://tools.wmflabs.org/nagf/) that assumes the root level to be Nova projects with instances inside of that.

Perhaps we should add a level of nesting to prevent it from becoming a chaos? Like instances..

Alternatively, to remain backwards-compatible, we could prefix the non-instance data to allow filtering (e.g. _)

Can you confirm labmon1001 is an OK receiver for the Beta cluster MediaWiki profiling?

Yup. Please prefix all stats with project name (in this case, deployment-prep) and I guess we should be good to go.

@Krinkle: We can query LDAP / wikitech API to get lists of instances, so that should be able to fix this?

Change 194508 had a related patch set uploaded (by Yuvipanda):
beta: Send stats to graphite.wmflabs.org

https://gerrit.wikimedia.org/r/194508

^ might or might not work, I don't actually know enough about how / what statsd stats come from in MW to be sure.

Change 194508 merged by Yuvipanda:
beta: Send stats to graphite.wmflabs.org

https://gerrit.wikimedia.org/r/194508

Alright, that didn't actually change / do anything.

hashar claimed this task.

This has been done as part of the Monolog refactoring and we have:

wmf-config/CommonSettings.php:  $wgStatsdMetricPrefix = 'BetaMediaWiki';

Profiling is sent to labmon1001.eqiad.wmnet and profiling is available on graphite.wmflabs.org under BetaMediaWiki.