How to create a custom metric using Sonar API - plugins

I am creating a plugin for Sonar and I need to create a custom metric since there are no core metrics within Sonar API that fulfill my needs.
I need to be able to display this metric on the dashboard.
Any help is greatly appreciated!

You can find examples in the Community plugins for SonarQube project.
For instance, the Sonar Artifact Size Plugin defines some additional metrics. You can see the code in https://github.com/SonarQubeCommunity/sonar-artifact-size/tree/master/src/main/java/org/sonar/plugins/artifactsize

Related

How to build a grafana panel plugin?

I am beginner in plugin development. i didn't get enough idea about plugin development from grafana tutorials,can u please give me a simple explanation about plugin development? from where we want to start ? how can pass live values ?
There's a documentation in grafana on how to build panels. You will need to have a knowledge in Typescript/React.
You may have to sign your custom plugin in the grafana configuration file. Refer here and register also where are your plugins located.
You can try checking sample projects here

REST endpoint registration and bootstrap(Creating range-index) using U Deploy

I have my code in Git repository. I am using UDeploy to deploy my code into MarkLogic environment. I can able to move all my modules successfully but facing two problems
1. Creating New indexes
2. REST endpoint creation
Please let me know if there is anyway to implement these two
For creating indexes, I have tried to do it using API functions(admin:database-range-element-index()) and I have successful in that part. But is there any way to do it from UDeploy or DevOps.
For register REST endpoint I couldn't able to find anyway to try.
Have you looked at MarkLogic's REST Management APIs - https://docs.marklogic.com/REST/management. In particular, see if https://docs.marklogic.com/REST/POST/manage/v2/databases will help you create indexes via REST management APIs.
The most common way to deploy MarkLogic code & configuration is ml-gradle, a plugin to the widely used gradle tool. ml-gradle uses MarkLogic's Management API, mentioned by Ganesh, and is scriptable.

Serverless plugin domain manager not reducing the resource limit

I ran into the 200 resource limit on cloudformation when using serverless. I saw on the blog that using the domain manager will help mitigate this issue by freeing a few resources from the api gateway.
After implementing this I realized it did nothing to help resource limit. Do I need to do something else after this. I am not sure if I should remove my sls stack and redeploy it?
All serverless does is transform some abstract configuration into CloudFormation templates (and other provider templates too.)
Adding a plugin to help you reconfigure the same stack won't reduce your number of resources that get generated.
The serverless blog has a great article on this, https://serverless.com/blog/serverless-workaround-cloudformation-200-resource-limit/.
The TL;DR is that there is a limit to resources in stacks so you have to break your stacks up.
You can:
Split your stacks manually, create multiple projects to form your platform and use references between them; or
Use a plugin to split the outputted CloudFormation template via:
serverless-plugin-additional-stacks
serverless-nested-stack
serverless-plugin-split-stacks

How to create own plugin for Grafana

I just started with grafana and would like to try to develop my own plugin to use it beside Graph, Singlestat, Dashlist, and Text panels. I found only these links about that :
http://docs.grafana.org/plugins/panels/,
https://grafana.net/resources/getting-started-with-plugins
Is anybody have ideas which environment could be used for developing grafana plugin and from where possible to start?
Thank you
There is a detailed walkthrough of the creation of the Clock panel plugin available on the grafana blog: Part 1 & Part 2
That's definitely a good place to start. As far an an environment, you'll obviously need a grafana instance, and you'll also need node & npm to be able to run the grunt-based build process.
Part 1 of the walkthrough should have enough detail to get you started, there is also a pretty active community on the grafana irc and slack channels who can help with specific questions.

Possible to add custom extensions to Bluemix delivery pipeline instance?

I want to add custom extensions like Istanbul for code coverage, SonarQube for static code analysis, custom tool for technical debt calculation. Is it possible to add custom extensions to a Bluemix Delivery Pipeline instance?
You can add Build Jobs using Ant, Maven or other supported scripting tools to invoke those other services. You can't extend the UI.