Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube 9.7.1 deployed via helm charts -
what are you trying to achieve
Set up Datadog integration to report metrics for all projects -
what have you tried so far to achieve this
- Tried to use the
component_discovery
wildcard to auto discovery projects on our sonarqube instance. I’ve tried setting the wildcard to be “." or "a” and running sonar-scanner on a project that adheres to that wildcard. Metrics does not get reported. - Authentication is not an issue since I’ve tried listing individual projects under
components
and metrics were properly reported to Datadog. But I do not want to update this list manually to track new projects.
Reference to the config in our helm chart
{
"is_jmx": false,
"web_endpoint": "<link to our instance>",
"auth_type": "basic",
"username": "<username>",
"password": "<password>",
"default_tag": "project_key",
"components": {},
"components_discovery": {
"limit": 100,
"include": {
"t*": {
"tag": "project_key"
}
}
}
}