Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
jangaraj committed Jan 2, 2024
1 parent b838879 commit 4faaefe
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Grafana Debugger

TODO
TODO
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@mdi/font": "7.0.96",
"core-js": "^3.29.0",
"md-editor-v3": "^4.10.0",
"rison-node": "^2.1.1",
"roboto-fontface": "*",
"vue": "^3.3.0",
"vue-cookies": "^1.8.3",
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/default/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
|
</div>
<div class="text-no-wrap ml-2 float-left">
Star:&nbsp;<a target="_blank" href="https://github.com/jangaraj/gv">GitHub repository</a>
Star:&nbsp;<a target="_blank" href="hhttps://github.com/monitoringartist/grafana-debugger">GitHub repository</a>
</div>
<div class="ml-2 float-left">
|
</div>
<div class="text-no-wrap ml-2 float-left">
Feedback:&nbsp;<a target="_blank" href="https://github.com/jangaraj/gv/issues/new">New GitHub issue</a>
Feedback:&nbsp;<a target="_blank" href="hhttps://github.com/monitoringartist/grafana-debugger/issues/new">New GitHub issue</a>
</div>

</v-card>
Expand Down
39 changes: 20 additions & 19 deletions src/views/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@

Some debugging examples:
<br /><br />
<a href="#step=2&step1Version=v10.2.4&step1Type=Enterprise (Free %26 unlicensed)&step1Cloud=false&step1Installation=installed as container with orchestration&step1Os=Linux&step1DeploymentDetails=My docker-compose yaml file%3A%0A```yaml%0Aversion%3A '3.8'%0Aservices%3A%0A%20 grafana%3A%0A%20%20%20 image%3A grafana%2Fgrafana-enterprise%3Alatest%0A%20%20%20 ports%3A%0A%20%20%20%20%20 - 3000%3A3000%0A%20%20%20 environment%3A%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ENABLED%3Dtrue%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ORG_ROLE%3DAdmin%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ORG_NAME%3DMain Org.%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ORG_ID%3D1%0A%20%20%20 volumes%3A%0A%20%20%20%20%20 - grafana-storage%3A%2Fvar%2Flib%2Fgrafana%0Avolumes%3A%0A%20 grafana-storage%3A%0A```&step2WhatHappened=I don't see SAML login option in the login page.&step2WhatsExpected=I expect to see SAML login option in the login page.&step2HowReproduce=1. Open Grafana login page.%0A2. See that SAML login option is missing.&step2AdditionalDetails=I have configured SAML authentication according to the documentation. I use Azure IDP.&step3DocumentationLink=https%3A%2F%2Fgrafana.com%2Fdocs%2Fgrafana%2Flatest%2Fauth%2Fsaml%2F&step4Title=Missing SAML Login Option in Grafana Enterprise Deployment&step4Category=Authentication&step4SearchQuery=Grafana Enterprise missing SAML login option&step4Tags=saml%2Clogin%2C grafana enterprise%2C deployment%2C docker%2C linux%2C azure idp">Issue: SAML login is not available</a>
<a href="#(step:'1',step1Cloud:false,step1DeploymentDetails:'My docker-compose yaml file%3A%0A```yaml%0Aversion%3A !'3.8!'%0Aservices%3A%0A%20 grafana%3A%0A%20%20%20 image%3A grafana%2Fgrafana-enterprise%3Alatest%0A%20%20%20 ports%3A%0A%20%20%20%20%20 - 3000%3A3000%0A%20%20%20 environment%3A%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ENABLED%3Dtrue%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ORG_ROLE%3DAdmin%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ORG_NAME%3DMain Org.%0A%20%20%20%20%20 - GF_AUTH_ANONYMOUS_ORG_ID%3D1%0A%20%20%20 volumes%3A%0A%20%20%20%20%20 - grafana-storage%3A%2Fvar%2Flib%2Fgrafana%0Avolumes%3A%0A%20 grafana-storage%3A%0A```',step1Installation:installed as simple container,step1Os:Linux,step1Type:'Enterprise (Free %26 unlicensed)',step1Version:v10.2.3,step2AdditionalDetails:I have configured SAML authentication according to the documentation. I use Azure IDP.,step2HowReproduce:'1. Open Grafana login page.%0A2. See that SAML login option is missing.',step2WhatHappened:'I don!'t see SAML login option in the login page.',step2WhatsExpected:I expect to see SAML login option in the login page.,step3DocumentationLink:https%3A%2F%2Fgrafana.com%2Fdocs%2Fgrafana%2Flatest%2Fauth%2Fsaml%2F,step4Category:Authentication%2FIdentity Management,step4SearchQuery:Grafana SAML login option missing,step4Tags:grafana%2Csaml%2C login%2C authentication%2C azure idp,step4Title:SAML login option missing in Grafana login page)">Issue: SAML login is not available</a>

</v-card-text>
</v-card>
Expand Down Expand Up @@ -622,19 +622,19 @@

<v-row>
<v-col>
<v-btn color="info" @click="window.open('https://community.grafana.com/search?q='+encodeURIComponent(step4SearchQuery.replace('Grafana ', ''))+'%20order%3Alatest')">Search on Community Forum</v-btn>
<v-btn color="info" @click="window.open('https://community.grafana.com/search?q='+encodeURI(step4SearchQuery.replace('Grafana ', ''))+'%20order%3Alatest')">Search on Community Forum</v-btn>
</v-col>
<v-col>
<v-btn color="info" @click="window.open('https://stackoverflow.com/search?q=%5Bgrafana%5D+'+encodeURIComponent(step4SearchQuery).replace('Grafana ', ''))">Search on Stack Overflow</v-btn>
<v-btn color="info" @click="window.open('https://stackoverflow.com/search?q=%5Bgrafana%5D+'+encodeURI(step4SearchQuery).replace('Grafana ', ''))">Search on Stack Overflow</v-btn>
</v-col>
<v-col>
<v-btn color="info" @click="window.open('https://github.com/grafana/grafana/issues?q=is%3Aissue+'+encodeURIComponent(step4SearchQuery.replace('Grafana ', '')))">Search in Github Grafana issues</v-btn>
<v-btn color="info" @click="window.open('https://github.com/grafana/grafana/issues?q=is%3Aissue+'+encodeURI(step4SearchQuery.replace('Grafana ', '')))">Search in Github Grafana issues</v-btn>
</v-col>
<v-col>
<v-btn color="info" @click="window.open('https://www.google.com/search?q='+encodeURIComponent(step4SearchQuery))">Search on Google</v-btn>
<v-btn color="info" @click="window.open('https://www.google.com/search?q='+encodeURI(step4SearchQuery))">Search on Google</v-btn>
</v-col>
<v-col v-if="getPrompt().toLowerCase().includes('influx')">
<v-btn v-if="getPrompt().toLowerCase().includes('influx')" color="info" @click="window.open('https://community.influxdata.com/search?q='+encodeURIComponent(step4Title))">Search on Influx Community Forum</v-btn>
<v-btn v-if="getPrompt().toLowerCase().includes('influx')" color="info" @click="window.open('https://community.influxdata.com/search?q='+encodeURI(step4Title))">Search on Influx Community Forum</v-btn>
</v-col>
</v-row>

Expand Down Expand Up @@ -688,6 +688,7 @@ import 'md-editor-v3/lib/style.css';
</script>
<script>
import { useTheme } from 'vuetify'
import rison from 'rison-node';
//import { router } from '../router'
// import { useRouter } from 'vue-router'
Expand Down Expand Up @@ -787,31 +788,31 @@ export default {
},
setHash() {
var hash = ''
var obj = {}
for (var i = 0; i < this.inputVariables.length; i++) {
var variable = this.inputVariables[i]
if (this[variable] != null && this[variable] != "") {
hash = hash + "&" + variable + "=" + encodeURIComponent(this[variable])
obj[variable] = encodeURIComponent(this[variable]);
}
}
window.location.hash = hash.substring(1)
window.location.hash = rison.encode(obj)
},
setVariablesFromHash() {
var hash = window.location.hash.substring(1)
var obj = {}
if (hash != null && hash != "") {
obj = rison.decode(hash);
}
for (var variable in obj) {
this[variable] = decodeURIComponent(obj[variable]);
}
},
createSignature(format) {
if (format=='markdown') {
return '\n\nProblem debugged with [Grafana Debugger](' + window.location.href +')';
}
return '\n\nProblem debugged with Grafana Debugger: ' + window.location.href;
},
setVariablesFromHash() {
var hash = window.location.hash.substring(1)
var variables = hash.split("&")
for (var i = 0; i < variables.length; i++) {
var variable = variables[i]
var parts = variable.split("=")
if (parts.length == 2) {
this[parts[0]] = decodeURIComponent(parts[1])
}
}
},
sendToGrot() {
if (this.msg == null || this.msg == "") {
return
Expand Down

0 comments on commit 4faaefe

Please sign in to comment.