Skip to content

Commit

Permalink
Instana integration
Browse files Browse the repository at this point in the history
  • Loading branch information
alombarte committed Jun 8, 2021
1 parent 4a4e311 commit a4033ac
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/app/forms/logging.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
</div>
<div class="col-md-6">
<opencensus data="service"></opencensus>
<middleware data="service" template="instana.html" namespace="'github_com/devopsfaith/krakend-instana'"></middleware>
</div>
2 changes: 1 addition & 1 deletion src/app/forms/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</ul>
</li>
<li>
<a href="/#!/logging"><i class="fa fa-area-chart"></i> <span>Logging and metrics</span></a>
<a href="/#!/logging"><i class="fa fa-area-chart"></i> <span>Observability</span></a>
</li>
<li><a href="https://www.krakend.io/docs/overview/introduction"><i class="fa fa-book"></i> <span>Documentation</span></a>
</li>
Expand Down
24 changes: 12 additions & 12 deletions src/app/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h1>KrakenDesigner <small ng-bind="service.name"></small></h1>
><span class="sr-only">Facebook</span>
</a>
<a
href="https://twitter.com/devopsfaith"
href="https://twitter.com/krakend_io"
target="_blank"
class="social-btn-twitter"
title="Twitter"
Expand Down Expand Up @@ -180,13 +180,13 @@ <h1>KrakenDesigner <small ng-bind="service.name"></small></h1>
</div>
<nav>
<div class="col-md-2 col-md-offset-1">
<h6>Devops Faith</h6>
<h6>KrakenD</h6>
<ul class="list-unstyled">
<li><a href="http://devops.faith">Devops Faith</a></li>
<li><a href="https://www.krakend.io">Devops Faith</a></li>
<li><a href="https://medium.com/devops-faith">Blog</a></li>
<li><a href="mailto:hello@krakend.io">Contact Us</a></li>
<li><a href="https://www.krakend.io/support/">Contact Us</a></li>
</ul>
<h6>More products</h6>
<h6>Other products</h6>
<ul class="list-unstyled">
<li><a href="http://api2html.com">API2HTML</a></li>
</ul>
Expand Down Expand Up @@ -214,36 +214,36 @@ <h6>Support</h6>
</li>
<li>
<a
href="https://github.com/devopsfaith/krakend"
href="https://github.com/devopsfaith"
target="_blank"
>Open Source</a
>
</li>
<li>
<a href="https://github.com/devopsfaith/krakend/issues"
<a href="https://github.com/devopsfaith/krakendesigner/issues"
>Report a problem</a
>
</li>
<li><a href="mailto:hello@krakend.io">Support</a></li>
<li><a href="https://www.krakend.io/support/">Support</a></li>
</ul>
</div>
</nav>
</div>
<div class="row">
<div class="col-md-5 additional-links">
<strong
>Copyright &copy; 2017-2018
<a href="http://devops.faith">Devops Faith</a>.</strong
>Copyright &copy; 2017-2021
<a href="https://www.krakend.io/support/">KrakenD API Gateway</a>.</strong
>
All rights reserved.
</div>
<div class="pull-right hidden-xs">
Made with <i class="fa fa-heart-o" style="color:hotpink"></i> in
Barcelona by
<a href="https://twitter.com/devopsfaith">
<a href="https://twitter.com/krakend_io">
<img
height="30px"
src="https://www.krakend.io/images/devops-faith-logo-inverse.png"
src="https://www.krakend.io/images/logo-inverse.png"
/>
</a>
</div>
Expand Down
40 changes: 40 additions & 0 deletions src/app/middlewares/instana.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title"><input type="checkbox" ng-checked="isMiddlewareEnabled()" ng-click="toggleMiddleware()">
Instana <small>(Integration with Instana APM)</small></h3>
<div class="pull-right">
<span class="pull-right-container badge">Enterprise</span>
</div>
</div>
<div class="box-body" ng-if="isMiddlewareEnabled()">
<p>The Instana integration <em>middleware</em> allows you to export tracing and metrics to your Instana account:</p>
<div class="form-group">
<div class="row">
<div class="col-md-4">
<label class="control-label">Agent Host</label>
<input type="text" class="form-control"
ng-model="data.extra_config[config_namespace].AgentHost" placeholder="localhost">
<span class="help-block">
The host where your agent is installed, usually <code>localhost</code>
</span>
</div>
<div class="col-md-4">
<label class="control-label">Agent Port</label>
<input type="number" class="form-control"
ng-model="data.extra_config[config_namespace].AgentPort" placeholder="46999">
<span class="help-block">
The port where your agent is listening, usually <code>46999</code>
</span>
</div>
<div class="col-md-4">
<label class="control-label">Service</label>
<input type="text" class="form-control"
ng-model="data.extra_config[config_namespace].Service" placeholder="krakend">
<span class="help-block">
The global service name that will be used to identify the program in the Instana backend
</span>
</div>
</div>
</div>
</div>
</div>
5 changes: 5 additions & 0 deletions src/app/services/default_config.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ angular
"POST"
]
},
'github_com/devopsfaith/krakend-instana': {
"AgentHost": "localhost",
"AgentPort": 46999,
"Service": "krakend"
},
"github.com/devopsfaith/krakend-amqp/produce": {
"exchange": "some-exchange",
"durable": true,
Expand Down

0 comments on commit a4033ac

Please sign in to comment.